diff --git a/frontend/src/components/RSVPForm.tsx b/frontend/src/components/RSVPForm.tsx index 65ba12c..89f346f 100644 --- a/frontend/src/components/RSVPForm.tsx +++ b/frontend/src/components/RSVPForm.tsx @@ -224,47 +224,49 @@ const RSVPForm: React.FC = () => { sx={{ minHeight: '100vh', width: '100%', - backgroundImage: event?.wallpaper ? `url(${event.wallpaper})` : 'url(https://www.rydertech.us/backgrounds/space1.jpg)', - backgroundSize: 'cover', - backgroundPosition: 'center', - backgroundRepeat: 'no-repeat', - backgroundAttachment: 'fixed', position: 'fixed', top: 0, left: 0, right: 0, bottom: 0, + backgroundImage: event?.wallpaper ? `linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(${event.wallpaper})` : 'url(https://www.rydertech.us/backgrounds/space1.jpg)', + backgroundSize: 'cover', + backgroundPosition: 'center', + backgroundRepeat: 'no-repeat', + backgroundAttachment: 'fixed', + backgroundColor: '#000', overflowY: 'auto', - py: 4, }} > - - - - Thank you! - - - Your RSVP has been submitted successfully. - - - - - - - + + + + + Thank you! + + + Your RSVP has been submitted successfully. + + + + + + + + ); } @@ -274,147 +276,149 @@ const RSVPForm: React.FC = () => { sx={{ minHeight: '100vh', width: '100%', - backgroundImage: event?.wallpaper ? `url(${event.wallpaper})` : 'url(https://www.rydertech.us/backgrounds/space1.jpg)', - backgroundSize: 'cover', - backgroundPosition: 'center', - backgroundRepeat: 'no-repeat', - backgroundAttachment: 'fixed', position: 'fixed', top: 0, left: 0, right: 0, bottom: 0, + backgroundImage: event?.wallpaper ? `linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(${event.wallpaper})` : 'url(https://www.rydertech.us/backgrounds/space1.jpg)', + backgroundSize: 'cover', + backgroundPosition: 'center', + backgroundRepeat: 'no-repeat', + backgroundAttachment: 'fixed', + backgroundColor: '#000', overflowY: 'auto', - py: 4, }} > - - - - RSVP Form - - - {error && ( - - {error} + + + + + RSVP Form - )} - - {event?.rsvp_cutoff_date && ( - - Note: RSVPs will close on {new Date(event.rsvp_cutoff_date).toLocaleString()} - - )} - - - - - - Are you attending? - - - - {formData.attending === 'yes' && ( - <> - - Are you bringing any guests? - - - - {formData.bringing_guests === 'yes' && ( - <> - - - - - )} - - {neededItems.length > 0 && ( - - What items are you bringing? - - - )} - + + {error && ( + + {error} + )} - - - - + {event?.rsvp_cutoff_date && ( + + Note: RSVPs will close on {new Date(event.rsvp_cutoff_date).toLocaleString()} + + )} + + + + + + Are you attending? + + + + {formData.attending === 'yes' && ( + <> + + Are you bringing any guests? + + + + {formData.bringing_guests === 'yes' && ( + <> + + + + + )} + + {neededItems.length > 0 && ( + + What items are you bringing? + + + )} + + )} + + + + + + ); };