-
+
setEnemy((e) => !e)}
@@ -41,7 +56,7 @@ export default function Home() {
VS
{enemy ? (
-
+
) : (
Warte auf Spieler 2 {Array.from(Array(dots), () => ".").join("")}
@@ -60,24 +75,26 @@ export default function Home() {
function Icon({ src, text }: { src: string; text: string }) {
return (
-
+
+
)
}
function Player({
src,
text,
primary,
+ edit,
}: {
src: string
text: string
- primary: boolean
+ primary?: boolean
+ edit?: boolean
}) {
return (
@@ -91,10 +108,16 @@ function Player({

-
+ {edit ? (
+
+ ) : (
+ <>>
+ )}
)
diff --git a/leaky-ships/styles/globals.css b/leaky-ships/styles/globals.css
index 31f5c41..1583aa5 100644
--- a/leaky-ships/styles/globals.css
+++ b/leaky-ships/styles/globals.css
@@ -3,6 +3,10 @@
@tailwind utilities;
@import url("https://fonts.googleapis.com/css2?family=Farro:wght@300;400;500;700&display=swap");
+@font-face {
+ font-family: "CP_Font";
+ src: url("/fonts/cpfont_ote/CP Font.otf") format("opentype");
+}
.pixelart {
image-rendering: pixelated;
@@ -13,3 +17,7 @@
.farro {
font-family: "Farro", sans-serif;
}
+
+.CP_Font {
+ font-family: "CP_Font", sans-serif;
+}
diff --git a/leaky-ships/tailwind.config.js b/leaky-ships/tailwind.config.js
index f8ecd2c..d8e8fa9 100644
--- a/leaky-ships/tailwind.config.js
+++ b/leaky-ships/tailwind.config.js
@@ -1,10 +1,20 @@
/** @type {import('tailwindcss').Config} */
+const colors = require("tailwindcss/colors")
+
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
+ colors: {
+ ...colors,
+ theme: "#282c34",
+ grayish: "#b1b2b5cc",
+ warn: "#fabd04",
+ "shield-gray": "#616161",
+ "shield-lightgray": "#989898",
+ },
extend: {},
},
plugins: [],