Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
27 changes: 21 additions & 6 deletions app/components/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ type LandingProps = {
time?: string;
ticketsUrl?: string;
speakersUrl?: string;
latestPastSlug?: string;
};

const buttonStyles =
Expand All @@ -17,6 +18,7 @@ export const Landing: React.FC<LandingProps> = ({
time,
ticketsUrl,
speakersUrl,
latestPastSlug,
}: LandingProps) => {

return (
Expand All @@ -38,10 +40,20 @@ export const Landing: React.FC<LandingProps> = ({
</h1>
<div className="flex flex-col text-2xl text-center lg:text-3xl lg:my-8">
<span>A tech conference in the bluegrass</span>
<span className="my-2 font-thin lg:my-4">
{date ? date : "TBD"}
</span>
{time && <span className="mb-4 font-thin">{time}</span>}
{date ? (
<>
<span className="my-2 font-thin lg:my-4">{date}</span>
{time && <span className="mb-4 font-thin">{time}</span>}
</>
) : (
<>
<span className="my-2 font-thin lg:my-4">2027 &middot; Date TBD</span>
<span className="max-w-2xl mb-4 text-xl italic font-thin lg:text-2xl">
We asked an AI to pick the date. It&apos;s still &ldquo;thinking.&rdquo;
Stay tuned &mdash; it&apos;ll be worth the wait.
</span>
</>
)}
</div>
<div className="flex flex-wrap items-center justify-center gap-4">
{ticketsUrl && (
Expand All @@ -55,8 +67,11 @@ export const Landing: React.FC<LandingProps> = ({
</Link>
)}
{!ticketsUrl && !speakersUrl && (
<Link href="/past" className={buttonStyles}>
Past Talks
<Link
href={latestPastSlug ? `/past/${latestPastSlug}` : "/past"}
className={buttonStyles}
>
{latestPastSlug ? "Watch Past Talks" : "Past Talks"}
</Link>
)}
</div>
Expand Down
6 changes: 4 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import joeTalk from "/public/images/joeTalk.jpg";
import AboutSummary from "./components/AboutSummary";
import AddressMap from "./components/AddressMap";
import { Landing } from "./components/Landing";
import { getCurrentEvent, getDateFromFilename } from "./lib/data";
import { getCurrentEvent, getDateFromFilename, getPastEventFilenames } from "./lib/data";
import { formattedDate } from "./lib/FormattedDate";

export default function Home() {
const data = getCurrentEvent();
const date = data ? formattedDate(getDateFromFilename(data.filename)) : "TBD";
const date = data ? formattedDate(getDateFromFilename(data.filename)) : undefined;
const latestPastSlug = getPastEventFilenames().at(-1);

return (
<>
Expand All @@ -19,6 +20,7 @@ export default function Home() {
time={data?.time}
ticketsUrl={data?.ticketLink ?? ""}
speakersUrl={data?.speakerLink ?? ""}
latestPastSlug={latestPastSlug}
/>
{data?.scheduleOverview && data.scheduleOverview.length > 0 && (
<section aria-labelledby="schedule-overview" className="px-4 pt-12 md:pt-16">
Expand Down
19 changes: 16 additions & 3 deletions app/past/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Fragment } from "react";
import { Talk } from "@/components/shared/Talk";
import { getPastEventFilenames, getEventData } from "@/lib/data";
export const dynamic = 'force-static';
Expand Down Expand Up @@ -28,9 +29,21 @@ export default async function Page({ params }: any) {
</span>
</div>

{data.schedule.map((talk: any, index: any) => (
<Talk key={index} talk={talk} />
))}
{data.schedule.map((talk, index) => {
const prev = data.schedule[index - 1];
const newGroup = talk.group && talk.group !== prev?.group;
const sameSlot = !newGroup && prev?.time === talk.time;
return (
<Fragment key={index}>
{newGroup && (
<h2 className="max-w-screen-lg px-4 mx-auto mt-12 text-4xl font-bold text-center font-montserrat">
{talk.group}
</h2>
)}
<Talk talk={talk} hideTime={sameSlot} />
</Fragment>
);
})}
</div>
);
}
14 changes: 11 additions & 3 deletions app/talks/page.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
import { Fragment } from "react";
import Link from "next/link";
import { Talk } from "../components/shared/Talk"
import { getCurrentEvent, getDateFromFilename } from "../lib/data";
import { getCurrentEvent, getDateFromFilename, getPastEventFilenames } from "../lib/data";
import { formattedDate } from "../lib/FormattedDate";

export default async function Talks() {
const data = getCurrentEvent();

if (!data) {
const latestPastSlug = getPastEventFilenames().at(-1);
return (
<div className="text-center my-10">
<h1 className="text-5xl font-bold font-montserrat">No Upcoming Event</h1>
<h1 className="text-5xl font-bold font-montserrat">LexTalk 2027: Coming Soon</h1>
<p className="text-xl mt-4 italic">
The schedule is still compiling. We&apos;d give you an ETA, but you know how estimates go.
</p>
<p className="text-xl mt-4">
Check out our <Link href="/past" className="underline">past talks</Link>.
In the meantime, catch up on our{" "}
<Link href={latestPastSlug ? `/past/${latestPastSlug}` : "/past"} className="underline">
latest talks
</Link>{" "}
or browse <Link href="/past" className="underline">all past events</Link>.
</p>
</div>
);
Expand Down
15 changes: 10 additions & 5 deletions data/events/2026-11-05.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"time": "4:00 PM",
"title": "UX for AI",
"presenter": "Luke Gurgel",
"group": "AI Sessions"
"group": "AI Sessions",
"resources": "https://www.youtube.com/watch?v=bcZcHt5B1zk"
},
{
"time": "4:00 PM",
Expand All @@ -62,14 +63,16 @@
"title": "Tech FOMO",
"presenter": "Tommy Treadway",
"group": "Evening Sessions",
"format": "Lightning"
"format": "Lightning",
"resources": "https://www.youtube.com/watch?v=apa58VHQmpE"
},
{
"time": "6:30 PM",
"title": "Making Art with Code: Processing and the AxiDraw",
"presenter": "Summer Smith",
"group": "Evening Sessions",
"format": "Deep Dive"
"format": "Deep Dive",
"resources": "https://www.youtube.com/watch?v=IqDtnKkPffg"
},
{
"time": "7:00 PM",
Expand All @@ -83,14 +86,16 @@
"title": "Getting AI to Say \"I Don't Know\"",
"presenter": "Ryan Rudd",
"group": "Evening Sessions",
"format": "Deep Dive"
"format": "Deep Dive",
"resources": "https://www.youtube.com/watch?v=PIG8VIxHsBQ"
},
{
"time": "7:45 PM",
"title": "The Joys of Cheap Electronics: Why Adafruit is a Dangerous Site to Browse",
"presenter": "Will Bates",
"group": "Evening Sessions",
"format": "Lightning"
"format": "Lightning",
"resources": "https://www.youtube.com/watch?v=fV-lx1ODhGo"
}
]
}
Loading