Skip to content

Commit

Permalink
added registration open date
Browse files Browse the repository at this point in the history
  • Loading branch information
samanthatuhseng committed Sep 20, 2023
1 parent 715e2af commit a91f095
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/HackathonCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ const EventDateString = styled.div`
color: ${p => p.theme.colors.metadata};
`

const HackathonCard = ({ registrationOpen, link, dateString, imageLink }) => {
const HackathonCard = ({ registrationOpen, link, dateString, imageLink, registrationOpenDate}) => {
return (
<CardContainer imageLink={imageLink}>
<OverlayContainer>
<OverLayFooterContainer>
<EventDataContainer>
<EventRegistrationStatus registrationOpen={registrationOpen}>
{`Registration ${registrationOpen ? 'Open' : 'Closed'}`}
{`${registrationOpen ? 'Registration Opens: ' + registrationOpenDate : 'Registration Closed'}`}
</EventRegistrationStatus>
<EventDateString>{dateString}</EventDateString>
</EventDataContainer>
Expand Down
4 changes: 3 additions & 1 deletion components/Hackathons.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const HackCampData = {
imgSrc: '/assets/HackCamp2023.png',
link: 'https://hackcamp.nwplus.io',
date: 'Nov 18 - 19',
open: false,
registrationOpenDate: "Oct 6",
open: true,
};
const nwHacksData = {
imgSrc: '/assets/nwHacks2023.jpg',
Expand Down Expand Up @@ -62,6 +63,7 @@ export default function Hackathons() {
registrationOpen={HackCampData.open}
link={HackCampData.link}
dateString={HackCampData.date}
registrationOpenDate={HackCampData.registrationOpenDate}
imageLink={HackCampData.imgSrc}
/>
<HackathonCard
Expand Down

0 comments on commit a91f095

Please sign in to comment.