mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
correct flag and tank media paths
This commit is contained in:
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}
|
||||
style={{
|
||||
backgroundImage: clientUnmounted
|
||||
? "url(/api/unmounted/flag.png)"
|
||||
: `url(/api/nations/${tank!.tank!.nation}/card.webp)`,
|
||||
? "url(/media/unmounted/flag.png)"
|
||||
: `url(/media/flags/cards/${tank!.tank!.nation}.webp)`,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
@@ -46,8 +46,8 @@ export function TankCard(props: PropsWithSkeleton<TankCardProps>) {
|
||||
className={styles.icon}
|
||||
style={{
|
||||
backgroundImage: clientUnmounted
|
||||
? "url(/api/unmounted/tank.png)"
|
||||
: `url(/api/tanks/${props.id}.webp)`,
|
||||
? "url(/media/unmounted/tank.png)"
|
||||
: `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"
|
||||
underline="never"
|
||||
style={{
|
||||
backgroundImage: `url(/assets/tools/${tool.id}.webp)`,
|
||||
backgroundImage: `url(/media/tools/banners/${tool.id}.webp)`,
|
||||
}}
|
||||
data-gradient={gradient}
|
||||
>
|
||||
<div
|
||||
class="poster"
|
||||
style={{
|
||||
backgroundImage: `url(/assets/tools/${tool.id}.webp)`,
|
||||
backgroundImage: `url(/media/tools/banners/${tool.id}.webp)`,
|
||||
}}
|
||||
>
|
||||
{gradient && <div class="gradient" />}
|
||||
|
||||
@@ -6,8 +6,11 @@ import {
|
||||
} from "../../../../api/responses";
|
||||
import { game } from "../../../../game/game";
|
||||
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 }>) {
|
||||
if (clientUnmounted) return clientUnmountedResponse;
|
||||
|
||||
Reference in new issue
Block a user