diff --git a/.envrc b/.envrc deleted file mode 100644 index 24e198b..0000000 --- a/.envrc +++ /dev/null @@ -1 +0,0 @@ -use flake "path:$(realpath -m .)" diff --git a/frontend/index.html b/frontend/index.html index 162f415..d9d1aad 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -5,9 +5,11 @@ Ft Boules + + - +
@@ -34,7 +36,7 @@ 👤 Signin 👤 Chat ⭕ Tic-Tac-Toe - ⚙️ Settings + ⚙️ Profile 🚪 Logout diff --git a/frontend/src/pages/root/root.html b/frontend/src/pages/root/root.html index d62fa44..379444b 100644 --- a/frontend/src/pages/root/root.html +++ b/frontend/src/pages/root/root.html @@ -1,15 +1,112 @@ -
- Welcome a to The Site de Boule -
-
- Welcome a to The Site de Boule -
-
- Welcome a to The Site de Boule -
-
- Welcome a to The Site de Boule -
-
- Welcome a to The Site de Boule +
+ + +
+
+

+ A Website
+ Entirely About Balls +

+

+ Tennis balls. Ping pong balls. Spherical legends of sport and chaos. + If it bounces, it belongs here. +
+ Since we didn't have any ideas, you can also play pong +

+
+ +
+ Tennis balls + + Naturally Sourced Ball + +
+
+ + +
+
+

+ Featured Ball Categories +

+ +
+ +
+
+ Tennis balls +
+

+ Tennis Balls +

+

+ Fuzzy icons of optimism. Designed to bounce forever, until they don’t. +

+
+ + +
+
+ + Ping pong balls +
+

+ Ping Pong Balls +

+

+ Lightweight, unpredictable, and emotionally devastating to lose. +

+
+ + +
+
+ Rubber balls +
+

+ Other Balls +

+

+ Stress balls. Mystery balls. Balls with unclear intentions. +

+
+
+
+
+ + +
+
+
+

1,024

+

Balls Observed

+
+
+

98%

+

Bounce Accuracy

+
+
+

0

+

Regrets

+
+
+
+ + +
+
+

+ Embrace the Ball Lifestyle +

+

+ No sign-up (we do lie). No judgment. Just balls. +

+
+
diff --git a/frontend/src/pages/root/root.ts b/frontend/src/pages/root/root.ts index 2c42480..f7653e2 100644 --- a/frontend/src/pages/root/root.ts +++ b/frontend/src/pages/root/root.ts @@ -1,18 +1,11 @@ -import { addRoute, setTitle, type RouteHandlerParams } from "@app/routing"; -import page from './root.html?raw' -import { updateUser } from "@app/auth"; +import { addRoute, setTitle } from "@app/routing"; +import page from "./root.html?raw"; -addRoute('/', async (_: string): Promise => { - let user = await updateUser(); - if (user === null) - setTitle(`Welcome`) - else - setTitle(`Welcome ${user.guest ? '[GUEST] ' : ''}${user.name}`); - return page; -}, { bypass_auth: true }) - -addRoute('/with_title/:title', (_: string, args: RouteHandlerParams) => { - setTitle(args.title) - console.log(`title should be '${args.title}'`); - return page; -}, { bypass_auth: false }) +addRoute( + "/", + async (_: string): Promise => { + setTitle(`Welcome`); + return page; + }, + { bypass_auth: true }, +);