diff --git a/packages/website/src/components/HomeCosmetics.astro b/packages/website/src/components/HomeCosmetics.astro index 72439affb..df2ffbd59 100644 --- a/packages/website/src/components/HomeCosmetics.astro +++ b/packages/website/src/components/HomeCosmetics.astro @@ -3,6 +3,8 @@ import { Heading } from "@radix-ui/themes"; import { tools } from "../constants/tools"; import { getStrings } from "../core/i18n/getStrings"; import ToolCard from "./ToolCard.astro"; +import ToolCardLayoutColumn from "./ToolCardLayoutColumn.astro"; +import ToolCardLayoutRoot from "./ToolCardLayoutRoot.astro"; interface Props { locale: string; @@ -10,10 +12,17 @@ interface Props { const { locale } = Astro.props; -const strings = await getStrings(locale); +const strings = getStrings(locale); --- -{strings.home.cosmetics} +{strings.home.cosmetics} - - + + + + + + + + + diff --git a/packages/website/src/components/HomeGames.astro b/packages/website/src/components/HomeGames.astro index d9e0d51c0..56ca357ee 100644 --- a/packages/website/src/components/HomeGames.astro +++ b/packages/website/src/components/HomeGames.astro @@ -3,6 +3,8 @@ import { Heading } from "@radix-ui/themes"; import { tools } from "../constants/tools"; import { getStrings } from "../core/i18n/getStrings"; import ToolCard from "./ToolCard.astro"; +import ToolCardLayoutColumn from "./ToolCardLayoutColumn.astro"; +import ToolCardLayoutRoot from "./ToolCardLayoutRoot.astro"; interface Props { locale: string; @@ -15,5 +17,12 @@ const strings = getStrings(locale); {strings.home.games} - - + + + + + + + + + diff --git a/packages/website/src/components/HomePlayers.astro b/packages/website/src/components/HomePlayers.astro index 894f6e925..06cb5c0bb 100644 --- a/packages/website/src/components/HomePlayers.astro +++ b/packages/website/src/components/HomePlayers.astro @@ -3,6 +3,8 @@ import { Heading } from "@radix-ui/themes"; import { tools } from "../constants/tools"; import { getStrings } from "../core/i18n/getStrings"; import ToolCard from "./ToolCard.astro"; +import ToolCardLayoutColumn from "./ToolCardLayoutColumn.astro"; +import ToolCardLayoutRoot from "./ToolCardLayoutRoot.astro"; interface Props { locale: string; @@ -15,6 +17,13 @@ const strings = getStrings(locale); {strings.home.players} - - - + + + + + + + + + + diff --git a/packages/website/src/components/HomeTanks.astro b/packages/website/src/components/HomeTanks.astro index ee91463a1..8a69a1c1e 100644 --- a/packages/website/src/components/HomeTanks.astro +++ b/packages/website/src/components/HomeTanks.astro @@ -3,6 +3,8 @@ import { Heading } from "@radix-ui/themes"; import { tools } from "../constants/tools"; import { getStrings } from "../core/i18n/getStrings"; import ToolCard from "./ToolCard.astro"; +import ToolCardLayoutColumn from "./ToolCardLayoutColumn.astro"; +import ToolCardLayoutRoot from "./ToolCardLayoutRoot.astro"; interface Props { locale: string; @@ -14,6 +16,13 @@ const strings = getStrings(locale); {strings.home.tanks} - - - + + + + + + + + + + diff --git a/packages/website/src/components/HomeTechnical.astro b/packages/website/src/components/HomeTechnical.astro index 7e5143111..488774a63 100644 --- a/packages/website/src/components/HomeTechnical.astro +++ b/packages/website/src/components/HomeTechnical.astro @@ -3,6 +3,8 @@ import { Heading } from "@radix-ui/themes"; import { tools } from "../constants/tools"; import { getStrings } from "../core/i18n/getStrings"; import ToolCard from "./ToolCard.astro"; +import ToolCardLayoutColumn from "./ToolCardLayoutColumn.astro"; +import ToolCardLayoutRoot from "./ToolCardLayoutRoot.astro"; interface Props { locale: string; @@ -13,7 +15,14 @@ const { locale } = Astro.props; const strings = getStrings(locale); --- -{strings.home.technical} +{strings.home.technical} - - + + + + + + + + + diff --git a/packages/website/src/components/ToolCard.astro b/packages/website/src/components/ToolCard.astro index eba3da48a..c2446e187 100644 --- a/packages/website/src/components/ToolCard.astro +++ b/packages/website/src/components/ToolCard.astro @@ -20,7 +20,7 @@ const toolStrings = + +
+ +
diff --git a/packages/website/src/components/ToolCardLayoutRoot.astro b/packages/website/src/components/ToolCardLayoutRoot.astro new file mode 100644 index 000000000..c4b9c821e --- /dev/null +++ b/packages/website/src/components/ToolCardLayoutRoot.astro @@ -0,0 +1,25 @@ +--- +interface Props { + minor?: boolean; +} + +const { minor } = Astro.props; +--- + + + +
+ +