Skip to content

Commit 78058d8

Browse files
committed
add theming and heart icon
1 parent ec22eca commit 78058d8

File tree

2 files changed

+51
-11
lines changed

2 files changed

+51
-11
lines changed

client/images/heart.svg

+8
Loading

client/modules/IDE/pages/About.jsx

+43-11
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import styled from 'styled-components';
88
import { remSize, prop } from '../../../theme';
99
import AsteriskIcon from '../../../images/p5-asterisk.svg';
1010
import Nav from '../components/Header/Nav';
11+
import RootPage from '../../../components/RootPage';
1112
import packageData from '../../../../package.json';
13+
import HeartIcon from '../../../images/heart.svg';
1214
import LogoIcon from '../../../images/p5js-square-logo.svg';
1315

1416
export const AboutContent = styled.div`
@@ -28,10 +30,27 @@ export const IntroSection = styled.div`
2830
font-size: ${remSize(32)};
2931
font-weight: 700;
3032
}
31-
& button {
33+
34+
& a {
3235
padding: ${remSize(12)};
33-
border: ${remSize(1)} solid black;
36+
border: ${remSize(1)} solid ${prop('primaryTextColor')};
3437
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+
}
3554
}
3655
`;
3756

@@ -49,7 +68,7 @@ export const IntroSectionContent = styled.div`
4968
5069
& svg {
5170
& path {
52-
// fill: ${prop('logo-color')};
71+
fill: ${prop('logoColor')};
5372
}
5473
}
5574
@@ -114,15 +133,18 @@ export const SectionItem = styled.div`
114133
& a {
115134
font-weight: 700;
116135
font-size: ${remSize(16)};
136+
&:hover {
137+
text-decoration: underline;
138+
}
117139
}
118140
119141
& svg {
120142
padding-right: ${remSize(8)};
121143
width: ${remSize(30)};
122144
height: ${remSize(20)};
123145
& path {
124-
// fill: ${prop('logo-color')};
125-
// stroke: ${prop('logo-color')};
146+
fill: ${prop('logoColor')};
147+
stroke: ${prop('logoColor')};
126148
}
127149
}
128150
@@ -162,6 +184,13 @@ export const ContactSectionTitle = styled.p`
162184
export const ContactSectionDetails = styled.p`
163185
width: 50%;
164186
187+
& a {
188+
color: ${prop('logoColor')};
189+
&:hover {
190+
text-decoration: underline;
191+
}
192+
}
193+
165194
@media (max-width: 769px) {
166195
width: 70%;
167196
}
@@ -173,7 +202,6 @@ export const Footer = styled.div`
173202
padding-bottom: ${remSize(70)};
174203
width: 100%;
175204
font-size: ${remSize(16)};
176-
// border-color: ${prop('logo-color')};
177205
178206
& div {
179207
display: flex;
@@ -184,7 +212,10 @@ export const Footer = styled.div`
184212
& a {
185213
padding-top: ${remSize(20)};
186214
padding-right: 9.5%;
187-
// color: ${prop('logo-color')};
215+
color: ${prop('logoColor')};
216+
&:hover {
217+
text-decoration: underline;
218+
}
188219
}
189220
190221
& p {
@@ -216,7 +247,7 @@ const About = () => {
216247
});
217248

218249
return (
219-
<div>
250+
<RootPage>
220251
<Helmet>
221252
<title> {t('About.TitleHelmet')} </title>
222253
</Helmet>
@@ -240,13 +271,14 @@ const About = () => {
240271
<p>{t('About.Description1')}</p>
241272
<p>{t('About.Description2')}</p>
242273
</IntroSectionDescription>
243-
<button
274+
<a
244275
href="https://p5js.org/donate/"
245276
target="_blank"
246277
rel="noopener noreferrer"
247278
>
279+
<HeartIcon aria-hidden="true" focusable="false" />
248280
{t('About.Donate')}
249-
</button>
281+
</a>
250282
</IntroSection>
251283

252284
<Section>
@@ -450,7 +482,7 @@ const About = () => {
450482
</p>
451483
</Footer>
452484
</AboutContent>
453-
</div>
485+
</RootPage>
454486
);
455487
};
456488

0 commit comments

Comments
 (0)