From 323d624ec73510cfe44e500d21420cfdd85449c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 18 Jan 2026 18:38:26 -0600 Subject: [PATCH] feat: idk bro --- packages/i18n/strings/en.json | 38 +++++++ .../website-ue/src/components/Navbar.astro | 68 +++++++----- packages/website-ue/src/core/tools/tools.ts | 100 +++++++++++++++--- packages/website-ue/src/icons/Tank.tsx | 20 ++++ .../website-ue/src/layouts/BaseLayout.astro | 6 +- .../src/pages/[...locale]/api/index.astro | 3 +- .../src/pages/[...locale]/avatars/index.astro | 2 +- .../src/pages/[...locale]/tanks/index.astro | 2 +- 8 files changed, 191 insertions(+), 48 deletions(-) create mode 100644 packages/website-ue/src/icons/Tank.tsx diff --git a/packages/i18n/strings/en.json b/packages/i18n/strings/en.json index 1ac8805f1..b06dcd0bc 100644 --- a/packages/i18n/strings/en.json +++ b/packages/i18n/strings/en.json @@ -40,6 +40,44 @@ "name": "API", "action": "To docs", "slogan": "BlitzKit hosted API" + }, + "settings": { + "name": "Settings" + }, + "players": { + "name": "Players", + "slogan": "Player statistics", + "action": "Stalk player" + }, + "compare": { + "name": "Compare", + "slogan": "Compare tanks characteristics", + "action": "Compare now" + }, + "performance": { + "name": "Performance", + "slogan": "Tank performance statistics", + "action": "View tanks" + }, + "playlist": { + "name": "Playlist", + "slogan": "Tank playlist generator", + "action": "Generate" + }, + "mixer": { + "name": "Mixer", + "slogan": "Tank module mixer", + "action": "Mix and match" + }, + "session": { + "name": "Session", + "slogan": "Live player statistics", + "action": "Track" + }, + "guesser": { + "name": "Guesser", + "slogan": "Silhouette mini-game", + "action": "Play" } }, diff --git a/packages/website-ue/src/components/Navbar.astro b/packages/website-ue/src/components/Navbar.astro index 734421ef8..4c695c6f6 100644 --- a/packages/website-ue/src/components/Navbar.astro +++ b/packages/website-ue/src/components/Navbar.astro @@ -1,20 +1,24 @@ --- -import { - GearIcon, - HamburgerMenuIcon, - MagnifyingGlassIcon, -} from "@radix-ui/react-icons"; import { BlitzKitIcon } from "../icons/BlitzKit"; import { LinkI18n } from "./LinkI18n"; import { Text } from "./Text"; import { api } from "../core/api/dynamic"; +import { tools } from "../core/tools/tools"; +import type { Tool } from "../core/tools/tools"; interface Props { locale: string; + selectedTool?: Tool; } -const { locale } = Astro.props; +const { locale, selectedTool } = Astro.props; const strings = await api.strings(locale); +const toolsArray = Object.values(tools); + +const toolsSorted = + selectedTool === undefined + ? toolsArray + : [selectedTool, ...toolsArray.filter((tool) => tool !== selectedTool)]; ---