diff --git a/app/(pages)/(index-page)/event/_components/LandingEvent/LandingEvent.tsx b/app/(pages)/(index-page)/event/_components/LandingEvent/LandingEvent.tsx index bfebf738..026ddbee 100644 --- a/app/(pages)/(index-page)/event/_components/LandingEvent/LandingEvent.tsx +++ b/app/(pages)/(index-page)/event/_components/LandingEvent/LandingEvent.tsx @@ -27,10 +27,24 @@ export default function LandingEvent() {
-
- -
+ {!isDayTimer && ( +
+ +
+ )} ); } +// .grass{ +// position: relative; +// z-index: 2; +// margin-top: -12vw; +// @media(max-width: $tablet-breakpoint){ +// margin-top: -130px; +// } + +// @media(max-width: $mobile-breakpoint){ +// margin-top: -250px; +// } +// } diff --git a/app/(pages)/(index-page)/event/_components/LandingEvent/_components/Timer/Timer.tsx b/app/(pages)/(index-page)/event/_components/LandingEvent/_components/Timer/Timer.tsx index ff156b5b..c1ee4cf2 100644 --- a/app/(pages)/(index-page)/event/_components/LandingEvent/_components/Timer/Timer.tsx +++ b/app/(pages)/(index-page)/event/_components/LandingEvent/_components/Timer/Timer.tsx @@ -5,6 +5,7 @@ import DOECountDown from './_components/DOECountDown'; import Image from 'next/image'; import HackDavisLogo from 'public/navbar/logo.svg'; import { TiLocation } from 'react-icons/ti'; +import { usePathname } from 'next/navigation'; // Import useRouter type ButtonLink = { title: string; @@ -34,6 +35,8 @@ const buttonLinks: ButtonLink[] = [ export default function Timer() { const startTime = new Date('2024-04-27T14:00:00-07:00'); const endTime = new Date('2024-04-28T14:00:00-07:00'); + const pathname = usePathname(); + const isDayTimer = pathname.includes('dayTimer'); return (
@@ -49,22 +52,24 @@ export default function Timer() {
-
- {buttonLinks.map((button, index) => ( - - - - ))} -
+ {!isDayTimer && ( +
+ {buttonLinks.map((button, index) => ( + + + + ))} +
+ )}