Add Header component and required components

This commit is contained in:
Sebastian Martinez
2024-08-28 10:54:12 +02:00
committed by Rūdolfs Ošiņš
parent 5f61400707
commit 761c59e4e4
10 changed files with 282 additions and 2 deletions
+51
View File
@@ -0,0 +1,51 @@
<script lang="ts">
import Background from "./Header/Background.svelte";
import Icon from "./Icon.svelte";
import Label from "./Label.svelte";
</script>
<style>
.flex-item {
display: flex;
align-items: center;
}
header {
padding: 0 0.5rem;
gap: 1.5rem;
height: 3rem;
}
.wrapper {
width: 100%;
justify-content: space-between;
padding: 0 0.5rem;
}
.wrapper-left {
gap: 0.5rem;
padding: 0 0.5rem;
}
</style>
<header class="flex-item">
<div class="wrapper flex-item">
<div class="wrapper-left flex-item">
<div class="flex-item" style:gap="0.5rem">
<Icon name="arrow-left" />
<Icon name="arrow-right" />
</div>
<Label
styleBorderColor="var(--color-fill-ghost)"
styleFillColor="var(--color-fill-ghost)">
Repositories
</Label>
<Label styleBorderColor="var(--color-fill-ghost)">
<Icon name="plus" />
</Label>
</div>
<div class="flex-item">
<Label styleBorderColor="var(--color-fill-ghost)">
<Icon name="offline" /> Offline
</Label>
</div>
</div>
<Background />
</header>