Files
radicle-explorer/src/App/Footer.svelte
T
Rūdolfs Ošiņš 0b56f31dad Flip settings and radicle.xyz in the footer
In the sidebar layout we also show settings on the left-hand-side of the
screen.
2024-03-07 14:30:26 +01:00

70 lines
1.5 KiB
Svelte

<script lang="ts">
import IconButton from "@app/components/IconButton.svelte";
import IconSmall from "@app/components/IconSmall.svelte";
import KeyHint from "@app/components/KeyHint.svelte";
import Popover from "@app/components/Popover.svelte";
import Settings from "./Settings.svelte";
</script>
<style>
.footer {
display: flex;
align-items: center;
justify-content: space-between;
font-size: var(--font-size-small);
color: var(--color-foreground-dim);
height: 2.25rem;
background-color: var(--color-background-dip);
padding: 1rem;
}
.left {
display: flex;
align-items: center;
gap: 0.5rem;
}
.right {
display: flex;
gap: 1.5rem;
}
a {
display: flex;
}
a:hover {
color: var(--color-fill-secondary);
}
</style>
<div class="footer">
<div class="left">
<Popover popoverPositionBottom="2rem" popoverPositionLeft="0">
<IconButton slot="toggle" let:toggle on:click={toggle}>
<IconSmall name="settings" />
Settings
</IconButton>
<Settings slot="popover" />
</Popover>
</div>
<div class="center">
Press <KeyHint>?</KeyHint>
for keyboard shortcuts
</div>
<div class="right">
<a
style:display="flex"
style:align-items="center"
style:gap="0.25rem"
target="_blank"
rel="noreferrer"
href="https://radicle.xyz">
radicle.xyz
<IconSmall name="arrow-box-up-right" />
</a>
</div>
</div>