@@ -19,7 +19,8 @@ const CustomFooter: React.FC = () => {
19
19
const year = new Date ( ) . getFullYear ( ) ;
20
20
const screens = useBreakpoint ( ) ;
21
21
const [ expanded , setExpanded ] = useState ( false ) ;
22
-
22
+ const [ hover , setHover ] = useState ( false ) ;
23
+ const [ hovericon , sethoverIcon ] = useState ( 0 )
23
24
return (
24
25
< Footer
25
26
id = "footer"
@@ -32,12 +33,15 @@ const CustomFooter: React.FC = () => {
32
33
< Row justify = "space-between" align = "middle" gutter = { [ 16 , 16 ] } >
33
34
< Col xs = { 24 } md = { 12 } >
34
35
< Space direction = "vertical" size = "middle" >
35
- < Link href = "https://www.accordproject.org" target = "_blank" >
36
+ < Link href = "https://www.accordproject.org" target = "_blank"
37
+ onMouseEnter = { ( ) => setHover ( true ) } // Detect hover
38
+ onMouseLeave = { ( ) => setHover ( false ) } // Detect when hover ends
39
+ >
36
40
< Image
37
41
src = "/logo.png"
38
42
alt = "Template Playground"
39
43
preview = { false }
40
- style = { { height : "36px" , maxWidth : "100%" } }
44
+ style = { { height : hover ? "38px" : "36px" , maxWidth : "100%" } }
41
45
/>
42
46
</ Link >
43
47
< Text style = { { color : "rgba(255, 255, 255, 0.65)" } } >
@@ -48,17 +52,19 @@ const CustomFooter: React.FC = () => {
48
52
49
53
</ Text >
50
54
</ Link >
51
- < Link href = "https://discord.com/invite/Zm99SKhhtA" target = "_blank" >
55
+ < Link href = "https://discord.com/invite/Zm99SKhhtA" target = "_blank" >
52
56
< Button
53
57
size = "large"
54
58
style = { {
55
59
padding : "5px 30px" ,
56
- backgroundColor : "#19c6c7" ,
60
+ backgroundColor :hovericon == 2 ? '#D3D3D3' : "#19c6c7" ,
57
61
borderRadius : "5px" ,
58
62
color : "#050c40" ,
59
63
textAlign : "center" ,
60
64
border : "none" ,
61
65
} }
66
+ onMouseEnter = { ( ) => sethoverIcon ( 2 ) }
67
+ onMouseLeave = { ( ) => sethoverIcon ( 0 ) }
62
68
>
63
69
Join
64
70
</ Button >
@@ -79,24 +85,26 @@ const CustomFooter: React.FC = () => {
79
85
80
86
{ ( screens . md || expanded ) && (
81
87
< Row justify = "end" gutter = { [ 16 , 16 ] } >
82
- { FOOTER_SECTION . sections . map ( ( section : FooterSection ) => (
88
+ { FOOTER_SECTION . sections . map ( ( section : FooterSection , j : number ) => (
83
89
< Col xs = { 24 } sm = { 12 } md = { 6 } key = { section . title } >
84
90
< Space direction = "vertical" size = "middle" >
85
91
< Text
86
92
strong
87
93
style = { {
88
- color : "rgba(255, 255, 255, 0.65 )" ,
94
+ color : "rgba(255, 255, 255, 0.85 )" ,
89
95
fontSize : "11px" ,
90
96
letterSpacing : "0.1em" ,
91
97
} }
92
98
>
93
99
{ section . title }
94
100
</ Text >
95
- { section . links . map ( ( link : FooterLink ) => (
101
+ { section . links . map ( ( link : FooterLink , i : number ) => (
96
102
< Link
97
103
href = { link . href }
98
- key = { link . title }
99
- style = { { color : "white" , fontSize : "15px" } }
104
+ key = { i }
105
+ style = { { color : hovericon == ( 2 * i + 1 ) * ( 3 * j + 1 ) + 10 ? "#A9A9A9" :"white" , fontSize : "15px" } }
106
+ onMouseEnter = { ( ) => sethoverIcon ( ( 2 * i + 1 ) * ( 3 * j + 1 ) + 10 ) }
107
+ onMouseLeave = { ( ) => sethoverIcon ( 0 ) }
100
108
>
101
109
{ link . title }
102
110
</ Link >
@@ -117,7 +125,7 @@ const CustomFooter: React.FC = () => {
117
125
strong
118
126
href = "https://accordproject.org/privacy"
119
127
target = "_blank"
120
- style = { { color : " rgba(255, 255, 255, 0.85)" } }
128
+ style = { { color :hovericon == 3 ? " rgba(200,222, 255,0.75) " : "rgba( 255, 255, 255, 0.85)" } } onMouseEnter = { ( ) => sethoverIcon ( 3 ) } onMouseLeave = { ( ) => sethoverIcon ( 0 ) }
121
129
>
122
130
trademark policy
123
131
</ Link > { " " }
@@ -126,7 +134,7 @@ const CustomFooter: React.FC = () => {
126
134
strong
127
135
href = "https://accordproject.org/brand-assets"
128
136
target = "_blank"
129
- style = { { color : " rgba(255, 255, 255, 0.85)" } }
137
+ style = { { color :hovericon == 4 ? " rgba(200,222, 255,0.75) " : "rgba( 255, 255, 255, 0.85)" } } onMouseEnter = { ( ) => sethoverIcon ( 4 ) } onMouseLeave = { ( ) => sethoverIcon ( 0 ) }
130
138
>
131
139
brand assets
132
140
</ Link >
@@ -135,16 +143,16 @@ const CustomFooter: React.FC = () => {
135
143
136
144
< Col >
137
145
< Space >
138
- < Link href = "https://github.com/accordproject" target = "_blank" style = { { color : " rgba(255, 255, 255, 0.85)" } } >
146
+ < Link href = "https://github.com/accordproject" target = "_blank" style = { { color :hovericon == 5 ? " rgba(200,222, 255,0.75) " : "rgba( 255, 255, 255, 0.85)" } } onMouseEnter = { ( ) => sethoverIcon ( 5 ) } onMouseLeave = { ( ) => sethoverIcon ( 0 ) } >
139
147
< GithubOutlined style = { { fontSize : "17px" } } />
140
148
</ Link >
141
- < Link href = "https://twitter.com/AccordHQ" target = "_blank" style = { { color : " rgba(255, 255, 255, 0.85)" } } >
149
+ < Link href = "https://twitter.com/AccordHQ" target = "_blank" style = { { color :hovericon == 6 ? " rgba(200,222, 255,0.75) " : "rgba( 255, 255, 255, 0.85)" } } onMouseEnter = { ( ) => sethoverIcon ( 6 ) } onMouseLeave = { ( ) => sethoverIcon ( 0 ) } >
142
150
< XOutlined style = { { fontSize : "17px" } } />
143
151
</ Link >
144
- < Link href = "https://discord.com/invite/Zm99SKhhtA" target = "_blank" style = { { color : " rgba(255, 255, 255, 0.85)" } } >
152
+ < Link href = "https://discord.com/invite/Zm99SKhhtA" target = "_blank" style = { { color :hovericon == 7 ? " rgba(200,222, 255,0.75) " : "rgba( 255, 255, 255, 0.85)" } } onMouseEnter = { ( ) => sethoverIcon ( 7 ) } onMouseLeave = { ( ) => sethoverIcon ( 0 ) } >
145
153
< DiscordFilled style = { { fontSize : "17px" } } />
146
154
</ Link >
147
- < Link href = "https://www.linkedin.com/company/accordproject/" target = "_blank" style = { { color : " rgba(255, 255, 255, 0.85)" } } >
155
+ < Link href = "https://www.linkedin.com/company/accordproject/" target = "_blank" style = { { color :hovericon == 7 ? " rgba(200,222, 255,0.75) " : "rgba( 255, 255, 255, 0.85)" } } onMouseEnter = { ( ) => sethoverIcon ( 7 ) } onMouseLeave = { ( ) => sethoverIcon ( 0 ) } >
148
156
< LinkedinFilled style = { { fontSize : "17px" } } />
149
157
</ Link >
150
158
</ Space >
0 commit comments