~starkingdoms/starkingdoms

ref: aa2aadee626d8d90bc9fb67699cda2a588a6a992 starkingdoms/client/src/routes/(menu)/login/+page.svelte -rw-r--r-- 1.0 KiB
aa2aadee — core switch to matricies for sprite positioning 11 months 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
<script lang="ts">
	import * as Card from "$lib/components/ui/card";
	import { Input } from "$lib/components/ui/input";
	import { Label } from "$lib/components/ui/label";
	import { Button } from "$lib/components/ui/button";
	import * as Select from "$lib/components/ui/select";
	import { TriangleAlertIcon } from "lucide-svelte";

</script>

<Card.Root class="space-y-2 p-4">
	<h1 class="font-semibold text-xl text-center">Login</h1>

	<div class="flex w-full max-w-sm flex-col gap-1.5">
		<Label for="username">Username</Label>
		<Input type="text" id="username" placeholder="starkingdoms_player_2122" />
	</div>
	<div class="flex w-full max-w-sm flex-col gap-1.5">
		<Label for="password">Password</Label>
		<Input type="password" id="password" />
	</div>
	<Button class="w-full">Login</Button>
	<p class="text-sm">Don't have an account? <a href="/register" class="text-accent underline underline-offset-4">Register</a></p>
	<p class="text-sm">Just want to play? <a href="/" class="text-accent underline underline-offset-4">Go back</a></p>
</Card.Root>