Skip to content

Commit

Permalink
disable reg buttons, change reg date
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinkam33 committed Sep 20, 2023
1 parent 34c7bb5 commit 6ac6430
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
14 changes: 9 additions & 5 deletions src/components/Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ const StyledButton = styled.a`
border-radius: ${p => p.borderRadius};
display: flex;
justify-content: center;
font-size: 1.12rem;
font-size: ${p => p.fontSize ? p.fontSize : '1.12rem'};
align-items: center;
text-decoration: none;
&:hover {
cursor: pointer;
cursor: ${p => p.disabled ? 'not-allowed' : 'pointer'};
text-decoration: none;
filter: brightness(0.9);
filter: ${p => p.disabled ? '' : 'brightness(0.9)'};
color: ${p => p.textColor};
}
transition: filter 0.13s ease-in;
Expand Down Expand Up @@ -49,7 +50,8 @@ export default function Button({
secondary = false,
isHover = false,
isGradientText = false,
isOutline = false
isOutline = false,
disabled = false
}) {
return (
<StyledButton
Expand All @@ -64,7 +66,9 @@ export default function Button({
secondary={secondary}
isHover={isHover}
isGradientText={isGradientText}
isOutline={isOutline}>
isOutline={isOutline}
disabled={disabled}
>
{children}
</StyledButton>
)
Expand Down
4 changes: 2 additions & 2 deletions src/sections/Count.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const useCountdown = (targetDate) => {
export { useCountdown }

const Count = () => {
const countDownDate = new Date('Oct 28, 2023 00:00:00').getTime()
const countDownDate = new Date('Oct 6, 2023 00:00:00').getTime()
const [days, hours, minutes] = useCountdown(countDownDate)

const twoify = (num) => {
Expand Down Expand Up @@ -194,7 +194,7 @@ const Count = () => {
<InfoContainer>
<BgScroll />
<TextContainer>
<StyledTitle>Registration closes in:</StyledTitle>
<StyledTitle>Registration opens in:</StyledTitle>
<DaysTextContainer>
<ShadowText text={`${count.days[0]}${count.days[1]} Days`}>
{`${count.days[0]}${count.days[1]} Days`}
Expand Down
14 changes: 10 additions & 4 deletions src/sections/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,14 @@ export default function Register() {
// href="https://forms.gle/GQ3k8ZbtfULfVYxq6"
width='205px'
height='50px'
fontSize='0.75rem'
borderRadius='6px'
textColor='#2C2543'
backgroundColor="#00DBCE"
isHover>
Apply Now
isHover
disabled
>
Applications Open October 6th!
</Button>
<Button
isOutline
Expand All @@ -208,12 +211,15 @@ export default function Register() {
// href="https://docs.google.com/forms/d/e/1FAIpQLScA2RtmikDSTaeLqi7vadLDq4Wom4N9N1wDVZu0rpZ5Xk2sow/viewform"
width='205px'
height='50px'
fontSize='0.75rem'
borderRadius='6px'
borderColor="#00DBCE"
textColor="#00DBCE"
backgroundColor="transparent"
isHover>
Become a Mentor
isHover
disabled
>
Applications Open October 6th!
</Button>
</ButtonContainer>
</MediaContainer>
Expand Down

0 comments on commit 6ac6430

Please sign in to comment.