Files
blitzkit/packages/website-ue/src/pages/[...locale]/tanks/index.astro
T

23 lines
463 B
Plaintext
Raw Normal View History

2025-11-28 13:19:15 -06:00
---
2025-12-19 22:23:03 -06:00
import "@radix-ui/colors/violet-dark.css";
2026-01-08 20:06:14 -06:00
import { api } from "../../../core/api/dynamic";
import BaseLayout from "../../../layouts/BaseLayout.astro";
2025-11-28 13:19:15 -06:00
2026-01-10 13:49:11 -06:00
export { getStaticPaths } from "../index.astro";
2025-12-26 19:21:14 -06:00
const tankList = await api.tankList();
2025-11-28 13:19:15 -06:00
---
2025-12-19 22:23:03 -06:00
<BaseLayout accent="violet">
2025-12-19 17:55:26 -06:00
<h1>tanks</h1>
2025-11-28 13:19:15 -06:00
2025-12-19 17:55:26 -06:00
{
2025-12-26 19:21:14 -06:00
tankList.list.map(({ id, slug }) => (
2025-12-19 17:55:26 -06:00
<p>
<a href={`/tanks/${slug}`}>
{slug} ({id})
</a>
</p>
))
}
</BaseLayout>