diff --git a/leaky-ships/components/BurgerMenu.tsx b/leaky-ships/components/BurgerMenu.tsx index eebcfa3..315441c 100644 --- a/leaky-ships/components/BurgerMenu.tsx +++ b/leaky-ships/components/BurgerMenu.tsx @@ -1,9 +1,19 @@ +import classNames from "classnames" import React from "react" -function BurgerMenu({ onClick }: { onClick?: () => void }) { +function BurgerMenu({ + onClick, + blur, +}: { + onClick?: () => void + blur?: boolean +}) { return ( - {settings ? setSettings(false)} /> : <>} ) } diff --git a/leaky-ships/components/Lobby/Player.tsx b/leaky-ships/components/Lobby/Player.tsx index 1e4e0dd..6cef80b 100644 --- a/leaky-ships/components/Lobby/Player.tsx +++ b/leaky-ships/components/Lobby/Player.tsx @@ -14,16 +14,16 @@ function Player({ edit?: boolean }) { return ( -
+

{text}

-
+
{src} {edit ? ( -
- -
- {Object.keys(settingOptions).map((key) => { - const state = settingOptions[key] - const onClick = () => - setSettingOptions((e) => ({ ...e, [key]: !e[key] })) - return - })} +
+
+
+
+

+ Settings +

+ +
+
+
+ +
+
+ {Object.keys(settingOptions).map((key) => { + const state = settingOptions[key] + const onClick = () => + setSettingOptions((e) => ({ ...e, [key]: !e[key] })) + return + })} +
diff --git a/leaky-ships/components/Logo.tsx b/leaky-ships/components/Logo.tsx index abc9a1f..c7e5f5e 100644 --- a/leaky-ships/components/Logo.tsx +++ b/leaky-ships/components/Logo.tsx @@ -1,35 +1,52 @@ import classNames from "classnames" import React from "react" -function Logo() { +function Logo({ small }: { small?: boolean }) { return (
-

+

Leaky Ships

- +
) } -function Screws() { +function Screws({ small }: { small?: boolean }) { return ( <> @@ -39,20 +56,24 @@ function Screws() { function Screw({ orientation, rotation, + small, }: { orientation: string rotation: string + small?: boolean }) { return (

diff --git a/leaky-ships/pages/dev/index.tsx b/leaky-ships/pages/dev/index.tsx index f0457d2..30359fb 100644 --- a/leaky-ships/pages/dev/index.tsx +++ b/leaky-ships/pages/dev/index.tsx @@ -23,7 +23,7 @@ export default function Home() { />