Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve contact form layout #221

Merged
merged 2 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/metal-moose-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"homepage": patch
---

improve contact form layout
10 changes: 8 additions & 2 deletions src/components/Contact/ContactForm.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import FormFields from "./FormFields.astro";
id="contact-form"
transition:name="contact-form"
method="POST"
class="mx-auto w-full space-y-12 rounded-xl border bg-background p-12 md:w-[600px] lg:max-w-screen-lg"
class="mx-auto flex w-full flex-col gap-10 rounded-xl border bg-background p-6 md:w-[600px] lg:max-w-screen-lg lg:p-12"
>
<input {...getActionProps(actions.contact)} />
<H1 title="Send Me a Message" />
Expand All @@ -21,7 +21,13 @@ import FormFields from "./FormFields.astro";

<FormFields />

<AppLink id="submit-message" as="button" type="submit" disabled>
<AppLink
id="submit-message"
as="button"
type="submit"
disabled
class="self-start"
>
Send <PaperPlane />
</AppLink>
</form>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/contact.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const prerender = false;

<Layout title="Contact Me">
<section
class="flex min-h-screen-less-header w-full flex-col justify-center p-1"
class="flex min-h-screen-less-header w-full flex-col justify-center p-3"
>
<ContactForm />
</section>
Expand Down
Loading