flotilla/src/app/components/MenuSettings.svelte

46 lines
1.6 KiB
Svelte
Raw Normal View History

2024-10-09 23:11:23 +00:00
<script lang="ts">
2024-10-09 23:15:09 +00:00
import Icon from "@lib/components/Icon.svelte"
import Link from "@lib/components/Link.svelte"
import Button from "@lib/components/Button.svelte"
import CardButton from "@lib/components/CardButton.svelte"
2024-10-09 23:11:23 +00:00
import LogOut from "@app/components/LogOut.svelte"
2024-10-22 18:04:40 +00:00
import {PLATFORM_NAME} from "@app/state"
2024-10-09 23:11:23 +00:00
import {pushModal} from "@app/modal"
const logout = () => pushModal(LogOut)
</script>
2024-10-09 23:15:09 +00:00
<div class="column menu gap-2">
2024-10-24 18:52:02 +00:00
<Link replaceState href="/settings/profile">
2024-10-23 16:45:06 +00:00
<CardButton>
<div slot="icon"><Icon icon="user-rounded" size={7} /></div>
<div slot="title">Profile</div>
<div slot="info">Customize your user profile</div>
</CardButton>
</Link>
2024-10-24 18:52:02 +00:00
<Link replaceState href="/settings/relays">
2024-10-09 23:11:23 +00:00
<CardButton>
2024-10-18 22:58:44 +00:00
<div slot="icon"><Icon icon="server" size={7} /></div>
2024-10-09 23:11:23 +00:00
<div slot="title">Relays</div>
2024-10-22 18:04:40 +00:00
<div slot="info">Control how {PLATFORM_NAME} talks to the network</div>
2024-10-09 23:11:23 +00:00
</CardButton>
</Link>
2024-10-24 18:52:02 +00:00
<Link replaceState href="/settings">
2024-10-09 23:11:23 +00:00
<CardButton>
<div slot="icon"><Icon icon="settings" size={7} /></div>
2024-10-09 23:11:23 +00:00
<div slot="title">Settings</div>
2024-10-22 18:04:40 +00:00
<div slot="info">Get into the details about how {PLATFORM_NAME} works</div>
2024-10-09 23:11:23 +00:00
</CardButton>
</Link>
2024-10-24 18:52:02 +00:00
<Link replaceState href="/settings/about">
2024-10-09 23:11:23 +00:00
<CardButton>
2024-10-21 22:21:20 +00:00
<div slot="icon"><Icon icon="code-2" size={7} /></div>
2024-10-09 23:11:23 +00:00
<div slot="title">About</div>
2024-10-22 18:04:40 +00:00
<div slot="info">Learn about {PLATFORM_NAME} and support the developer</div>
2024-10-09 23:11:23 +00:00
</CardButton>
</Link>
<Button on:click={logout} class="btn btn-error">
<Icon icon="exit" /> Log Out
</Button>
</div>