2023-07-13 18:43:19 +02:00
|
|
|
<script lang="ts">
|
|
|
|
export let active = false
|
|
|
|
export let opened = false
|
|
|
|
</script>
|
|
|
|
|
2023-07-14 21:32:33 +02:00
|
|
|
<div class="header" class:fixed="{!opened}">
|
2023-07-13 18:43:19 +02:00
|
|
|
<div class="logo">
|
|
|
|
<img src="/media/Logo Quer.svg" alt="Logo Quer" />
|
|
|
|
</div>
|
|
|
|
<button class="menu" on:click="{() => (active = !active)}">
|
|
|
|
<div>MENÜ</div>
|
|
|
|
{#if opened}
|
|
|
|
<img src="/media/ei close.svg" alt="Logo" />
|
|
|
|
{:else}
|
|
|
|
<img src="/media/BurgerMenu.svg" alt="Menu" />
|
|
|
|
{/if}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style lang="less">
|
|
|
|
@import "../../assets/css/main.less";
|
2023-07-14 21:32:33 +02:00
|
|
|
.fixed {
|
|
|
|
position: fixed;
|
|
|
|
top: 0px;
|
|
|
|
z-index: 100;
|
|
|
|
}
|
2023-07-13 18:43:19 +02:00
|
|
|
.header {
|
2023-07-14 21:32:33 +02:00
|
|
|
background-color: @bg-color;
|
2023-07-13 18:43:19 +02:00
|
|
|
width: 100%;
|
|
|
|
padding: 10.4px 5px;
|
|
|
|
@media @tablet {
|
|
|
|
padding: 25.4px 60px;
|
|
|
|
}
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
gap: 25px;
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 1;
|
|
|
|
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu {
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 4px;
|
|
|
|
font-weight: bold;
|
|
|
|
@media @tablet {
|
|
|
|
gap: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|