Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

feat: events key #2414 #2527

Merged
merged 1 commit into from
Dec 29, 2022
Merged
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
34 changes: 34 additions & 0 deletions pages/events.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Head from "next/head";
import { IconContext } from "react-icons";
import { MdOutlineOnlinePrediction, MdOutlinePeople } from "react-icons/md";

import Event from "../components/Event";
import Alert from "../components/Alert";
Expand Down Expand Up @@ -28,6 +30,38 @@ export default function Events({ events }) {
</Head>
<Page>
<h1 className="text-4xl mb-4 font-bold">Community events</h1>

<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 mb-6">
<div className="relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2">
<div className="flex-shrink-0">
<IconContext.Provider value={{ size: "3em" }}>
<MdOutlinePeople />
</IconContext.Provider>
</div>
<div className="min-w-0 flex-1">
<span className="absolute inset-0" aria-hidden="true" />
<p className="text-sm font-medium text-gray-900">In person</p>
<p className="truncate text-sm text-gray-500">
These are in person events
</p>
</div>
</div>
<div className="relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2">
<div className="flex-shrink-0">
<IconContext.Provider value={{ size: "3em" }}>
<MdOutlineOnlinePrediction />
</IconContext.Provider>
</div>
<div className="min-w-0 flex-1">
<span className="absolute inset-0" aria-hidden="true" />
<p className="text-sm font-medium text-gray-900">Virtual</p>
<p className="truncate text-sm text-gray-500">
These are virtual events held online
</p>
</div>
</div>
</div>

{!events.length && <Alert type="info" message="No events found" />}
<ul role="list" className="divide-y divide-gray-200">
{events.map((event, index) => (
Expand Down