Skip to content

Commit 904f2e5

Browse files
committed
Add a button to add events to the UI
1 parent 92a9eb7 commit 904f2e5

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

src/app/(main)/community/events/page.tsx

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Breadcrumbs } from "@/_design-system/breadcrumbs"
22
import { meetups } from "@/components/meetups"
3+
import { Button } from "@/app/conf/_design-system/button"
34

45
import { MeetupsMap } from "./meetups-map"
56
import { EventsList } from "./events-list"
@@ -9,6 +10,10 @@ import { GetYourMeetupNoticedSection } from "./get-your-meetup-noticed-section"
910
import { BringGraphQLToYourCommunity } from "./bring-graphql-to-your-community"
1011
import dynamic from "next/dynamic"
1112

13+
// TODO: The issue template should probably live in https://github.com/graphql/community-wg
14+
const ISSUE_TEMPLATE_LINK =
15+
"https://github.com/graphql/graphql.github.io/issues/new?assignees=&labels=event&template=event-submission.yml"
16+
1217
const GalleryStrip = dynamic(
1318
() =>
1419
import("@/app/conf/2025/components/gallery-strip").then(
@@ -75,10 +80,20 @@ export default function EventsPage() {
7580

7681
{upcomingEvents.length > 0 && (
7782
<section className="gql-section">
78-
<h2 className="typography-h2">Upcoming events</h2>
79-
<p className="typography-body-md my-6 lg:mb-12">
80-
See what’s coming up across the GraphQL ecosystem.
81-
</p>
83+
<header className="mb-6 flex w-full gap-4 max-md:flex-col lg:mb-12 lg:gap-6">
84+
<div className="flex-1">
85+
<h2 className="typography-h2">Upcoming events</h2>
86+
<p className="typography-body-md col-start-1 mt-4 lg:mt-6">
87+
See what’s coming up across the GraphQL ecosystem.
88+
</p>
89+
</div>
90+
<Button
91+
className="w-fit self-end lg:row-span-2"
92+
href={ISSUE_TEMPLATE_LINK}
93+
>
94+
Add a new event
95+
</Button>
96+
</header>
8297
<EventsList events={upcomingEvents} />
8398
</section>
8499
)}

0 commit comments

Comments
 (0)