-
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 branch 'main' into web-40/past-events-section
- Loading branch information
Showing
27 changed files
with
8,926 additions
and
164 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import Heading from './Heading'; | ||
import Image from 'next/image'; | ||
import { UnderlineTypes } from '../utils/underlineType'; | ||
import { HACKATHONS } from '../data/hackathons'; | ||
|
||
const HACKATHON_TIMELINE_CONTAINER = 'flex justify-center bg-white'; | ||
const HACKATHON_TIMELINE_CONTENT = 'max-w-[500px] w-[80vw] md:max-w-[1100px]'; | ||
const HACKATHON_TIMELINE_HEADER = 'md:justify-start md:my-[60px] my-[30px] flex justify-center'; | ||
|
||
const HACKATHON_EVENT_INFO = 'flex text-center text-xl font-bold mb-[70px] md:items-center flex-col items-center'; | ||
const HACKATHON_TITLE_YEAR = 'text-5xl pb-[15px] italic md:text-4xl'; | ||
const HACKATHON_IMAGE = 'object-cover w-[80vw] md:rounded-xl md:w-[450px] md:h-[250px] md:shadow-[15px_15px_0px_0px_#00D3A9]'; | ||
const HACKATHON_TEXT = 'flex-col md:w-[400px] md:mx-[40px] leading-[1] text-[20px]'; | ||
const HACKATHON_TOPIC_TEXT = 'flex text-left my-[15px] text-[#FF4D6F] md:text-[#FF6B54] md:my-1 md:font-extrabold md:text-[25px]'; | ||
|
||
const HackathonSection = ({ hackathon, index }) => { | ||
let sectionInfoStyling = 'md:flex-row-reverse'; | ||
let sectionTextStyling = 'md:text-right'; | ||
let sectionTopicStyling = 'md:text-right md:justify-end'; | ||
|
||
if(index % 2 == 0) { | ||
sectionInfoStyling = 'md:flex-row md:justify-start'; | ||
sectionTextStyling = 'md:text-left'; | ||
sectionTopicStyling = ''; | ||
} | ||
|
||
return ( | ||
<div className={`${HACKATHON_EVENT_INFO} ${sectionInfoStyling}`}> | ||
<div> | ||
<h1 className={HACKATHON_TITLE_YEAR}> | ||
{hackathon.year} | ||
</h1> | ||
<Image className={HACKATHON_IMAGE} src={hackathon.img} alt={hackathon.title} /> | ||
</div> | ||
<div className={`${HACKATHON_TEXT} ${sectionTextStyling}`}> | ||
<div className={`${HACKATHON_TOPIC_TEXT} ${sectionTopicStyling}`}> | ||
<p className='md:hidden pr-[5px]'>Topics:</p> | ||
<p>{hackathon.topic}</p> | ||
</div> | ||
<p className='font-medium md:text-[#00D3A9]'>{hackathon.blurb}</p> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
const HackathonTimeline = () => { | ||
return ( | ||
<div className={HACKATHON_TIMELINE_CONTAINER}> | ||
<div className={HACKATHON_TIMELINE_CONTENT}> | ||
<div className={HACKATHON_TIMELINE_HEADER}> | ||
<Heading underlineType={UnderlineTypes.GREEN_LONG_UNDERLINE}>Hack the Change</Heading> | ||
</div> | ||
{HACKATHONS.map((hackathon, index) => ( | ||
<HackathonSection hackathon={hackathon} key={index} index={index}/> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default HackathonTimeline; |
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,27 @@ | ||
import Link from 'next/link'; | ||
import { FaEnvelope } from 'react-icons/fa'; | ||
const MAILING_LIST_CONTAINER = 'bg-[#7055FD] flex flex-col text-center'; | ||
const CONTENT_CONTAINER = 'flex flex-col p-5 md:px-32 text-center'; | ||
const HEADING_CONTAINER = 'flex flex-row text-center justify-center'; | ||
const LINK_TO_MAILING_LIST = | ||
'https://docs.google.com/forms/d/e/1FAIpQLSfusGF-TTs6nXfBCodQuuDWqx7DnTrm6GF4c-CeDVUt1m_plA/viewform'; | ||
const MailingList = () => { | ||
return ( | ||
<div className={MAILING_LIST_CONTAINER}> | ||
<div className={CONTENT_CONTAINER}> | ||
<div className={HEADING_CONTAINER}> | ||
<h1 className="text-5xl font-semibold text-white pr-4 flex flex-col justify-center text-center items-center sm:flex-row space-x-2"> | ||
<button className="font-extrabold underline rounded p-2 w-fit hover:opacity-85"> | ||
<Link href={LINK_TO_MAILING_LIST}>Join </Link> | ||
</button> | ||
<div>our Mailing list!</div> | ||
<FaEnvelope size={45} color="white" className="hidden sm:block align-middle" /> | ||
</h1> | ||
</div> | ||
<div className="text-lg text-white font-semibold">The link to our mailing list is also in our link tree </div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default MailingList; |
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.