-
Notifications
You must be signed in to change notification settings - Fork 0
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 #112 from OperationSpark/110-custom-fundraiser-page
110 custom fundraiser page
- Loading branch information
Showing
18 changed files
with
260 additions
and
15 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
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,133 @@ | ||
import { NextPage } from 'next'; | ||
import styled from 'styled-components'; | ||
|
||
import { BgImg } from '@this/elements/index'; | ||
import Content from '@this/layout/Content'; | ||
import Main from '@this/layout/Main'; | ||
import ShareOnFacebookButton from '@this/src/components/Elements/ShareButtons/ShareFacebook'; | ||
import ShareOnLinkedinButton from '@this/src/components/Elements/ShareButtons/ShareLinkedin'; | ||
import { Center } from '@this/src/components/layout/Center'; | ||
import { nolaDevsFont } from '@this/src/fonts'; | ||
|
||
const GetInvolved: NextPage = () => { | ||
return ( | ||
<Main style={{ paddingTop: 0 }}> | ||
<GetInvolvedStyles> | ||
<BgImg | ||
src='/images/display/noladevs-opspark-fundraiser.webp' | ||
height='30rem' | ||
overlay={{ position: 'center center', blur: 0, opacity: 0 }} | ||
/> | ||
|
||
<Content> | ||
<h2 className='noladevs dynamic-h1 primary-secondary text-center'> | ||
<span className={nolaDevsFont.className}>About this fundraiser</span> | ||
</h2> | ||
<div className='share-buttons'> | ||
<ShareOnLinkedinButton | ||
url={'https://www.operationspark.org/getInvolved/noladevs'} | ||
title={'NOLADevs Fundraiser'} | ||
summary={ | ||
'NOLADevs is teaming up with Operation Spark to host a fundraiser that supports current and future students with tuition and living stipends.' | ||
} | ||
source={'Operation Spark'} | ||
/> | ||
<ShareOnFacebookButton url={'https://www.operationspark.org/getInvolved/noladevs'} /> | ||
</div> | ||
<div className='about-fundraiser'> | ||
<p className='dynamic-txt'> | ||
NolaDevs is teaming up with Operation Spark to host a fundraiser that supports current | ||
and future students with tuition and living stipends. Operation Spark provides | ||
intensive training in software development to individuals from diverse backgrounds, | ||
equipping them with the skills needed to pursue successful careers in the tech | ||
industry. | ||
</p> | ||
|
||
<p className='dynamic-txt'> | ||
This fundraiser aims to alleviate financial barriers that students may face while | ||
attending our immersive program. By providing tuition assistance and living stipends, | ||
Operation Spark ensures that talented individuals who may not have the means to afford | ||
the program can still participate and benefit from the transformative learning | ||
experience | ||
</p> | ||
</div> | ||
|
||
<Center> | ||
<div className='iframe-wrapper' onClick={(e) => e.stopPropagation()}> | ||
<div className='overlay-cover'></div> | ||
<iframe | ||
src='https://commitchange.com/nonprofits/3745/donate?offsite=t&origin=https://operationspark.org/#!/donate' | ||
width='400px' | ||
height='500px' | ||
></iframe> | ||
</div> | ||
</Center> | ||
</Content> | ||
</GetInvolvedStyles> | ||
</Main> | ||
); | ||
}; | ||
|
||
export default GetInvolved; | ||
|
||
const GetInvolvedStyles = styled.div` | ||
.share-buttons { | ||
display: flex; | ||
flex-flow: row nowrap; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 1rem; | ||
padding: 0.5rem 0; | ||
} | ||
.noladevs { | ||
font-family: var(--font-noladevs); | ||
} | ||
a.primary-secondary:hover { | ||
text-decoration: underline; | ||
} | ||
.image-header { | ||
display: flex; | ||
align-items: flex-end; | ||
height: 100%; | ||
} | ||
.about-fundraiser { | ||
display: flex; | ||
flex-flow: column; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 1rem; | ||
gap: 1rem; | ||
p { | ||
max-width: 600px; | ||
} | ||
} | ||
.iframe-wrapper { | ||
margin: 1rem; | ||
position: relative; | ||
border-radius: 0.5rem; | ||
width: fit-content; | ||
.overlay-cover { | ||
user-select: none; | ||
position: absolute; | ||
z-index: 1; | ||
top: 1rem; | ||
right: 0.25rem; | ||
width: 2rem; | ||
height: 2rem; | ||
/* Hardcoded colors are determined by the background of the inverted commit change form (iframe) */ | ||
background: ${({ theme }) => | ||
theme.isLightMode ? 'rgba(251, 251, 251, 1.00)' : 'rgba(29, 29, 29, 1.00)'}; | ||
} | ||
iframe { | ||
user-select: none; | ||
max-width: 100%; | ||
filter: ${({ theme }) => | ||
theme.isLightMode | ||
? 'invert(0) hue-rotate(-240deg) drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5))' | ||
: 'invert(0.9) grayscale(100%) drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.8))'}; | ||
} | ||
} | ||
`; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,39 @@ | ||
import { motion } from 'framer-motion'; | ||
import { FC } from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
import { FaFacebookSquare, FaShare } from 'react-icons/fa'; | ||
|
||
// import { , FaTwitter, FaInstagram, FaGithub, FaLinkedin } from 'react-icons/fa'; | ||
|
||
type ShareOnFacebookButtonProps = { | ||
url: string; | ||
}; | ||
|
||
const ShareOnFacebookButton: FC<ShareOnFacebookButtonProps> = ({ url }) => { | ||
const facebookUrl = `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(url)}`; | ||
return ( | ||
<ShareOnFacebookStyles href={facebookUrl} target='_blank' title='Share on Facebook'> | ||
<FaFacebookSquare size={20} /> | ||
<span>Share </span> | ||
<FaShare size={20} /> | ||
</ShareOnFacebookStyles> | ||
); | ||
}; | ||
|
||
const ShareOnFacebookStyles = styled(motion.a)` | ||
background: ${({ theme }) => theme.primary[theme.isLightMode ? 700 : 300]}; | ||
color: ${({ theme }) => theme.bg}; | ||
display: flex; | ||
flex-flow: row nowrap; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 0.2rem 0.4rem; | ||
border-radius: 0.25rem; | ||
gap: 0.4rem; | ||
:hover { | ||
background: ${({ theme }) => theme.primary[theme.isLightMode ? 400 : 200]}; | ||
} | ||
`; | ||
|
||
export default ShareOnFacebookButton; |
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,42 @@ | ||
import { motion } from 'framer-motion'; | ||
import { FC } from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
import { FaLinkedin, FaShare } from 'react-icons/fa'; | ||
|
||
// import { FaFacebookSquare, FaTwitter, FaInstagram, FaGithub, FaLinkedin } from 'react-icons/fa'; | ||
|
||
type ShareOnLinkedinButtonProps = { | ||
url: string; | ||
title: string; | ||
summary: string; | ||
source: string; | ||
}; | ||
|
||
const ShareOnLinkedinButton: FC<ShareOnLinkedinButtonProps> = ({ url }) => { | ||
const linkedinUrl = `https://www.linkedin.com/shareArticle?url=${encodeURIComponent(url)}`; | ||
return ( | ||
<ShareOnLinkedinStyles href={linkedinUrl} target='_blank' title='Share on LinkedIn'> | ||
<FaLinkedin size={20} /> | ||
<span>Share </span> | ||
<FaShare size={20} /> | ||
</ShareOnLinkedinStyles> | ||
); | ||
}; | ||
|
||
const ShareOnLinkedinStyles = styled(motion.a)` | ||
background: ${({ theme }) => theme.primary[theme.isLightMode ? 700 : 300]}; | ||
color: ${({ theme }) => theme.bg}; | ||
display: flex; | ||
flex-flow: row nowrap; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 0.2rem 0.4rem; | ||
border-radius: 0.25rem; | ||
gap: 0.4rem; | ||
:hover { | ||
background: ${({ theme }) => theme.primary[theme.isLightMode ? 400 : 200]}; | ||
} | ||
`; | ||
|
||
export default ShareOnLinkedinButton; |
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,7 @@ | ||
import localFont from 'next/font/local'; | ||
|
||
export const nolaDevsFont = localFont({ | ||
src: '../public/fonts/Saucer.ttf', | ||
variable: '--font-noladevs', | ||
weight: 'lighter', | ||
}); |
bcb0201
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
opspark-website-2022 – ./
opspark-website-2022-git-main-operation-spark.vercel.app
opspark-website-2022-operation-spark.vercel.app
opspark.vercel.app
www.operationspark.org
operationspark.org