~james/core

core/web/src/lib/components/ui/Logo.svelte -rw-r--r-- 789 bytes
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 15 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<script lang="ts">
	import { cn } from "tailwind-variants";
	import { DOLLY, WORDMARK } from "#lib/components/ui/logotype.ts";

	interface Props {
		wordmark?: boolean;
		class?: string;
	}

	let { wordmark = false, class: className = "" }: Props = $props();
</script>

{#if wordmark}
	<svg
		class={cn("h-8", className)}
		viewBox="0 0 117 32"
		fill="currentColor"
		xmlns="http://www.w3.org/2000/svg"
		role="img"
		aria-label="tangled"
	>
		{#each WORDMARK as d (d)}
			<path {d} fill-rule="evenodd" />
		{/each}
		<path d={DOLLY} fill-rule="evenodd" />
	</svg>
{:else}
	<svg
		class={cn("size-8", className)}
		viewBox="0 0 32 32"
		fill="currentColor"
		xmlns="http://www.w3.org/2000/svg"
		role="img"
		aria-label="tangled"
	>
		<path d={DOLLY} fill-rule="evenodd" />
	</svg>
{/if}