From 98c87787db3d16548b616fa890bab131263d4a47 Mon Sep 17 00:00:00 2001 From: Nick Tchayka Date: Wed, 6 Sep 2023 15:19:23 +0100 Subject: Add modal --- src/pages/index.tsx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/pages') diff --git a/src/pages/index.tsx b/src/pages/index.tsx index ae3e0bf..a8fb16d 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -10,6 +10,8 @@ import styles from "./index.module.css"; import Frame from "../components/Frame"; import Button from "../components/Button"; import CodeFrame from "../components/CodeFrame"; +import Dialog from "../components/Dialog"; +import Modal from "../components/Modal"; const dynC = (className: string, color: string) => `dark:${className}-dark${color} ${className}-light${color}`; @@ -53,8 +55,30 @@ function HomepageHeader() { export default function Home(): JSX.Element { const { siteConfig } = useDocusaurusContext(); + const [disclaimerOpen, setDisclaimerOpen] = React.useState(true); + const message = ""; return (
+
+ setDisclaimerOpen(!disclaimerOpen)} + title="Greetings traveller!" + > + You probably found this site by accident. It is far from finished, but + if you're curious about the project.{" "} + It's dangerous to go alone! + setDisclaimerOpen(!disclaimerOpen)} + > +

JOIN THE DISCORD SERVER!

+
+
+
-- cgit