correct flag and tank media paths

This commit is contained in:
tresabhi committed 2026-05-25 14:20:46 -05:00
1 parent 26a0c1f176
commit 006b2fef78
3 files changed
+10 -7

No files matched your search

@@ -35,8 +35,8 @@ export function TankCard(props: PropsWithSkeleton<TankCardProps>) {
className={styles.flag} className={styles.flag}
style={{ style={{
backgroundImage: clientUnmounted backgroundImage: clientUnmounted
? "url(/api/unmounted/flag.png)" ? "url(/media/unmounted/flag.png)"
: `url(/api/nations/${tank!.tank!.nation}/card.webp)`, : `url(/media/flags/cards/${tank!.tank!.nation}.webp)`,
}} }}
/> />
)} )}
@@ -46,8 +46,8 @@ export function TankCard(props: PropsWithSkeleton<TankCardProps>) {
className={styles.icon} className={styles.icon}
style={{ style={{
backgroundImage: clientUnmounted backgroundImage: clientUnmounted
? "url(/api/unmounted/tank.png)" ? "url(/media/unmounted/tank.png)"
: `url(/api/tanks/${props.id}.webp)`, : `url(/media/tanks/big/${props.id}.webp)`,
}} }}
/> />
)} )}
@@ -76,14 +76,14 @@ const toolStrings = strings.tools[tool.id as keyof typeof strings.tools];
className="tool-card" className="tool-card"
underline="never" underline="never"
style={{ style={{
backgroundImage: `url(/assets/tools/${tool.id}.webp)`, backgroundImage: `url(/media/tools/banners/${tool.id}.webp)`,
}} }}
data-gradient={gradient} data-gradient={gradient}
> >
<div <div
class="poster" class="poster"
style={{ style={{
backgroundImage: `url(/assets/tools/${tool.id}.webp)`, backgroundImage: `url(/media/tools/banners/${tool.id}.webp)`,
}} }}
> >
{gradient && <div class="gradient" />} {gradient && <div class="gradient" />}
@@ -6,8 +6,11 @@ import {
} from "../../../../api/responses"; } from "../../../../api/responses";
import { game } from "../../../../game/game"; import { game } from "../../../../game/game";
import { clientUnmounted } from "../../../../game/unmounted"; import { clientUnmounted } from "../../../../game/unmounted";
import { getStaticPaths as _getStaticPaths } from "../../../[api]/tanks/[id].json";
import { getStaticPaths as __getStaticPaths } from "../../_index";
import { mixStaticPaths } from "../../../../astro/mixStaticPaths";
export { getStaticPaths } from "../../../[api]/tanks/[id].json"; export const getStaticPaths = mixStaticPaths(__getStaticPaths, _getStaticPaths);
export async function GET({ params }: APIContext<never, { id: string }>) { export async function GET({ params }: APIContext<never, { id: string }>) {
if (clientUnmounted) return clientUnmountedResponse; if (clientUnmounted) return clientUnmountedResponse;