@@ -77,10 +77,9 @@ export default function Home({
7777
7878
7979 {/* Brief explanatory paragraph */}
80− <Section narrow className="pb-1">
80+ <Section>
8181
8282 <div className="w-full space-y-8 max-w-prose">
83−
8483 <div className="space-y-4">
8584 <p className="">
8685 <span className="font-bold">The internet cannot be saved. </span>
@@ -110,53 +109,12 @@ export default function Home({
110109 <a href="#events"> cheebo </a>
111110 */}
112111
113−
114− <Section narrow className="pb-12">
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">
117− <div className="cursor-pointer bg-wall-100 rounded-xl min-h-0 flex-1">
118− <div className="flex flex-col p-4 h-full relative">
119− <div className="w-64 md:w-full rounded-xl object-cover overflow-hidden basis-3/5">
120− <img className="h-full w-64 md:w-full object-cover" src="https://pbs.twimg.com/media/FTcmjJWWQAAiSkI?format=jpg&name=900x900" />
121− </div>
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>
126− </div>
127− </div>
128− </div>
129− </Link>
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" />
135− </div>
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>
140− </div>
141− </div>
142− </div>
143− </Link>
144−
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" />
150− </div>
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>
155− </div>
156− </div>
157− </div>
158− </Link>
159− </div>
112+ <Section className="pb-1">
113+ <Link href="https://airtable.com/shrmfUVpMskWw145u" passHref>
114+ <a className="button-lg bg-green-400 text-white type-ui max-w-fit">
115+ Get on Urbit
116+ </a>
117+ </Link>
160118 </Section>
161119
162120
@@ -166,8 +124,7 @@ export default function Home({
166124 //funnel, repurposed from /overview page:
167125 }
168126
169− <Section>
170− <h3 className="mb-8" id="reading">Want to learn more but aren’t sure where to look? Start here.</h3>
127+ <Section>
171128 <hr></hr>
172129 <br></br>
173130 <br></br>
@@ -189,14 +146,18 @@ export default function Home({
189146 }
190147
191148 <Section className="pb-1">
192− <hr></hr>
149+
193150 <br></br>
194151 <div className="mt-6">
195152 <h2 className="mb-8" id="events">Events</h2>
196− <TwoUp>
197− <EventPreview event={events[0]} className="mb-8" />
198− {events[1] ? <EventPreview event={events[1]} className="mb-8" /> : <div />}
199− </TwoUp>
153+ {events.length > 0 ? (
154+ <TwoUp>
155+ <EventPreview event={events[0]} className="mb-8" />
156+ {events[1] ? <EventPreview event={events[1]} className="mb-8" /> : <div />}
157+ </TwoUp>
158+ ) : (
159+ <p>No events yet — check back later.</p>
160+ )}
200161 <Link href="/events?tag=campus">
201162 <a className="bg-wall-600 text-white button-lg w-fit">
202163 View All
@@ -339,7 +300,8 @@ export async function getStaticProps({ params }) {
339300 "weight"
340301 ) || null;
341302
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")) || [];
343305
344306 return { props: { posts, data, markdown, params, previousPost, nextPost, events } };
345307}