mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
79 lines
1.3 KiB
Svelte
79 lines
1.3 KiB
Svelte
<script lang="ts">
|
|
import Profile from '../preferences/profile.svelte';
|
|
import logo from './bored-game.png';
|
|
</script>
|
|
|
|
<header>
|
|
<div class="corner">
|
|
<a href="/" title="Home">
|
|
<img src={logo} alt="Bored Game Home" />
|
|
</a>
|
|
</div>
|
|
|
|
<nav>
|
|
<a href="/collection" title="Go to your collection">Collection</a>
|
|
<a href="/wishlist" title="Go to your collection">Wishlist</a>
|
|
<Profile />
|
|
</nav>
|
|
</header>
|
|
|
|
<style lang="scss">
|
|
header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: var(--containerPadding);
|
|
font-size: 1.6rem;
|
|
|
|
@media (max-width: 1000px) {
|
|
padding-top: 1.25rem;
|
|
}
|
|
}
|
|
|
|
.corner {
|
|
width: 3em;
|
|
height: 3em;
|
|
}
|
|
|
|
.corner a {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.corner img {
|
|
width: 2em;
|
|
height: 2em;
|
|
object-fit: contain;
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin: 1rem;
|
|
--background: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
nav a {
|
|
display: flex;
|
|
height: 100%;
|
|
align-items: center;
|
|
padding: 0 1em;
|
|
color: var(--heading-color);
|
|
font-weight: 700;
|
|
/* font-size: 0.8rem; */
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
text-decoration: none;
|
|
transition: color 0.2s linear;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
color: var(--accent-color);
|
|
}
|
|
</style>
|