mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-21 13:28:57 +00:00
feat: move logout icon to component
This commit is contained in:
parent
8e40aa46af
commit
ba7f38bee1
2 changed files with 15 additions and 13 deletions
|
|
@ -6,6 +6,7 @@
|
|||
import Document from '../icons/Document.svelte';
|
||||
import Download from '../icons/Download.svelte';
|
||||
import { sticky } from 'tippy.js';
|
||||
import Logout from '../icons/Logout.svelte';
|
||||
|
||||
export let showDetails: boolean;
|
||||
|
||||
|
|
@ -50,19 +51,7 @@
|
|||
delay: 0
|
||||
}}
|
||||
>
|
||||
<svg
|
||||
class="icon"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
><path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
||||
/></svg
|
||||
>
|
||||
<Logout />
|
||||
</span>
|
||||
{:else}
|
||||
<span
|
||||
|
|
|
|||
13
frontend/src/lib/components/icons/Logout.svelte
Normal file
13
frontend/src/lib/components/icons/Logout.svelte
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<svg
|
||||
class="h-10 w-10"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
><path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"
|
||||
/></svg
|
||||
>
|
||||
|
After Width: | Height: | Size: 302 B |
Loading…
Reference in a new issue