mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-29 04:44:23 +01:00
start work on titles
This commit is contained in:
12 files changed
+35
-1
No files matched your search
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user