mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-17 13:43:29 +09:00
63 lines
1.9 KiB
Plaintext
63 lines
1.9 KiB
Plaintext
---
|
|
import config from "@/config/config.json";
|
|
import Base from "@/layouts/Base.astro";
|
|
import PageHeader from "@/partials/PageHeader.astro";
|
|
import { getEntryBySlug } from "astro:content";
|
|
|
|
const entry = await getEntryBySlug("pages", "contact");
|
|
const { contact_form_action }: {contact_form_action: string} = config.params;
|
|
const { title, description, meta_title, image } = entry.data;
|
|
---
|
|
|
|
<Base
|
|
title={title}
|
|
meta_title={meta_title}
|
|
description={description}
|
|
image={image}
|
|
>
|
|
<PageHeader title={title} />
|
|
<section class="section-sm">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="mx-auto md:col-10 lg:col-6">
|
|
<form action={contact_form_action} method="POST">
|
|
<div class="mb-6">
|
|
<label for="name" class="form-label">
|
|
Full Name <span class="text-red-500">*</span>
|
|
</label>
|
|
<input
|
|
id="name"
|
|
class="form-input"
|
|
placeholder="John Doe"
|
|
type="text"
|
|
/>
|
|
</div>
|
|
<div class="mb-6">
|
|
<label for="mail" class="form-label">
|
|
Working Mail <span class="text-red-500">*</span>
|
|
</label>
|
|
<input
|
|
id="mail"
|
|
class="form-input"
|
|
placeholder="john.doe@email.com"
|
|
type="email"
|
|
/>
|
|
</div>
|
|
<div class="mb-6">
|
|
<label for="message" class="form-label">
|
|
Anything else? <span class="text-red-500">*</span>
|
|
</label>
|
|
<textarea
|
|
class="form-input"
|
|
placeholder="Message goes here..."
|
|
id="message"
|
|
rows="8"></textarea>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</Base>
|