From aa8854adcb9449d2a961c5e4314a223f6e7bcc04 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Tue, 13 Feb 2024 20:38:17 -0600 Subject: Initial commit --- src/components/Bar.tsx | 39 ++++++++++++++++ src/components/Registry.tsx | 14 ++++++ src/components/Rsvp.tsx | 106 ++++++++++++++++++++++++++++++++++++++++++++ src/components/Schedule.tsx | 38 ++++++++++++++++ 4 files changed, 197 insertions(+) create mode 100644 src/components/Bar.tsx create mode 100644 src/components/Registry.tsx create mode 100644 src/components/Rsvp.tsx create mode 100644 src/components/Schedule.tsx (limited to 'src/components') diff --git a/src/components/Bar.tsx b/src/components/Bar.tsx new file mode 100644 index 0000000..ce3db43 --- /dev/null +++ b/src/components/Bar.tsx @@ -0,0 +1,39 @@ +import { Link } from 'react-router-dom'; +import AppBar from '@mui/material/AppBar'; +import Box from '@mui/material/Box'; +import Button from '@mui/material/Button'; +import Toolbar from '@mui/material/Toolbar'; +import Typography from '@mui/material/Typography'; + +function Bar() { + const pages = [ + { name: 'Schedule', to: '/schedule'}, + { name: 'RSVP', to: '/rsvp' }, + { name: 'Registry', to: '/registry' } + ]; + + return ( + + + + Wedding + + + {pages.map((page) => ( + + ))} + + + + ); +} + +export default Bar; diff --git a/src/components/Registry.tsx b/src/components/Registry.tsx new file mode 100644 index 0000000..b07d680 --- /dev/null +++ b/src/components/Registry.tsx @@ -0,0 +1,14 @@ +import Paper from '@mui/material/Paper'; +import Typography from '@mui/material/Typography'; + +function Registry() { + return ( + + + Registry + + + ); +} + +export default Registry; diff --git a/src/components/Rsvp.tsx b/src/components/Rsvp.tsx new file mode 100644 index 0000000..881bf09 --- /dev/null +++ b/src/components/Rsvp.tsx @@ -0,0 +1,106 @@ +import { useState } from 'react'; +import Button from '@mui/material/Button'; +import Paper from '@mui/material/Paper'; +import Grid from '@mui/material/Grid'; +import TextField from '@mui/material/TextField'; +import Typography from '@mui/material/Typography'; +import Radio from '@mui/material/Radio'; +import RadioGroup from '@mui/material/RadioGroup'; +import FormControlLabel from '@mui/material/FormControlLabel'; +import FormControl from '@mui/material/FormControl'; +import FormLabel from '@mui/material/FormLabel'; + +function Rsvp() { + const [guestList, setGuestList] = useState([]); + + const onAddBtnClick = event => { + setGuestList(guestList.concat( + + + + + + + Meal Preference + + } + label="Beef" + /> + } + label="Chicken" + /> + } + label="Fish" + /> + } + label="Vegetarian" + /> + + + + + )); + } + + return ( + + + + Date: April 14, 2025 + + + Location: + + + RSVP Deadline: + + + + + + + Are you attending? + + } label="Yes" /> + } label="No" /> + + + + + + + {guestList} + + + + + + + + + + + + ); +} + +export default Rsvp; diff --git a/src/components/Schedule.tsx b/src/components/Schedule.tsx new file mode 100644 index 0000000..2fd0ab0 --- /dev/null +++ b/src/components/Schedule.tsx @@ -0,0 +1,38 @@ +import Typography from '@mui/material/Typography'; +import Timeline from '@mui/lab/Timeline'; +import TimelineItem from '@mui/lab/TimelineItem'; +import TimelineSeparator from '@mui/lab/TimelineSeparator'; +import TimelineConnector from '@mui/lab/TimelineConnector'; +import TimelineContent from '@mui/lab/TimelineContent'; +import TimelineDot from '@mui/lab/TimelineDot'; +import TimelineOppositeContent, { + timelineOppositeContentClasses, +} from '@mui/lab/TimelineOppositeContent'; + +function Schedule() { + return ( + + + + 4:00 pm + + + + + + Ceremony + + + + 5:00 pm + + + + + Reception + + + ); +} + +export default Schedule; -- cgit v1.2.3