diff --git a/leaky-ships/pages/dev/index.tsx b/leaky-ships/pages/dev/index.tsx index 2ee42c0..47e9f2e 100644 --- a/leaky-ships/pages/dev/index.tsx +++ b/leaky-ships/pages/dev/index.tsx @@ -3,20 +3,15 @@ import { faEye, faLeftLong } from "@fortawesome/pro-regular-svg-icons" import { faCirclePlay } from "@fortawesome/pro-thin-svg-icons" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import { useState } from "react" +import Logo from "../../components/Logo" +import BurgerMenu from "../../components/BurgerMenu" export default function Home() { const [heWantsToPlay, setHeWantsToPlay] = useState(false) return (
- -
-
-

Leaky

-

Ships

-
-
+ + {!heWantsToPlay ? ( <>
diff --git a/leaky-ships/pages/dev/login.tsx b/leaky-ships/pages/dev/login.tsx new file mode 100644 index 0000000..6b7e8bf --- /dev/null +++ b/leaky-ships/pages/dev/login.tsx @@ -0,0 +1,65 @@ +import { faSpinnerThird } from "@fortawesome/pro-solid-svg-icons" +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" +import React, { useState } from "react" + +function login() { + const [loading, setLoading] = useState(false) + return ( +
+
+
+
+ Avatar +

Leaky Ships

+ + {loading ? "Logging in..." : "Enter Login Details"} + +
+ {loading ? ( + setLoading(false)} + /> + ) : ( +
+
+ +
+ +
+ +
+
+ +
+
+ )} +
+
+
+ ) +} + +export default login diff --git a/leaky-ships/pages/dev/logout.tsx b/leaky-ships/pages/dev/logout.tsx new file mode 100644 index 0000000..0de36d2 --- /dev/null +++ b/leaky-ships/pages/dev/logout.tsx @@ -0,0 +1,38 @@ +import { faSpinnerThird } from "@fortawesome/pro-solid-svg-icons" +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" +import { useRouter } from "next/router" +import React, { useEffect } from "react" + +function logout() { + const router = useRouter() + + useEffect(() => { + const timeout = setTimeout(() => router.push("/dev"), 2000) + return () => clearTimeout(timeout) + }, []) + + return ( +
+
+
+
+ Avatar +

Leaky Ships

+ Logging out... +
+ +
+
+
+ ) +} + +export default logout diff --git a/leaky-ships/pages/index.tsx b/leaky-ships/pages/index.tsx index 755105b..826adf1 100644 --- a/leaky-ships/pages/index.tsx +++ b/leaky-ships/pages/index.tsx @@ -21,6 +21,21 @@ export default function Home() { Homepage

+

+ + Lobby + +

+

+ + Login + +

+

+ + Logout + +

Grid Effect diff --git a/leaky-ships/public/images/wallpaper.jpg b/leaky-ships/public/images/wallpaper.jpg new file mode 100644 index 0000000..9a6e72d Binary files /dev/null and b/leaky-ships/public/images/wallpaper.jpg differ