feat: initial commit

This commit is contained in:
2026-09-15 00:11:59 +02:00
commit f6ba8f46d6
19 changed files with 4326 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
---
import Counter from "../islands/Counter.vue";
import Layout from "../layouts/layout.astro";
---
<Layout>
<h1 class="text-2xl font-bold">Home</h1>
<Counter client:load />
</Layout>
+23
View File
@@ -0,0 +1,23 @@
---
import Layout from "../layouts/layout.astro";
import LoginForm from "../islands/LoginForm.vue";
let email = "";
let error = "";
if (Astro.request.method === "POST") {
const formData = await Astro.request.formData();
email = formData.get("email")?.toString() ?? "";
if (!email) {
error = "E-Mail shouldn't be empty.";
}
}
---
<Layout>
<h1 class="text-2xl font-bold">Sign in</h1>
<LoginForm client:load email={email} />
</Layout>