From 2b309097ca145651618234476160fb30405eabe7 Mon Sep 17 00:00:00 2001
From: Linnnus <linnnus@users.noreply.github.com>
Date: Mon, 17 Feb 2025 20:28:59 +0100
Subject: Initial commit

---
 app/src/routes/login/+page.svelte | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 app/src/routes/login/+page.svelte

(limited to 'app/src/routes/login/+page.svelte')

diff --git a/app/src/routes/login/+page.svelte b/app/src/routes/login/+page.svelte
new file mode 100644
index 0000000..3e3e3c7
--- /dev/null
+++ b/app/src/routes/login/+page.svelte
@@ -0,0 +1,33 @@
+<script lang="ts">
+	import { enhance } from "$app/forms";
+	import type { PageProps } from "./$types";
+	let { data, form }: PageProps = $props();
+</script>
+
+<svelte:head>
+	<title>Log ind</title>
+</svelte:head>
+
+<!-- If login completed successfully and we dont have ?redirectTo -->
+{#if form?.success}
+	<p>Du er nu logget ind!</p>
+{/if}
+
+<form method="POST" use:enhance>
+	{#if form?.failure}<p class="error">{form?.error}</p>{/if}
+	<label>
+		Email
+		<input name="email" type="email" />
+	</label>
+	<label>
+		Kodeord
+		<input name="password" type="password" />
+	</label>
+	<button>Log ind</button>
+</form>
+
+<style>
+	label {
+		display: block;
+	}
+</style>
-- 
cgit v1.2.3

