diff --git a/packages/i18n/strings/en.json b/packages/i18n/strings/en.json index b06dcd0bc..8ad7990a5 100644 --- a/packages/i18n/strings/en.json +++ b/packages/i18n/strings/en.json @@ -41,9 +41,6 @@ "action": "To docs", "slogan": "BlitzKit hosted API" }, - "settings": { - "name": "Settings" - }, "players": { "name": "Players", "slogan": "Player statistics", diff --git a/packages/website-ue/public/assets/tools/api.webp b/packages/website-ue/public/assets/tools/api.webp index ba72cd100..c3fcc15f8 100644 Binary files a/packages/website-ue/public/assets/tools/api.webp and b/packages/website-ue/public/assets/tools/api.webp differ diff --git a/packages/website-ue/public/assets/tools/guess.webp b/packages/website-ue/public/assets/tools/guesser.webp similarity index 100% rename from packages/website-ue/public/assets/tools/guess.webp rename to packages/website-ue/public/assets/tools/guesser.webp diff --git a/packages/website-ue/src/components/Button/index.tsx b/packages/website-ue/src/components/Button/index.tsx index 77c8d7195..cfd92b32f 100644 --- a/packages/website-ue/src/components/Button/index.tsx +++ b/packages/website-ue/src/components/Button/index.tsx @@ -14,6 +14,11 @@ export const LIGHT_TEXT_COLORS = new Set([ "teal", "grass", "amber", + "plum", + "pink", + "brown", + "crimson", + "jade", ]); export function Button({ diff --git a/packages/website-ue/src/components/HomeHero.astro b/packages/website-ue/src/components/HomeHero.astro index 4b7b26fad..5213fc9ca 100644 --- a/packages/website-ue/src/components/HomeHero.astro +++ b/packages/website-ue/src/components/HomeHero.astro @@ -21,9 +21,11 @@ const strings = await api.strings(locale); flex-direction: column; justify-content: end; align-items: center; - padding: 0 var(--space-4); position: relative; + padding: 0 var(--space-4); + margin-bottom: var(--space-4); + .wallpaper { position: absolute; top: 0; diff --git a/packages/website-ue/src/components/ToolCard.astro b/packages/website-ue/src/components/ToolCard.astro index ef2b5c275..ec09d0899 100644 --- a/packages/website-ue/src/components/ToolCard.astro +++ b/packages/website-ue/src/components/ToolCard.astro @@ -29,6 +29,11 @@ const toolStrings = strings.tools[tool.id as keyof typeof strings.tools]; background-position: center; overflow: hidden; + &[data-significant="true"] { + grid-column: 1 / -1; + height: 15rem; + } + .poster { flex: 1; @@ -59,6 +64,7 @@ const toolStrings = strings.tools[tool.id as keyof typeof strings.tools]; style={{ backgroundImage: `url(/assets/tools/${tool.id}.webp)`, }} + data-significant={tool.significant} >
{toolStrings.slogan}
- diff --git a/packages/website-ue/src/core/tools/tools.ts b/packages/website-ue/src/core/tools/tools.ts index 8ef04f755..09c301487 100644 --- a/packages/website-ue/src/core/tools/tools.ts +++ b/packages/website-ue/src/core/tools/tools.ts @@ -3,6 +3,7 @@ import type { Color } from "../ui/color"; export interface Tool { id: string; + significant?: boolean; accent: Color; banner_background_position: "top" | "center" | "bottom"; } @@ -11,22 +12,30 @@ export const tools: Record = { tanks: { id: "tanks", - accent: "purple", + significant: true, + accent: "plum", banner_background_position: "top", }, players: { id: "players", - accent: "purple", + accent: "pink", banner_background_position: "top", }, - settings: { - id: "settings", + compare: { + id: "compare", - accent: "gray", - banner_background_position: "top", + accent: "crimson", + banner_background_position: "bottom", + }, + + performance: { + id: "performance", + + accent: "jade", + banner_background_position: "bottom", }, avatars: { @@ -46,21 +55,7 @@ export const tools: Record = { api: { id: "api", - accent: "lime", - banner_background_position: "bottom", - }, - - compare: { - id: "compare", - - accent: "crimson", - banner_background_position: "bottom", - }, - - performance: { - id: "performance", - - accent: "jade", + accent: "brown", banner_background_position: "bottom", }, diff --git a/packages/website-ue/src/pages/[...locale]/index.astro b/packages/website-ue/src/pages/[...locale]/index.astro index b9776da22..e52bea223 100644 --- a/packages/website-ue/src/pages/[...locale]/index.astro +++ b/packages/website-ue/src/pages/[...locale]/index.astro @@ -1,8 +1,11 @@ --- import locales from "@blitzkit/i18n/locales.json"; import type { GetStaticPaths } from "astro"; +import ColorScale from "../../components/ColorScale.astro"; import HomeHero from "../../components/HomeHero.astro"; -import { RecentItems } from "../../components/RecentItems"; +import { Section } from "../../components/Section"; +import ToolCard from "../../components/ToolCard.astro"; +import { tools } from "../../core/tools/tools"; import BaseLayout from "../../layouts/BaseLayout.astro"; export const getStaticPaths = (() => { @@ -17,14 +20,26 @@ export const getStaticPaths = (() => { const { locale } = Astro.props; --- + + - - - + {Object.values(tools).map((tool) => )} - + + +
+
+ {Object.values(tools).map((tool) => )} +
+