diff --git a/web/src/pages/index.tsx b/web/src/pages/index.tsx index 9214f4698..1ff62459c 100644 --- a/web/src/pages/index.tsx +++ b/web/src/pages/index.tsx @@ -27,7 +27,7 @@ import { usePlayerStore } from "@/hooks/state"; import { Cartridge } from "@/components/icons/branding/Cartridge"; import { Dojo } from "@/components/icons/branding/Dojo"; import { ScrollDown } from "@/components/icons/ScrollDown"; -import { useState } from "react"; +import { useEffect, useState } from "react"; // hardcode game params for now const START_TIME = 0; @@ -49,59 +49,76 @@ export default function Home() { const { resetAll } = usePlayerStore(); const { toast } = useToast(); const [isSubmitting, setIsSubmitting] = useState(false); + const [isGated, setIsGated] = useState(false); + useEffect( + () => + setIsGated(window.location.host === "rollyourown.preview.cartridge.gg"), + [], + ); + return ( - - - - Under Construction - - - Get ready hustlers... Season II starts in September - - + {isGated ? ( + + + + Under Construction + + + Get ready hustlers... Season II starts in September + + + ) : ( + */} + router.push(`/${gameId}/${getLocationById(locationId).slug}`); + }} + > + Hustle + + )} - {/* HALL OF FAME - - - */} + {!isGated && ( + <> + HALL OF FAME + + + + + )} );