Skip to content

Commit 6e3de3d

Browse files
committed
Hide notify and verify buttons before server is live
1 parent 2ec131c commit 6e3de3d

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

src/pages/index.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { NotifyButton } from "@/components/NotifyButton";
55
import { ServerStatusCard } from "@/components/ServerStatusCard";
66

77
export default function Index() {
8+
const countdown = <Countdown />;
9+
810
return (
911
<>
1012
<Head>
@@ -13,16 +15,20 @@ export default function Index() {
1315

1416
<ServerStatusCard />
1517

16-
<Countdown />
17-
18-
<NotifyButton />
18+
{countdown === null ? (
19+
<>
20+
<NotifyButton />
1921

20-
<Link
21-
href="/verify"
22-
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded focus:outline-hidden focus:shadow-outline max-w-md w-full text-center"
23-
>
24-
Get Build Access
25-
</Link>
22+
<Link
23+
href="/verify"
24+
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded focus:outline-hidden focus:shadow-outline max-w-md w-full text-center"
25+
>
26+
Get Build Access
27+
</Link>
28+
</>
29+
) : (
30+
countdown
31+
)}
2632
</>
2733
);
2834
}

0 commit comments

Comments
 (0)