2022-01-28 05:27:12 +00:00
|
|
|
<script lang="ts">
|
2022-05-04 06:27:06 +00:00
|
|
|
// import {
|
2022-05-03 02:31:50 +00:00
|
|
|
// Theme,
|
|
|
|
|
// RadioButtonGroup,
|
|
|
|
|
// RadioButton,
|
|
|
|
|
// } from "carbon-components-svelte";
|
2022-05-04 06:27:06 +00:00
|
|
|
// import type { CarbonTheme } from "carbon-components-svelte/types/Theme/Theme.svelte";
|
|
|
|
|
import { page } from '$app/stores';
|
2022-05-16 06:42:50 +00:00
|
|
|
import Themes from '$lib/components/preferences/themes.svelte';
|
2022-07-07 22:17:05 +00:00
|
|
|
import logo from './bored-game.png';
|
2022-04-19 02:43:54 +00:00
|
|
|
|
2022-05-04 06:27:06 +00:00
|
|
|
// let theme: CarbonTheme = "white";
|
2022-01-28 05:27:12 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<header>
|
2022-05-04 06:27:06 +00:00
|
|
|
<div class="corner">
|
2022-07-07 22:17:05 +00:00
|
|
|
<a href="/">
|
2022-07-08 19:25:44 +00:00
|
|
|
<img src={logo} alt="Bored Game Home" />
|
2022-05-04 06:27:06 +00:00
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<nav>
|
2022-06-09 00:47:34 +00:00
|
|
|
<!-- <ul>
|
2022-05-04 06:27:06 +00:00
|
|
|
<li class:active={$page.url.pathname === '/'}><a sveltekit:prefetch href="/">Home</a></li>
|
|
|
|
|
<li class:active={$page.url.pathname === '/about'}>
|
|
|
|
|
<a sveltekit:prefetch href="/about">About</a>
|
|
|
|
|
</li>
|
2022-06-09 00:47:34 +00:00
|
|
|
</ul> -->
|
2022-07-19 21:04:32 +00:00
|
|
|
<div><Themes /></div>
|
2022-05-04 06:27:06 +00:00
|
|
|
</nav>
|
2022-01-28 05:27:12 +00:00
|
|
|
</header>
|
|
|
|
|
|
2022-07-21 06:20:32 +00:00
|
|
|
<style lang="scss">
|
2022-05-04 06:27:06 +00:00
|
|
|
header {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
2022-07-19 21:04:32 +00:00
|
|
|
align-items: center;
|
2022-07-25 05:26:58 +00:00
|
|
|
/* box-shadow: var(--level-2); */
|
2022-07-21 06:20:32 +00:00
|
|
|
padding: 0 var(--containerPadding);
|
|
|
|
|
font-size: 1.6rem;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 1000px) {
|
|
|
|
|
padding-top: 1.25rem;
|
|
|
|
|
}
|
|
|
|
|
/* max-width: 1000px; */
|
2022-05-04 06:27:06 +00:00
|
|
|
}
|
2022-01-28 05:27:12 +00:00
|
|
|
|
2022-05-04 06:27:06 +00:00
|
|
|
.corner {
|
|
|
|
|
width: 3em;
|
|
|
|
|
height: 3em;
|
|
|
|
|
}
|
2022-01-28 05:27:12 +00:00
|
|
|
|
2022-05-04 06:27:06 +00:00
|
|
|
.corner a {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
2022-01-28 05:27:12 +00:00
|
|
|
|
2022-05-04 06:27:06 +00:00
|
|
|
.corner img {
|
|
|
|
|
width: 2em;
|
|
|
|
|
height: 2em;
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
}
|
2022-01-28 05:27:12 +00:00
|
|
|
|
2022-05-04 06:27:06 +00:00
|
|
|
nav {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
2022-05-03 02:31:50 +00:00
|
|
|
align-items: center;
|
2022-07-19 21:04:32 +00:00
|
|
|
margin: 1rem;
|
2022-05-04 06:27:06 +00:00
|
|
|
--background: rgba(255, 255, 255, 0.7);
|
2022-05-03 02:31:50 +00:00
|
|
|
}
|
|
|
|
|
|
2022-05-04 06:27:06 +00:00
|
|
|
svg {
|
|
|
|
|
width: 2em;
|
|
|
|
|
height: 3em;
|
|
|
|
|
display: block;
|
2022-05-03 02:31:50 +00:00
|
|
|
}
|
|
|
|
|
|
2022-05-04 06:27:06 +00:00
|
|
|
path {
|
|
|
|
|
fill: var(--background);
|
2022-05-03 02:31:50 +00:00
|
|
|
}
|
|
|
|
|
|
2022-05-04 06:27:06 +00:00
|
|
|
ul {
|
|
|
|
|
position: relative;
|
2022-05-03 02:31:50 +00:00
|
|
|
padding: 0;
|
2022-05-04 06:27:06 +00:00
|
|
|
margin: 0;
|
|
|
|
|
height: 3em;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
list-style: none;
|
|
|
|
|
background: var(--background);
|
|
|
|
|
background-size: contain;
|
2022-05-03 02:31:50 +00:00
|
|
|
}
|
|
|
|
|
|
2022-05-04 06:27:06 +00:00
|
|
|
li {
|
|
|
|
|
position: relative;
|
|
|
|
|
height: 100%;
|
2022-05-03 02:31:50 +00:00
|
|
|
}
|
|
|
|
|
|
2022-05-04 06:27:06 +00:00
|
|
|
li.active::before {
|
|
|
|
|
--size: 6px;
|
|
|
|
|
content: '';
|
|
|
|
|
width: 0;
|
|
|
|
|
height: 0;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: calc(50% - var(--size));
|
|
|
|
|
border: var(--size) solid transparent;
|
|
|
|
|
border-top: var(--size) solid var(--accent-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
2022-05-04 06:27:06 +00:00
|
|
|
a:hover {
|
|
|
|
|
color: var(--accent-color);
|
2022-05-03 02:31:50 +00:00
|
|
|
}
|
2022-01-28 05:27:12 +00:00
|
|
|
</style>
|