start work on titles
No files matched your search
|
Before Width: | Height: | Size: 242 KiB After Width: | Height: | Size: 242 KiB |
|
Before Width: | Height: | Size: 251 KiB After Width: | Height: | Size: 251 KiB |
|
Before Width: | Height: | Size: 255 KiB After Width: | Height: | Size: 255 KiB |
|
Before Width: | Height: | Size: 365 KiB After Width: | Height: | Size: 365 KiB |
|
Before Width: | Height: | Size: 771 KiB After Width: | Height: | Size: 771 KiB |
|
Before Width: | Height: | Size: 251 KiB After Width: | Height: | Size: 251 KiB |
|
Before Width: | Height: | Size: 211 KiB After Width: | Height: | Size: 211 KiB |
|
Before Width: | Height: | Size: 379 KiB After Width: | Height: | Size: 379 KiB |
|
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 { TankopediaSandbox } from "../../../../../components/TankopediaSandbox";
|
||||
import { TankopediaTabs } from "../../../../../components/TankopediaTabs";
|
||||
import { TankopediaTitle } from "../../../../../components/TankopediaTitle";
|
||||
import { TankopediaVideos } from "../../../../../components/TankopediaVideos";
|
||||
import { defaultEqualizer } from "../../../../../config/equalizer";
|
||||
import { withErrorWrapper } from "../../../../../hocs/withErrorWrapper";
|
||||
@@ -56,6 +57,7 @@ export const Sandbox = withErrorWrapper(
|
||||
|
||||
return (
|
||||
<div className={styles.sandbox}>
|
||||
<TankopediaTitle />
|
||||
<TankopediaSandbox
|
||||
antagonistCharacteristics={antagonistCharacteristics}
|
||||
thicknessRange={thicknessRange}
|
||||
@@ -63,7 +65,6 @@ export const Sandbox = withErrorWrapper(
|
||||
<TankopediaCharacteristics characteristics={characteristics} />
|
||||
<TankopediaGameModeAbilities />
|
||||
<TankopediaVideos />
|
||||
|
||||
<TankopediaTabs />
|
||||
</div>
|
||||
);
|
||||
|
||||