From 7aff496314f2adaea548fd7ab832865a0fd1c9b7 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Mon, 24 Feb 2025 21:20:43 -0600 Subject: [PATCH] Small UI changes --- src/components/Navigation.astro | 22 ++++++ src/components/RSVP.tsx | 23 +++++++ src/components/RSVPManager.tsx | 71 +++++++++++++++++++ src/components/SignOut.astro | 9 +++ src/layouts/AdminLayout.astro | 2 + src/layouts/Layout.astro | 13 ++-- src/lib/types.ts | 1 + src/pages/api/rsvp.ts | 48 ++++++++++++- src/pages/faq.astro | 118 ++++++++++++++++++++++++++++++++ src/pages/index.astro | 61 +++++++++++++++-- src/pages/registry/admin.astro | 3 +- src/pages/registry/index.astro | 3 +- src/pages/rsvp.astro | 3 +- src/pages/rsvp/admin.astro | 54 +++++++++++++++ 14 files changed, 412 insertions(+), 19 deletions(-) create mode 100644 src/components/Navigation.astro create mode 100644 src/components/RSVPManager.tsx create mode 100644 src/components/SignOut.astro create mode 100644 src/pages/faq.astro create mode 100644 src/pages/rsvp/admin.astro diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro new file mode 100644 index 0000000..31b3439 --- /dev/null +++ b/src/components/Navigation.astro @@ -0,0 +1,22 @@ +--- +import SignOut from "./SignOut.astro"; +--- + +
+ +
\ No newline at end of file diff --git a/src/components/RSVP.tsx b/src/components/RSVP.tsx index 574d37f..9aba9a4 100644 --- a/src/components/RSVP.tsx +++ b/src/components/RSVP.tsx @@ -4,6 +4,7 @@ import "../styles/global.css"; interface FormData { name: string; dietaryRestrictions: string; + notes: string; } interface ApiResponse { @@ -15,6 +16,7 @@ const RSVPForm = () => { const [formData, setFormData] = useState({ name: "", dietaryRestrictions: "", + notes: "", }); const [isSubmitting, setIsSubmitting] = useState(false); const [error, setError] = useState(null); @@ -61,6 +63,7 @@ const RSVPForm = () => { setFormData({ name: "", dietaryRestrictions: "", + notes: "", }); setSuccess(true); } catch (err: any) { @@ -163,6 +166,26 @@ const RSVPForm = () => { /> + {/* Notes Input */} +
+ +