diff --git a/src/app/components/Agenda.tsx b/src/app/components/Agenda.tsx index 99bc594..0fe3cae 100644 --- a/src/app/components/Agenda.tsx +++ b/src/app/components/Agenda.tsx @@ -11,7 +11,7 @@ const AgendaItem = ({ title, date, idx }: AgendaProps) => { return (
{title} @@ -42,7 +42,7 @@ const Agenda = () => {

March 8, 2025

-
+
{
-
-

Festivities

+
+

Festivities

{agendaItems.map((item, idx) => ( diff --git a/src/app/components/BridalParty.tsx b/src/app/components/BridalParty.tsx index 235fc52..4ebdd45 100644 --- a/src/app/components/BridalParty.tsx +++ b/src/app/components/BridalParty.tsx @@ -51,11 +51,11 @@ const peopleMinorGroom = [ const BridalParty = () => { return ( -
-
-

Bridal Party

+
+
+

Bridal Party

-
+
{peopleMain.map((person, idx) => ( { ))}
-
+
{peopleMinorBride.map((person, idx) => ( ))}
~ ~
-
+
{peopleMinorGroom.map((person, idx) => ( ))} diff --git a/src/app/components/BrideAndGroom.tsx b/src/app/components/BrideAndGroom.tsx index b727d6f..d2d13a6 100644 --- a/src/app/components/BrideAndGroom.tsx +++ b/src/app/components/BrideAndGroom.tsx @@ -3,39 +3,39 @@ import groom from "../images/groom.jpg"; import Profile from "./Utils/Profile"; const people = [ - { - pic: bride, - altVal: "bride", - name: "Brittany Morgan McMahon", - role: "Bride", - desc: "Born on August 25th, 1992 in San Diego, CA to James Glenn McMahon and Michelle Ford Toleos.", - }, - { - pic: groom, - altVal: "groom", - name: "Reid Samuel Hewitt", - role: "Groom", - desc: "Born on June 10th 1992 in Sacramento, CA to Robbin Van Herr Waarden Hewitt and Ann Marie Hewitt.", - }, + { + pic: bride, + altVal: "bride", + name: "Brittany Morgan McMahon", + role: "Bride", + desc: "Born on August 25th, 1992 in San Diego, CA to James Glenn McMahon and Michelle Ford Toleos.", + }, + { + pic: groom, + altVal: "groom", + name: "Reid Samuel Hewitt", + role: "Groom", + desc: "Born on June 10th 1992 in Sacramento, CA to Robbin Van Herr Waarden Hewitt and Ann Marie Hewitt.", + }, ]; const BrideAndGroom = () => { - return ( -
-
- {people.map((person, idx) => ( - - ))} -
-
- ); + return ( +
+
+ {people.map((person, idx) => ( + + ))} +
+
+ ); }; export default BrideAndGroom; diff --git a/src/app/components/Countdown.tsx b/src/app/components/Countdown.tsx index 3d2116c..396ad19 100644 --- a/src/app/components/Countdown.tsx +++ b/src/app/components/Countdown.tsx @@ -4,79 +4,76 @@ const EVENT_DATE = "March 8, 2025 15:00:00"; const COUNTDOWN_DATE = new Date(EVENT_DATE).getTime(); interface COUNTDOWNTYPE { - days: number; - hours: number; - minutes: number; - seconds: number; + days: number; + hours: number; + minutes: number; + seconds: number; } const countdownBase: COUNTDOWNTYPE = { - days: 0, - hours: 0, - minutes: 0, - seconds: 0, + days: 0, + hours: 0, + minutes: 0, + seconds: 0, }; const Countdown = memo(() => { - const [countdown, setCountdown] = useState(countdownBase); - - useEffect(() => { - const interval = setInterval(() => { - const now = new Date().getTime(); - - const delta = COUNTDOWN_DATE - now; - - const days = Math.floor(delta / (1000 * 60 * 60 * 24)); - const hours = Math.floor( - (delta % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60) - ); - const minutes = Math.floor( - (delta % (1000 * 60 * 60)) / (1000 * 60) - ); - const seconds = Math.floor((delta % (1000 * 60)) / 1000); - - setCountdown({ days, hours, minutes, seconds }); - - if (delta < 0) { - clearInterval(interval); - setCountdown(countdownBase); - } - }, 1000); - }, []); - - return ( -
-
-

See you there in...

-
- -
- - - - -
-
- ); + const [countdown, setCountdown] = useState(countdownBase); + + useEffect(() => { + const interval = setInterval(() => { + const now = new Date().getTime(); + + const delta = COUNTDOWN_DATE - now; + + const days = Math.floor(delta / (1000 * 60 * 60 * 24)); + const hours = Math.floor( + (delta % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60) + ); + const minutes = Math.floor((delta % (1000 * 60 * 60)) / (1000 * 60)); + const seconds = Math.floor((delta % (1000 * 60)) / 1000); + + setCountdown({ days, hours, minutes, seconds }); + + if (delta < 0) { + clearInterval(interval); + setCountdown(countdownBase); + } + }, 1000); + }, []); + + return ( +
+
+

See you there in...

+
+ +
+ + + + +
+
+ ); }); Countdown.displayName = "Countdown"; interface NumberCardProps { - number: number; - label: string; + number: number; + label: string; } const NumberCard = memo(({ number, label }: NumberCardProps) => { - const numberString = - number < 100 ? ("0" + number).slice(-2) : String(number); - - return ( -
-
{numberString}
-
{label}
-
- ); + const numberString = number < 100 ? ("0" + number).slice(-2) : String(number); + + return ( +
+
{numberString}
+
{label}
+
+ ); }); NumberCard.displayName = "NumberCard"; diff --git a/src/app/components/Credit.tsx b/src/app/components/Credit.tsx index bac7f62..f67c39f 100644 --- a/src/app/components/Credit.tsx +++ b/src/app/components/Credit.tsx @@ -1,19 +1,19 @@ const Credit = () => { - const thisYear = new Date().getFullYear(); - return ( -
- © {thisYear} forked from - - {" "} - Fauzi - -
- ); + const thisYear = new Date().getFullYear(); + return ( +
+ © {thisYear} forked from + + {" "} + Fauzi + +
+ ); }; export default Credit; diff --git a/src/app/components/GalleryCarousel.tsx b/src/app/components/GalleryCarousel.tsx index 292089f..fed3bf7 100644 --- a/src/app/components/GalleryCarousel.tsx +++ b/src/app/components/GalleryCarousel.tsx @@ -28,8 +28,8 @@ const photos = [ const GalleryCarousel = () => { return ( -