@@ -8,7 +8,9 @@ import styled from 'styled-components';
8
8
import { remSize , prop } from '../../../theme' ;
9
9
import AsteriskIcon from '../../../images/p5-asterisk.svg' ;
10
10
import Nav from '../components/Header/Nav' ;
11
+ import RootPage from '../../../components/RootPage' ;
11
12
import packageData from '../../../../package.json' ;
13
+ import HeartIcon from '../../../images/heart.svg' ;
12
14
import LogoIcon from '../../../images/p5js-square-logo.svg' ;
13
15
14
16
export const AboutContent = styled . div `
@@ -28,10 +30,27 @@ export const IntroSection = styled.div`
28
30
font-size: ${ remSize ( 32 ) } ;
29
31
font-weight: 700;
30
32
}
31
- & button {
33
+
34
+ & a {
32
35
padding: ${ remSize ( 12 ) } ;
33
- border: ${ remSize ( 1 ) } solid black ;
36
+ border: ${ remSize ( 1 ) } solid ${ prop ( 'primaryTextColor' ) } ;
34
37
border-radius: ${ remSize ( 24 ) } ;
38
+ display: flex;
39
+ align-items: center;
40
+ width: ${ remSize ( 110 ) } ;
41
+ justify-content: space-evenly;
42
+ &:hover {
43
+ color: ${ prop ( 'Button.primary.default.background' ) } ;
44
+ background-color: ${ prop ( 'Button.primary.hover.background' ) } ;
45
+ border-color: ${ prop ( 'Button.primary.hover.border' ) } ;
46
+ text-decoration: none;
47
+
48
+ & svg {
49
+ & path {
50
+ fill: ${ prop ( 'Button.primary.default.background' ) } ;
51
+ }
52
+ }
53
+ }
35
54
}
36
55
` ;
37
56
@@ -49,7 +68,7 @@ export const IntroSectionContent = styled.div`
49
68
50
69
& svg {
51
70
& path {
52
- // fill: ${ prop ( 'logo-color ' ) } ;
71
+ fill: ${ prop ( 'logoColor ' ) } ;
53
72
}
54
73
}
55
74
@@ -114,15 +133,18 @@ export const SectionItem = styled.div`
114
133
& a {
115
134
font-weight: 700;
116
135
font-size: ${ remSize ( 16 ) } ;
136
+ &:hover {
137
+ text-decoration: underline;
138
+ }
117
139
}
118
140
119
141
& svg {
120
142
padding-right: ${ remSize ( 8 ) } ;
121
143
width: ${ remSize ( 30 ) } ;
122
144
height: ${ remSize ( 20 ) } ;
123
145
& path {
124
- // fill: ${ prop ( 'logo-color ' ) } ;
125
- // stroke: ${ prop ( 'logo-color ' ) } ;
146
+ fill: ${ prop ( 'logoColor ' ) } ;
147
+ stroke: ${ prop ( 'logoColor ' ) } ;
126
148
}
127
149
}
128
150
@@ -162,6 +184,13 @@ export const ContactSectionTitle = styled.p`
162
184
export const ContactSectionDetails = styled . p `
163
185
width: 50%;
164
186
187
+ & a {
188
+ color: ${ prop ( 'logoColor' ) } ;
189
+ &:hover {
190
+ text-decoration: underline;
191
+ }
192
+ }
193
+
165
194
@media (max-width: 769px) {
166
195
width: 70%;
167
196
}
@@ -173,7 +202,6 @@ export const Footer = styled.div`
173
202
padding-bottom: ${ remSize ( 70 ) } ;
174
203
width: 100%;
175
204
font-size: ${ remSize ( 16 ) } ;
176
- // border-color: ${ prop ( 'logo-color' ) } ;
177
205
178
206
& div {
179
207
display: flex;
@@ -184,7 +212,10 @@ export const Footer = styled.div`
184
212
& a {
185
213
padding-top: ${ remSize ( 20 ) } ;
186
214
padding-right: 9.5%;
187
- // color: ${ prop ( 'logo-color' ) } ;
215
+ color: ${ prop ( 'logoColor' ) } ;
216
+ &:hover {
217
+ text-decoration: underline;
218
+ }
188
219
}
189
220
190
221
& p {
@@ -216,7 +247,7 @@ const About = () => {
216
247
} ) ;
217
248
218
249
return (
219
- < div >
250
+ < RootPage >
220
251
< Helmet >
221
252
< title > { t ( 'About.TitleHelmet' ) } </ title >
222
253
</ Helmet >
@@ -240,13 +271,14 @@ const About = () => {
240
271
< p > { t ( 'About.Description1' ) } </ p >
241
272
< p > { t ( 'About.Description2' ) } </ p >
242
273
</ IntroSectionDescription >
243
- < button
274
+ < a
244
275
href = "https://p5js.org/donate/"
245
276
target = "_blank"
246
277
rel = "noopener noreferrer"
247
278
>
279
+ < HeartIcon aria-hidden = "true" focusable = "false" />
248
280
{ t ( 'About.Donate' ) }
249
- </ button >
281
+ </ a >
250
282
</ IntroSection >
251
283
252
284
< Section >
@@ -450,7 +482,7 @@ const About = () => {
450
482
</ p >
451
483
</ Footer >
452
484
</ AboutContent >
453
- </ div >
485
+ </ RootPage >
454
486
) ;
455
487
} ;
456
488
0 commit comments