Skip to content

Commit 2b286ca

Browse files
Rachel LimRachel Lim
authored andcommitted
add pf logo and update cta styling
1 parent 8ccf8f0 commit 2b286ca

File tree

5 files changed

+74
-11
lines changed

5 files changed

+74
-11
lines changed
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,36 @@
11
import React from 'react';
22
import { useTranslation } from 'react-i18next';
3-
import SquareLogoIcon from '../../../images/p5js-square-logo.svg';
3+
import LogoIcon from '../../../images/p5js-logo.svg';
4+
import PFLogoIcon from '../../../images/processing-foundation-logo.svg';
45

56
export default function FundraiserModal() {
67
const { t } = useTranslation();
78

89
return (
910
<div className="fundraiser">
1011
<p className="fundraiser__description">{t('Fundraiser.Description')}</p>
11-
<SquareLogoIcon
12-
className="about__logo"
13-
role="img"
14-
aria-label={t('Common.p5logoARIA')}
15-
focusable="false"
16-
/>
17-
<p className="fundraiser__description">{t('Fundraiser.CallToAction')}</p>
12+
<div className="fundraiser__img-container">
13+
<LogoIcon
14+
className="fundraiser__logo"
15+
role="img"
16+
aria-label={t('Common.p5logoARIA')}
17+
focusable="false"
18+
/>
19+
<PFLogoIcon
20+
className="fundraiser__logo"
21+
role="img"
22+
aria-label={t('Common.p5logoARIA')}
23+
focusable="false"
24+
/>
25+
</div>
26+
<a
27+
className="fundraiser__CTA"
28+
href="https://donorbox.org/to-the-power-of-10"
29+
target="_blank"
30+
rel="noopener noreferrer"
31+
>
32+
{t('Fundraiser.CallToAction')}
33+
</a>
1834
</div>
1935
);
2036
}

client/styles/abstracts/_variables.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ $themes: (
5050
button-nav-inactive-color: $middle-gray,
5151
button-hover-color: $lightest,
5252
button-active-color: $lightest,
53-
fundraiser-button-color: $p5js-pink,
53+
fundraiser-button-nav-color: $p5js-pink,
54+
fundraiser-button-background-color: $p5js-pink,
55+
fundraiser-button-color: $white,
56+
fundraiser-button-hover-active-color: $medium-dark,
5457
modal-background-color: $light,
5558
preferences-button-background-color: $medium-light,
5659
modal-border-color: $middle-light,
@@ -165,6 +168,9 @@ $themes: (
165168
editor-gutter-color: $darker,
166169
file-hover-color: $dark,
167170
file-selected-color: $medium-dark,
171+
fundraiser-button-background-color: $p5js-pink,
172+
fundraiser-button-color: $white,
173+
fundraiser-button-hover-active-color: $medium-dark,
168174
input-text-color: $lightest,
169175
input-background-color: $dark,
170176
input-secondary-background-color: $medium-dark,
@@ -259,6 +265,9 @@ $themes: (
259265
editor-gutter-color: $darker,
260266
file-hover-color: $dark,
261267
file-selected-color: $medium-dark,
268+
fundraiser-button-background-color: $yellow,
269+
fundraiser-button-color: $dark,
270+
fundraiser-button-hover-active-color: $medium-light,
262271
input-text-color: $lightest,
263272
input-background-color: $dark,
264273
input-secondary-background-color: $medium-dark,

client/styles/components/_fundraiser.scss

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,45 @@
22
padding: #{20 / $base-font-size}rem;
33
margin-right: #{20 / $base-font-size}rem;
44
padding-bottom: #{40 / $base-font-size}rem;
5-
width: #{500 / $base-font-size}rem;
5+
width: #{525 / $base-font-size}rem;
66
text-align: center;
77
overflow-y: auto;
88
}
99

10+
.fundraiser__CTA {
11+
font-size: #{23 / $base-font-size}rem;
12+
font-weight: bold;
13+
margin-top: #{10 / $base-font-size}rem;
14+
padding: #{20 / $base-font-size}rem;
15+
border-radius: #{35 / $base-font-size}rem;
16+
17+
@include themify() {
18+
color: getThemifyVariable('fundraiser-button-color');
19+
background-color: getThemifyVariable('fundraiser-button-background-color');
20+
}
21+
22+
&:hover,
23+
&:focus {
24+
@include themify() {
25+
color: getThemifyVariable('fundraiser-button-color');
26+
background-color: getThemifyVariable('fundraiser-button-hover-active-color');
27+
}
28+
}
29+
}
30+
1031
.fundraiser__description {
1132
margin: #{20 / $base-font-size}rem 0;
1233
font-size: #{20 / $base-font-size}rem;
34+
}
35+
36+
.fundraiser__img-container {
37+
display: flex;
38+
justify-content: center;
39+
margin: #{40 / $base-font-size}rem 0;
40+
}
41+
42+
.fundraiser__logo {
43+
margin:0 #{30 / $base-font-size}rem;
44+
width:#{150 / $base-font-size}rem;
45+
height:#{150 / $base-font-size}rem;
1346
}

client/styles/components/_nav.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
font-weight: bold;
2828
font-size: #{14 / $base-font-size}rem;
2929
@include themify() {
30-
color: getThemifyVariable('fundraiser-button-color');
30+
color: getThemifyVariable('fundraiser-button-nav-color');
3131
}
3232
}
3333

0 commit comments

Comments
 (0)