@@ -77,10 +77,9 @@ export default function Home({
79 {/* Brief explanatory paragraph */}
79 {/* Brief explanatory paragraph */}
80− <Section narrow className="pb-1">
80+ <Section>
82 <div className="w-full space-y-8 max-w-prose">
82 <div className="w-full space-y-8 max-w-prose">
84 <div className="space-y-4">
83 <div className="space-y-4">
85 <p className="">
84 <p className="">
86 <span className="font-bold">The internet cannot be saved. </span>
85 <span className="font-bold">The internet cannot be saved. </span>
@@ -110,53 +109,12 @@ export default function Home({
110 <a href="#events"> cheebo </a>
109 <a href="#events"> cheebo </a>
114− <Section narrow className="pb-12">
112+ <Section className="pb-1">
115− <div className="flex flex-col space-y-4 md:space-y-0 md:flex-row md:space-x-4">
116− <Link href="https://airtable.com/shrmfUVpMskWw145u">
113+ <Link href="https://airtable.com/shrmfUVpMskWw145u" passHref>
117− <div className="cursor-pointer bg-wall-100 rounded-xl min-h-0 flex-1">
114+ <a className="button-lg bg-green-400 text-white type-ui max-w-fit">
118− <div className="flex flex-col p-4 h-full relative">
115+ Get on Urbit
119− <div className="w-64 md:w-full rounded-xl object-cover overflow-hidden basis-3/5">
116+ </a>
120− <img className="h-full w-64 md:w-full object-cover" src="https://pbs.twimg.com/media/FTcmjJWWQAAiSkI?format=jpg&name=900x900" />
122− <div className="rounded-xl w-full"/>
123− <div className="pt-4">
124− <p className="mb-2 font-semibold leading-5">Get on Urbit</p>
125− <p className="text-sm leading-5">Start exploring the OS and network for the 21st century</p>
130− <Link href="https://developers.urbit.org/courses">
131− <div className="cursor-pointer bg-wall-100 rounded-xl min-h-0 flex-1">
132− <div className="flex flex-col p-4 h-full relative">
133− <div className="w-64 md:w-full rounded-xl object-cover overflow-hidden basis-3/5">
134− <img className="h-full w-64 md:w-full object-cover" src="https://pbs.twimg.com/media/FTcmjJWWQAAiSkI?format=jpg&name=900x900" />
136− <div className="rounded-xl w-full"/>
137− <div className="pt-4">
138− <p className="mb-2 font-semibold leading-5">Learn the Stack</p>
139− <p className="text-sm leading-5">Sign up for one of the Foundation's free courses in Urbit development</p>
145− <Link href="#events">
146− <div className="cursor-pointer bg-wall-100 rounded-xl min-h-0 flex-1">
147− <div className="flex flex-col p-4 h-full relative">
148− <div className="w-64 md:w-full rounded-xl object-cover overflow-hidden basis-3/5">
149− <img className="h-full w-64 md:w-full object-cover" src="https://pbs.twimg.com/media/FTcmjJWWQAAiSkI?format=jpg&name=900x900" />
151− <div className="rounded-xl w-full"/>
152− <div className="pt-4">
153− <p className="mb-2 font-semibold leading-5">Events</p>
154− <p className="text-sm leading-5">Find upcoming events and schedule one at your campus</p>
160 </Section>
118 </Section>
@@ -166,8 +124,7 @@ export default function Home({
166 //funnel, repurposed from /overview page:
124 //funnel, repurposed from /overview page:
169− <Section>
127+ <Section>
170− <h3 className="mb-8" id="reading">Want to learn more but aren’t sure where to look? Start here.</h3>
171 <hr></hr>
128 <hr></hr>
172 <br></br>
129 <br></br>
173 <br></br>
130 <br></br>
@@ -189,14 +146,18 @@ export default function Home({
191 <Section className="pb-1">
148 <Section className="pb-1">
193 <br></br>
150 <br></br>
194 <div className="mt-6">
151 <div className="mt-6">
195 <h2 className="mb-8" id="events">Events</h2>
152 <h2 className="mb-8" id="events">Events</h2>
153+ {events.length > 0 ? (
197− <EventPreview event={events[0]} className="mb-8" />
155+ <EventPreview event={events[0]} className="mb-8" />
198− {events[1] ? <EventPreview event={events[1]} className="mb-8" /> : <div />}
156+ {events[1] ? <EventPreview event={events[1]} className="mb-8" /> : <div />}
199− </TwoUp>
157+ </TwoUp>
159+ <p>No events yet — check back later.</p>
200 <Link href="/events?tag=campus">
161 <Link href="/events?tag=campus">
201 <a className="bg-wall-600 text-white button-lg w-fit">
162 <a className="bg-wall-600 text-white button-lg w-fit">
@@ -339,7 +300,8 @@ export async function getStaticProps({ params }) {
340 ) || null;
301 ) || null;
342− const events = getAllEvents(eventKeys, "events").filter((e) => e?.tags?.includes("campus"));
303+ const allEvents = getAllEvents(eventKeys, "events");
304+ const events = allEvents.filter((e) => e?.tags?.includes("campus")) || [];
344 return { props: { posts, data, markdown, params, previousPost, nextPost, events } };
306 return { props: { posts, data, markdown, params, previousPost, nextPost, events } };