diff --git a/leaky-ships/components/Lobby/Icon.tsx b/leaky-ships/components/Lobby/Icon.tsx index ac663d5..de4c9c4 100644 --- a/leaky-ships/components/Lobby/Icon.tsx +++ b/leaky-ships/components/Lobby/Icon.tsx @@ -1,10 +1,12 @@ +import { ReactNode } from "react" + function Icon({ src, - text, + children, onClick, }: { src: string - text: string + children: ReactNode onClick?: () => void }) { return ( @@ -17,7 +19,7 @@ function Icon({ src={"/assets/" + src} alt={src} /> - {text} + {children} ) } diff --git a/leaky-ships/components/Lobby/LobbyFrame.tsx b/leaky-ships/components/Lobby/LobbyFrame.tsx index ad4852e..e96be7b 100644 --- a/leaky-ships/components/Lobby/LobbyFrame.tsx +++ b/leaky-ships/components/Lobby/LobbyFrame.tsx @@ -1,5 +1,5 @@ import { useEffect, useState } from "react" -import Settings from "../SettingsFrame/Settings" +import Settings from "./SettingsFrame/Settings" import Icon from "./Icon" import Player from "./Player" @@ -17,15 +17,13 @@ function LobbyFrame() { return (
- + Chat

Game-PIN: 3169

- setSettings(true)} - /> + setSettings(true)}> + Settings +
void + children: ReactNode +}) { + return ( + + ) +} + +export default OptionButton diff --git a/leaky-ships/pages/dev/index.tsx b/leaky-ships/pages/dev/index.tsx index 47e9f2e..a9e7cbf 100644 --- a/leaky-ships/pages/dev/index.tsx +++ b/leaky-ships/pages/dev/index.tsx @@ -5,43 +5,43 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import { useState } from "react" import Logo from "../../components/Logo" import BurgerMenu from "../../components/BurgerMenu" +import OptionButton from "../../components/OptionButton" export default function Home() { - const [heWantsToPlay, setHeWantsToPlay] = useState(false) + const [heWantsToPlay, setHeWantsToPlay] = useState(false) return ( -
+
- - {!heWantsToPlay ? ( - <> -
- +
+ + {!heWantsToPlay ? ( + <> +
+ +
+ + + ) : ( +
+ +
+ Raum erstellen + Raum beitreten + Zuschauen +
- - - ) : ( -
- -
- - - -
-
- )} + )} +
) } diff --git a/leaky-ships/tailwind.config.js b/leaky-ships/tailwind.config.js index 1859be0..87334c7 100644 --- a/leaky-ships/tailwind.config.js +++ b/leaky-ships/tailwind.config.js @@ -28,6 +28,7 @@ module.exports = { theme: "#282c34", grayish: "#b1b2b5cc", warn: "#fabd04", + voidDark: "#000c", "shield-gray": "#616161", "shield-lightgray": "#989898", },