boredgame/src/lib/components/header/Header.svelte

79 lines
1.4 KiB
Svelte
Raw Normal View History

2022-01-28 05:27:12 +00:00
<script lang="ts">
2022-07-29 00:07:23 +00:00
import Profile from '../preferences/profile.svelte';
2022-07-07 22:17:05 +00:00
import logo from './bored-game.png';
2022-01-28 05:27:12 +00:00
</script>
<header>
<div class="corner">
<a href="/" title="Home">
2022-07-08 19:25:44 +00:00
<img src={logo} alt="Bored Game Home" />
</a>
</div>
<nav>
<a href="/collection" title="Go to your collection">Your Collection</a>
<Profile />
</nav>
2022-01-28 05:27:12 +00:00
</header>
<style lang="scss">
header {
display: flex;
justify-content: space-between;
align-items: center;
2022-08-11 23:34:45 +00:00
padding: var(--containerPadding);
font-size: 1.6rem;
@media (max-width: 1000px) {
padding-top: 1.25rem;
}
}
2022-01-28 05:27:12 +00:00
.corner {
width: 3em;
height: 3em;
}
2022-01-28 05:27:12 +00:00
.corner a {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
2022-01-28 05:27:12 +00:00
.corner img {
width: 2em;
height: 2em;
object-fit: contain;
}
2022-01-28 05:27:12 +00:00
nav {
display: flex;
justify-content: center;
2022-05-03 02:31:50 +00:00
align-items: center;
gap: 2rem;
margin: 1rem;
--background: rgba(255, 255, 255, 0.7);
2022-05-03 02:31:50 +00:00
}
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;
2022-05-03 02:31:50 +00:00
}
a:hover {
text-decoration: underline;
color: var(--accent-color);
2022-05-03 02:31:50 +00:00
}
2022-01-28 05:27:12 +00:00
</style>