feat: initial commit
This commit is contained in:
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user