From 6ac6430eec012d842a28bc3542fe03caa057d7f0 Mon Sep 17 00:00:00 2001 From: alvinkam Date: Wed, 20 Sep 2023 15:11:29 -0700 Subject: [PATCH] disable reg buttons, change reg date --- src/components/Button.jsx | 14 +++++++++----- src/sections/Count.jsx | 4 ++-- src/sections/Register.jsx | 14 ++++++++++---- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/components/Button.jsx b/src/components/Button.jsx index e77de72c..07b91b38 100644 --- a/src/components/Button.jsx +++ b/src/components/Button.jsx @@ -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; @@ -49,7 +50,8 @@ export default function Button({ secondary = false, isHover = false, isGradientText = false, - isOutline = false + isOutline = false, + disabled = false }) { return ( + isOutline={isOutline} + disabled={disabled} + > {children} ) diff --git a/src/sections/Count.jsx b/src/sections/Count.jsx index cbc8bfe0..1d6f8d2b 100644 --- a/src/sections/Count.jsx +++ b/src/sections/Count.jsx @@ -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) => { @@ -194,7 +194,7 @@ const Count = () => { - Registration closes in: + Registration opens in: {`${count.days[0]}${count.days[1]} Days`} diff --git a/src/sections/Register.jsx b/src/sections/Register.jsx index 7e34493a..17183f2d 100644 --- a/src/sections/Register.jsx +++ b/src/sections/Register.jsx @@ -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!