-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2714 from processing/feature/fundraiser-content
Add Promotion for 2023 Fundraiser
- Loading branch information
Showing
16 changed files
with
1,241 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import LogoIcon from '../../../images/p5js-logo.svg'; | ||
import PFLogoIcon from '../../../images/processing-foundation-logo.svg'; | ||
|
||
export default function FundraiserModal() { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<div className="fundraiser"> | ||
<p className="fundraiser__description">{t('Fundraiser.Description')}</p> | ||
<div className="fundraiser__img-container"> | ||
<LogoIcon | ||
className="fundraiser__logo-p5" | ||
role="img" | ||
aria-label={t('Common.p5logoARIA')} | ||
focusable="false" | ||
/> | ||
<PFLogoIcon | ||
className="fundraiser__logo-PF" | ||
role="img" | ||
aria-label={t('Common.PFlogoARIA')} | ||
focusable="false" | ||
/> | ||
</div> | ||
<a | ||
className="fundraiser__CTA" | ||
href="https://donorbox.org/to-the-power-of-10" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
{t('Fundraiser.CallToAction')} | ||
</a> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.fundraiser { | ||
padding: #{20 / $base-font-size}rem; | ||
margin-right: #{20 / $base-font-size}rem; | ||
padding-bottom: #{40 / $base-font-size}rem; | ||
width: #{500 / $base-font-size}rem; | ||
text-align: center; | ||
overflow-y: auto; | ||
} | ||
|
||
.fundraiser__CTA { | ||
font-size: #{23 / $base-font-size}rem; | ||
font-weight: bold; | ||
margin-top: #{10 / $base-font-size}rem; | ||
padding: #{20 / $base-font-size}rem; | ||
border-radius: #{35 / $base-font-size}rem; | ||
|
||
@include themify() { | ||
color: getThemifyVariable('fundraiser-button-color'); | ||
background-color: getThemifyVariable('fundraiser-button-background-color'); | ||
} | ||
|
||
&:hover, | ||
&:focus { | ||
@include themify() { | ||
color: getThemifyVariable('fundraiser-button-color'); | ||
background-color: getThemifyVariable('fundraiser-button-hover-active-color'); | ||
} | ||
} | ||
} | ||
|
||
.fundraiser__description { | ||
margin: #{20 / $base-font-size}rem 0; | ||
font-size: #{20 / $base-font-size}rem; | ||
} | ||
|
||
.fundraiser__img-container { | ||
display: flex; | ||
justify-content: center; | ||
margin: #{40 / $base-font-size}rem 0 #{55 / $base-font-size}rem 0; | ||
} | ||
|
||
.fundraiser__logo-p5 { | ||
margin: 0 #{15 / $base-font-size}rem 0 #{30 / $base-font-size}rem; | ||
width:#{150 / $base-font-size}rem; | ||
height:#{150 / $base-font-size}rem; | ||
} | ||
|
||
.fundraiser__logo-PF { | ||
margin-left: #{20 / $base-font-size}rem; | ||
padding-bottom: #{15 / $base-font-size}rem; | ||
width:#{250 / $base-font-size}rem; | ||
height:#{150 / $base-font-size}rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.