waffle/frontend/src/components/Sidebar.svelte

52 lines
1.1 KiB
Svelte
Raw Normal View History

<script>
import { HashIcon } from "svelte-feather-icons";
</script>
2022-04-15 02:39:13 +03:00
<style>
.sidebar {
height: 100%;
width: 255px;
padding: var(--space-sm);
background-color: var(--background-color-1);
}
.sidebar-button {
display: flex;
align-items: center;
justify-content: center;
border: none;
background-color: var(--background-color-1);
padding: var(--space-sm);
margin-bottom: var(--space-xxs);
color: currentColor;
font: inherit;
width: 100%;
border-radius: var(--radius-md);
vertical-align: middle;
}
.sidebar-button span {
margin-left: var(--space-xxs);
}
.sidebar-button:hover {
background-color: var(--background-color-2);
2022-04-15 02:39:13 +03:00
}
</style>
<div class="sidebar">
<button class="sidebar-button">
<HashIcon />
<span>channel name</span>
</button>
<button class="sidebar-button">
<HashIcon />
<span>channel name</span>
</button>
<button class="sidebar-button">
<HashIcon />
<span>channel name</span>
</button>
2022-04-15 02:39:13 +03:00
</div>