Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable reg buttons, change reg date #357

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading