start work on titles

This commit is contained in:
tresabhi committed 2026-11-25 10:38:39 -06:00
1 parent 8db298cde3
commit ea08fe9900
12 files changed
+35 -1

No files matched your search

File renamed without changes.

Before

Width:  |  Height:  |  Size: 242 KiB

After

Width:  |  Height:  |  Size: 242 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 251 KiB

After

Width:  |  Height:  |  Size: 251 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 255 KiB

After

Width:  |  Height:  |  Size: 255 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 365 KiB

After

Width:  |  Height:  |  Size: 365 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 771 KiB

After

Width:  |  Height:  |  Size: 771 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 251 KiB

After

Width:  |  Height:  |  Size: 251 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 211 KiB

After

Width:  |  Height:  |  Size: 211 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 379 KiB

After

Width:  |  Height:  |  Size: 379 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 371 KiB

After

Width:  |  Height:  |  Size: 371 KiB

@@ -0,0 +1,10 @@
.wrapper {
background-size: cover;
background-position: center;
.content {
padding: var(--space-4);
background: linear-gradient(90deg, var(--gray-1), transparent);
}
}
@@ -0,0 +1,23 @@
import { useDuelModules } from "../../hooks/useDuelModules";
import { useUnwrapper } from "../../hooks/useUnwrapper";
import { Heading } from "../Heading";
import styles from "./index.module.css";
export function TankopediaTitle() {
const unwrap = useUnwrapper();
const protagonist = useDuelModules("protagonist");
return (
<div
className={styles.wrapper}
style={{
backgroundImage: `url(/media/national-wallpapers/${protagonist.tank.nation}.jpg)`,
}}
>
<div className={styles.content}>
<Heading size="3">{unwrap(protagonist.tank.name)}</Heading>
</div>
</div>
);
}
@@ -8,6 +8,7 @@ import { TankopediaGameModeAbilities } from "../../../../../components/Tankopedi
import { TankopediaLoadout } from "../../../../../components/TankopediaLoadout"; import { TankopediaLoadout } from "../../../../../components/TankopediaLoadout";
import { TankopediaSandbox } from "../../../../../components/TankopediaSandbox"; import { TankopediaSandbox } from "../../../../../components/TankopediaSandbox";
import { TankopediaTabs } from "../../../../../components/TankopediaTabs"; import { TankopediaTabs } from "../../../../../components/TankopediaTabs";
import { TankopediaTitle } from "../../../../../components/TankopediaTitle";
import { TankopediaVideos } from "../../../../../components/TankopediaVideos"; import { TankopediaVideos } from "../../../../../components/TankopediaVideos";
import { defaultEqualizer } from "../../../../../config/equalizer"; import { defaultEqualizer } from "../../../../../config/equalizer";
import { withErrorWrapper } from "../../../../../hocs/withErrorWrapper"; import { withErrorWrapper } from "../../../../../hocs/withErrorWrapper";
@@ -56,6 +57,7 @@ export const Sandbox = withErrorWrapper(
return ( return (
<div className={styles.sandbox}> <div className={styles.sandbox}>
<TankopediaTitle />
<TankopediaSandbox <TankopediaSandbox
antagonistCharacteristics={antagonistCharacteristics} antagonistCharacteristics={antagonistCharacteristics}
thicknessRange={thicknessRange} thicknessRange={thicknessRange}
@@ -63,7 +65,6 @@ export const Sandbox = withErrorWrapper(
<TankopediaCharacteristics characteristics={characteristics} /> <TankopediaCharacteristics characteristics={characteristics} />
<TankopediaGameModeAbilities /> <TankopediaGameModeAbilities />
<TankopediaVideos /> <TankopediaVideos />
<TankopediaTabs /> <TankopediaTabs />
</div> </div>
); );