Skip to content

Commit

Permalink
chore: move git-icon to new file
Browse files Browse the repository at this point in the history
  • Loading branch information
kettei-sproutty committed Jun 14, 2024
1 parent 6aba364 commit 1910e9d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions src/icons/git-icon.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<script lang="ts">
import { cn } from '$lib'
import type { ClassValue } from 'clsx'
type IconProps = {
className?: ClassValue
}
const { className = '' }: IconProps = $props()
</script>

<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class={cn("size-4", className)}
>
<line x1="6" x2="6" y1="3" y2="15"></line>
<circle cx="18" cy="6" r="3"></circle>
<circle cx="6" cy="18" r="3"></circle>
<path d="M18 9a9 9 0 0 1-9 9"></path>
</svg>
3 changes: 2 additions & 1 deletion src/routes/(vimlike)/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import { goto } from '$app/navigation'
import { page } from '$app/stores'
import GitIcon from '$icons/git-icon.svelte'
import LeftIcon from '$icons/left-icon.svelte'
import LogoIcon from '$icons/logo-icon.svelte'
Expand Down Expand Up @@ -60,7 +61,7 @@ const { children } = $props()
{mode}
</div>
<div class="flex items-center space-x-1">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="h-4 w-4"><line x1="6" x2="6" y1="3" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path></svg>
<GitIcon />
<span>main</span>
</div>
</div>
Expand Down

0 comments on commit 1910e9d

Please sign in to comment.