mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 11:20:36 +08:00
In the sidebar layout we also show settings on the left-hand-side of the screen.
70 lines
1.5 KiB
Svelte
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>
|