owlboard-svelte/src/lib/navigation/header.svelte

48 lines
902 B
Svelte
Raw Normal View History

2023-06-12 21:50:47 +01:00
<script>
export let title = 'title'
</script>
<div class="headerBar">
<a href="/">
<picture>
<source srcset="/images/logo/wide_logo.svg" type="image/svg+xml">
<img src="/images/logo/wide_logo_200.png" alt="OwlBoard Logo">
</picture>
</a>
<header>{title}</header>
</div>
<div class="headerBlock">
<!-- This exists to prevent the headerBar overlapping anything below it -->
</div>
<style>
.headerBar {
2023-06-16 22:12:31 +01:00
background: var(--overlay-color-solid);
2023-06-12 21:50:47 +01:00
position: fixed;
top: 0; left: 0;
width: 100%;
margin: 0;
padding: 0;
height: 50px;
}
img {
position: absolute;
height: 40px;
left: 8px;
top: 5px;
}
header {
font-family: urwgothic, sans-serif;
font-weight: 600;
margin-top: 6px;
margin-left: 20px;
font-size: 20pt;
}
.headerBlock {
height: 50px;
margin: 0;
padding: 0;
}
</style>