diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..e43643f --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,11 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) +# and commit this file to your remote git repository to share the goodness with others. + +# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart + +tasks: + - init: npm install && npm run build + command: npm run start + + diff --git a/src/app/Footer.tsx b/src/app/Footer.tsx index 918f8a6..cec6f93 100644 --- a/src/app/Footer.tsx +++ b/src/app/Footer.tsx @@ -1,7 +1,7 @@ import { FaMeetup, FaCode, FaGithub } from "react-icons/fa6"; import Link from "next/link"; -export default function Footer() { +export default function Footer({ ticketsUrl = "" }) { return ( <> diff --git a/src/app/Nav.tsx b/src/app/Nav.tsx index 453f4de..f5da7be 100644 --- a/src/app/Nav.tsx +++ b/src/app/Nav.tsx @@ -10,7 +10,7 @@ import { } from "react-icons/fa6"; import { useState } from "react"; -export default function Nav() { +export default function Nav({ ticketsUrl='' }) { const [menu, setMenu] = useState(false); const [aboutMenu, setAboutMenu] = useState(false); @@ -22,10 +22,6 @@ export default function Nav() { setAboutMenu(!aboutMenu); }; - // having this blank hides the link - const ticketURL = - "https://www.affinna.com/event/f8142beea26e11ee8fae7facffad2127"; - return ( diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index 13809f5..064c22e 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -4,6 +4,7 @@ import { useEffect } from "react"; import "aos/dist/aos.css"; import AOS from "aos"; import Image from "next/image"; +import { formattedDateConferenceDate } from '../layout'; export default function Past() { useEffect(() => { @@ -41,9 +42,9 @@ export default function Past() { Image description @@ -54,7 +55,9 @@ export default function Past() { data-aos-duration="2000" >
- We've packed the agenda with a mix of lightning fast 15 minute talks and in-depth 30 minute sessions that will leave you feeling like a tech pro + We've packed the agenda with a mix of lightning fast 15 minute talks + and in-depth 30 minute sessions that will leave you feeling like a + tech pro
@@ -76,9 +79,9 @@ export default function Past() { Image description @@ -89,7 +92,8 @@ export default function Past() { data-aos-duration="2000" >
- Expect a lively atmosphere, lots of laughs, and plenty of opportunities to connect with fellow tech enthusiasts + Expect a lively atmosphere, lots of laughs, and plenty of + opportunities to connect with fellow tech enthusiasts
@@ -102,9 +106,9 @@ export default function Past() { Image description @@ -115,7 +119,8 @@ export default function Past() { data-aos-duration="2000" >
- Whether you're a tech novice or a seasoned pro, you'll find something to love at our conference + Whether you're a tech novice or a seasoned pro, you'll find + something to love at our conference
@@ -125,7 +130,7 @@ export default function Past() { data-aos-duration="2000" >
- Don't miss out on this wild ride of technology and good vibes! + Don't miss out on this wild ride of technology and good vibes!
@@ -135,7 +140,7 @@ export default function Past() { data-aos-duration="2000" >
- January 25, 2024 + {formattedDateConferenceDate}
diff --git a/src/app/components/Landing.tsx b/src/app/components/Landing.tsx index 20bd3ee..7b1c3d6 100644 --- a/src/app/components/Landing.tsx +++ b/src/app/components/Landing.tsx @@ -6,15 +6,15 @@ import conferenceTalk from "../../../public/images/conferenceTalk.jpg"; type LandingProps = { date: Date; + formattedDateConferenceDate: string; + ticketsUrl: string; }; -export const Landing: React.FC = ({ date }: LandingProps) => { - const formattedDate = date.toLocaleDateString("en-US", { - year: "numeric", - month: "long", - day: "numeric", - }); - +export const Landing: React.FC = ({ + date, + formattedDateConferenceDate, + ticketsUrl, +}: LandingProps) => { return (
= ({ date }: LandingProps) => {
A quarterly tech conference in the bluegrass - {/* {formattedDate} */} - November 7th 2024 + + {formattedDateConferenceDate} +
- {/* - Tickets - */} - - Past Talks + Tickets + )} + + Past Talks +
diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 67fe24e..e987d86 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -15,16 +15,27 @@ const cabin = Cabin({ variable: "--font-cabin", }); -export const metadata = { - title: "LexTalk Tech", - description: "A quarterly tech conference in the bluegrass", -}; +// export const metadata = { +// title: "LexTalk Tech", +// description: "A quarterly tech conference in the bluegrass", +// }; + +// old ticket URL -> "https://www.affinna.com/event/f8142beea26e11ee8fae7facffad2127"; +// if ticketURL is empty string then Ticket's links will not show +export const ticketsUrl = ''; +export const conferenceDate = new Date(2024, 10, 7, 18); +export const formattedDateConferenceDate = conferenceDate.toLocaleDateString("en-US", { + year: "numeric", + month: "long", + day: "numeric", + }); export default function RootLayout({ children, }: { children: React.ReactNode; }) { + const props = {ticketsUrl, conferenceDate, formattedDateConferenceDate} return ( -