From 65de29cd927fa92bbb816893c1a45ce6081304ab Mon Sep 17 00:00:00 2001 From: wearrrrr Date: Fri, 19 Jul 2024 18:54:53 -0500 Subject: [PATCH] Add more games, add fullscreen button, and remove testing marketplace items. --- public/games | 2 +- public/img/games/fullscreen.svg | 4 +++ src/components/GameItem.astro | 15 ++++++++--- src/json/games.json | 22 ++++++++++++---- src/json/marketplace.json | 45 --------------------------------- src/layouts/Layout.astro | 4 +++ src/pages/game/[game].astro | 29 +++++++++++++++++++-- 7 files changed, 64 insertions(+), 57 deletions(-) create mode 100644 public/img/games/fullscreen.svg diff --git a/public/games b/public/games index 731e408..2beae2c 160000 --- a/public/games +++ b/public/games @@ -1 +1 @@ -Subproject commit 731e408a4b6802a99ff4916cc310199c8420ca45 +Subproject commit 2beae2ca136865d7a78ce42fea0f590c24371a1f diff --git a/public/img/games/fullscreen.svg b/public/img/games/fullscreen.svg new file mode 100644 index 0000000..60b67bb --- /dev/null +++ b/public/img/games/fullscreen.svg @@ -0,0 +1,4 @@ + + + \ No newline at end of file diff --git a/src/components/GameItem.astro b/src/components/GameItem.astro index 822803b..45897bc 100644 --- a/src/components/GameItem.astro +++ b/src/components/GameItem.astro @@ -3,30 +3,37 @@ const { game } = Astro.props; ---
- + +

{game.name}

-

{game.name}

diff --git a/src/json/games.json b/src/json/games.json index 01a5057..c102308 100644 --- a/src/json/games.json +++ b/src/json/games.json @@ -22,6 +22,11 @@ "image": "/games/baldi/logo.png", "slug": "baldi" }, + "basketball-stars": { + "name": "Basketball Stars", + "image": "/games/basketball-stars/logo.png", + "slug": "basketball-stars" + }, "cannon-basketball-4": { "name": "Cannon Basketball 4", "image": "/games/cannon-basketball-4/logo.png", @@ -213,6 +218,12 @@ "image": "/games/retro-bowl/logo.png", "slug": "retro-bowl" }, + "rooftop-sniper": { + "name": "Rooftop Snipers", + "image": "/games/rooftop-sniper/logo.png", + "slug": "rooftop-sniper", + "unity": true + }, "sans-fight": { "name": "Sans Fight", "image": "/games/sans-fight/icon-256.png", @@ -228,11 +239,6 @@ "image": "/games/sm64/logo.png", "slug": "sm64" }, - "solitaire": { - "name": "Solitaire", - "image": "/games/solitaire/logo.png", - "slug": "solitaire" - }, "suika-combination": { "name": "Suika Combination", "image": "/games/suika-combination/logo.webp", @@ -248,6 +254,12 @@ "image": "/games/there-is-no-game/logo.png", "slug": "there-is-no-game" }, + "tunnelrush": { + "name": "Tunnel Rush", + "image": "/games/tunnelrush/logo.jpg", + "slug": "tunnelrush", + "unity": true + }, "ul6": { "name": "Ultima 6", "image": "/games/ul6/logo.png", diff --git a/src/json/marketplace.json b/src/json/marketplace.json index 817b82f..b6d4a5b 100644 --- a/src/json/marketplace.json +++ b/src/json/marketplace.json @@ -17,50 +17,5 @@ "script": "/marketplace/oled-theme/theme.css", "type": "theme", "themeName": "oled" - }, - "dev.wearr.oled-theme2": { - "title": "OLED Theme", - "description": "A beautiful OLED theme for Alu.", - "version": "0.0.1", - "image": "/marketplace/oled-theme/theme.png", - "script": "/marketplace/oled-theme/theme.css", - "type": "theme", - "themeName": "oled" - }, - "dev.wearr.oled-theme3": { - "title": "OLED Theme", - "description": "A beautiful OLED theme for Alu.", - "version": "0.0.1", - "image": "/marketplace/oled-theme/theme.png", - "script": "/marketplace/oled-theme/theme.css", - "type": "theme", - "themeName": "oled" - }, - "dev.wearr.oled-theme4": { - "title": "OLED Theme", - "description": "A beautiful OLED theme for Alu.", - "version": "0.0.1", - "image": "/marketplace/oled-theme/theme.png", - "script": "/marketplace/oled-theme/theme.css", - "type": "theme", - "themeName": "oled" - }, - "dev.wearr.oled-theme5": { - "title": "OLED Theme", - "description": "A beautiful OLED theme for Alu.", - "version": "0.0.1", - "image": "/marketplace/oled-theme/theme.png", - "script": "/marketplace/oled-theme/theme.css", - "type": "theme", - "themeName": "oled" - }, - "dev.wearr.oled-theme6": { - "title": "OLED Theme", - "description": "A beautiful OLED theme for Alu.", - "version": "0.0.1", - "image": "/marketplace/oled-theme/theme.png", - "script": "/marketplace/oled-theme/theme.css", - "type": "theme", - "themeName": "oled" } } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index d2edd75..99c3d66 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -88,6 +88,10 @@ const { title, optionalPreloads } = Astro.props; color: var(--text-color); } + h1, h2, h3, h4, h5, h6, p, span { + color: var(--text-color); + } + [data-theme="mocha"] { /* Catppucin Mocha theme */ --background-color: #1e1e2e; diff --git a/src/pages/game/[game].astro b/src/pages/game/[game].astro index 21047dd..1f485d6 100644 --- a/src/pages/game/[game].astro +++ b/src/pages/game/[game].astro @@ -32,8 +32,13 @@ if (!gameData) {