Skip to content

Commit da08805

Browse files
authored
Merge pull request #55 from hasparus/add-an-event
Add an event
2 parents dc996d2 + 3a40b7d commit da08805

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

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

Lines changed: 18 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,9 @@ 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+
const ISSUE_TEMPLATE_LINK =
14+
"https://github.com/graphql/community-wg/issues/new?assignees=&labels=event&template=event-submission.yml"
15+
1216
const GalleryStrip = dynamic(
1317
() =>
1418
import("@/app/conf/2025/components/gallery-strip").then(
@@ -75,10 +79,20 @@ export default function EventsPage() {
7579

7680
{upcomingEvents.length > 0 && (
7781
<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>
82+
<header className="mb-6 flex w-full gap-4 max-md:flex-col lg:mb-12 lg:gap-6">
83+
<div className="flex-1">
84+
<h2 className="typography-h2">Upcoming events</h2>
85+
<p className="typography-body-md col-start-1 mt-4 lg:mt-6">
86+
See what’s coming up across the GraphQL ecosystem.
87+
</p>
88+
</div>
89+
<Button
90+
className="w-fit self-end lg:row-span-2"
91+
href={ISSUE_TEMPLATE_LINK}
92+
>
93+
Add a new event
94+
</Button>
95+
</header>
8296
<EventsList events={upcomingEvents} />
8397
</section>
8498
)}

0 commit comments

Comments
 (0)