From 9a3c5e1781de7f05e3d54fb68d71e58b215709e0 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Fri, 2 Aug 2024 14:42:14 -0700 Subject: Update spacing --- client/src/components/GuestLogin.tsx | 66 ++++---- client/src/components/RsvpForm.tsx | 297 ++++++++++++++++++----------------- client/src/components/Schedule.tsx | 120 +++++++------- 3 files changed, 247 insertions(+), 236 deletions(-) diff --git a/client/src/components/GuestLogin.tsx b/client/src/components/GuestLogin.tsx index 16b4478..c5eae75 100644 --- a/client/src/components/GuestLogin.tsx +++ b/client/src/components/GuestLogin.tsx @@ -46,40 +46,46 @@ function GuestLogin() { >
- Guest Login - - - +
+ Guest Login + + + +
); diff --git a/client/src/components/RsvpForm.tsx b/client/src/components/RsvpForm.tsx index 708a1fb..7c1f7b5 100644 --- a/client/src/components/RsvpForm.tsx +++ b/client/src/components/RsvpForm.tsx @@ -111,149 +111,160 @@ function RsvpForm() { noValidate onSubmit={handleSubmit(onSubmit)} > - - -

- Please RSVP for the wedding by March 10, 2025. The ceremony will - commence at 3 PM on April 26 in Divine Shepherd. The reception will - follow at 5 PM in A Venue on the Ridge. -

-
- -
- -
- - Attendance - - ( - - } - label="Accept" - /> - } - label="Decline" - /> - - )} - /> -
-
-
-
- - value.trim(), - required: 'This field is required', - pattern: { - value: /\S+@\S+\.\S+/, - message: 'Please enter a valid email address', - }, - })} - /> - - - { - event.currentTarget.blur(); - }} - error={!!errors.partySize} - helperText={errors.partySize?.message} - required - {...register('partySize', { - valueAsNumber: true, - onChange: handleParty, - required: 'This field is required', - min: { value: 1, message: 'Please enter a positive integer' }, - max: { - value: 9, - message: 'Please enter an integer less than 10', - }, - })} - /> - - - - - {fields.map((field, index) => { - return ( - - - value.trim(), - required: 'This field is required', - })} - /> - - - value.trim(), - required: 'This field is required', - })} - /> +
+ + +

+ Please RSVP for the wedding by March 10, 2025. The ceremony will + commence at 3 PM on April 26 in Divine Shepherd. The reception + will follow at 5 PM in A Venue on the Ridge. +

+
+ +
+ +
+ + Attendance + + ( + + } + label="Accept" + /> + } + label="Decline" + /> + + )} + /> +
+
+
+
+ + value.trim(), + required: 'This field is required', + pattern: { + value: /\S+@\S+\.\S+/, + message: 'Please enter a valid email address', + }, + })} + /> + + + { + event.currentTarget.blur(); + }} + error={!!errors.partySize} + helperText={errors.partySize?.message} + required + {...register('partySize', { + valueAsNumber: true, + onChange: handleParty, + required: 'This field is required', + min: { value: 1, message: 'Please enter a positive integer' }, + max: { + value: 9, + message: 'Please enter an integer less than 10', + }, + })} + /> + + + + + {fields.map((field, index) => { + return ( + + + value.trim(), + required: 'This field is required', + })} + /> + + + value.trim(), + required: 'This field is required', + })} + /> + -
- ); - })} - -
- -
+ ); + })} + +
+ +
+
setOpen(false)} @@ -264,7 +275,7 @@ function RsvpForm() {
-
+ ); } diff --git a/client/src/components/Schedule.tsx b/client/src/components/Schedule.tsx index cc6e8bd..554674b 100644 --- a/client/src/components/Schedule.tsx +++ b/client/src/components/Schedule.tsx @@ -2,19 +2,6 @@ import React from 'react'; import { Paper, Typography, useTheme } from '@mui/material'; import divineShepherd from '/divine-shepherd.jpg'; -const FlexBox = (props: any) => { - return ( -
- {props.children} -
- ); -}; - function Schedule() { const theme = useTheme(); return ( @@ -28,61 +15,68 @@ function Schedule() { backgroundSize: 'cover', }} > - - -
-

April 26, 2025

-
-
- Wedding Schedule -
-
-
- -
-

3:00 PM

-
-
- Ceremony -

- Divine Shepherd -
- - 15005 Q St, Omaha, NE 68137 - -

+ +
+
+

April 26, 2025

+
+
+ Wedding Schedule +
- -
- -
-

5:00 PM

+
+
+
+

3:00 PM

+
+
+ Ceremony +

+ Divine Shepherd +
+ + 15005 Q St, Omaha, NE 68137 + +

+
-
- Reception -

- A Venue on the Ridge -
- - 20033 Elkhorn Ridge Dr, Elkhorn, NE 68022 - -

+
+
+
+

5:00 PM

+
+
+ Reception +

+ A Venue on the Ridge +
+ + 20033 Elkhorn Ridge Dr, Elkhorn, NE 68022 + +

+
- - + +
); } -- cgit v1.2.3