~james/core

core/web/src/lib/components/ui/SignupPrompt.svelte -rw-r--r-- 601 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
<script lang="ts">
	import { resolve } from "$app/paths";
	import Button from "#lib/components/ui/Button.svelte";
	import Link from "#lib/components/ui/Link.svelte";

	interface Props {
		message?: string;
	}

	let { message = "to add to the discussion." }: Props = $props();
</script>

<div
	class="flex flex-wrap items-center gap-xs rounded-md bg-background-info-subtle p-md edge-ring ring-background-info-subtle-hover"
>
	<Button variant="primary" href={resolve("/signup")}>Sign up</Button>
	<span>
		or
		<Link href={resolve("/login")} class="underline">Sign in</Link>
		{message}
	</span>
</div>