From 81877f5abd624230445d751b4354dbb2be4818cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 31 Jan 2026 22:32:59 -0600 Subject: [PATCH] feat: tank cards --- .../src/components/TankCard/index.module.css | 31 ++++++++++++++ .../src/components/TankCard/index.tsx | 30 ++++++++++++++ .../website-ue/src/components/TanksCard.astro | 40 +++++++++++++++++++ .../src/pages/[...locale]/index.astro | 3 ++ 4 files changed, 104 insertions(+) create mode 100644 packages/website-ue/src/components/TankCard/index.module.css create mode 100644 packages/website-ue/src/components/TankCard/index.tsx create mode 100644 packages/website-ue/src/components/TanksCard.astro diff --git a/packages/website-ue/src/components/TankCard/index.module.css b/packages/website-ue/src/components/TankCard/index.module.css new file mode 100644 index 000000000..52601ccda --- /dev/null +++ b/packages/website-ue/src/components/TankCard/index.module.css @@ -0,0 +1,31 @@ +.tank-card { + display: flex; + flex-direction: column; + align-items: center; + gap: var(--space-2); + + .icon-wrapper { + position: relative; + + .flag { + position: absolute; + top: 0; + left: 0; + + background-size: cover; + background-position: left center; + + width: 75%; + height: 50%; + } + + .icon { + width: 7rem; + aspect-ratio: 4 / 3; + position: relative; + + background-size: 150%; + background-position: center; + } + } +} diff --git a/packages/website-ue/src/components/TankCard/index.tsx b/packages/website-ue/src/components/TankCard/index.tsx new file mode 100644 index 000000000..8824b529f --- /dev/null +++ b/packages/website-ue/src/components/TankCard/index.tsx @@ -0,0 +1,30 @@ +import { Text } from "../Text"; +import styles from "./index.module.css"; + +interface TankCard { + tank: string; +} + +export function TankCard({ tank }: TankCard) { + return ( +