Skip to content

Commit 1e2c430

Browse files
authored
fix navbar links and combine sponsor/partner pages (#1704)
* fix navbar links and combine sponsor/partner pages * Update src/app/conf/2024/layout.tsx
1 parent a1643bb commit 1e2c430

File tree

9 files changed

+37
-62
lines changed

9 files changed

+37
-62
lines changed

src/app/conf/2024/layout.tsx

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Header } from "../_components/header"
44
import { Footer } from "../_components/footer"
55
import { GraphQLConf, HostedByGraphQLFoundation } from "@/icons"
66
import NextLink from "next/link"
7+
import { Button } from "../_components/button"
78

89
export const metadata = {
910
description:
@@ -41,22 +42,15 @@ export default function Layout({
4142
</NextLink>
4243
}
4344
links={[
44-
{ children: "FAQ", href: "/conf/2024/faq" },
45-
{ children: "Speak", href: "/conf/2024/speak" },
46-
{ children: "Register", href: "https://cvent.me/gk2dRw" },
47-
{ children: "Sponsor", href: "/conf/2024/sponsor" },
48-
{ children: "Partner", href: "/conf/2024/partner" },
45+
{ children: <span>FAQ</span>, href: "/conf/2024/faq" },
46+
{ children: <span>Speak</span>, href: "/conf/2024/speak" },
47+
{ children: <span>Register</span>, href: "/conf/2024#attend" },
48+
{ children: <span>Partner</span>, href: "/conf/2024/partner" },
4949
{
50-
children: "Speakers",
51-
href: "/conf/2024/speakers",
52-
"aria-disabled": true,
53-
},
54-
{
55-
children: "Schedule",
50+
children: <span>Schedule</span>,
5651
href: "/conf/2024/schedule",
5752
"aria-disabled": true,
5853
},
59-
{ children: "GraphQLConf 2023", href: "/conf/2023" },
6054
]}
6155
/>
6256
{children}
@@ -74,8 +68,8 @@ export default function Layout({
7468
[
7569
{ children: "Speak", href: "/conf/2024/speak" },
7670
{ children: "Register", href: "https://cvent.me/gk2dRw" },
77-
{ children: "Sponsor", href: "/conf/2024/sponsor" },
78-
{ children: "Partner", href: "/conf/2024/partner" },
71+
{ children: "Sponsor", href: "/conf/2024/partner" },
72+
{ children: "Partner", href: "/conf/2024/partner#program" },
7973
{
8074
children: "Speakers",
8175
href: "/conf/2024/speakers",
@@ -86,6 +80,7 @@ export default function Layout({
8680
href: "/conf/2024/schedule",
8781
"aria-disabled": true,
8882
},
83+
{ children: "GraphQLConf 2023", href: "/conf/2023" },
8984
],
9085
[
9186
{ children: "FAQ", href: "/conf/2024/faq" },

src/app/conf/2024/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,21 @@ export default function Page() {
4646
</div>
4747
<HostedByGraphQLFoundation className="shrink-0 h-8 lg:h-10 mt-5 mb-16 lg:mb-32 self-start" />
4848
<div className="flex items-center gap-12 max-md:flex-col">
49-
<Button href="https://cvent.me/gk2dRw">Register Now!</Button>
49+
<Button href="#attend">Get Your Ticket!</Button>
5050
<a
5151
href="/conf/2024/speak"
5252
className="whitespace-nowrap with-arrow w-40 hover:text-primary transition-colors"
5353
>
5454
Submit to Speak
5555
</a>
5656
<a
57-
href="/conf/2024/sponsor"
57+
href="/conf/2024/sponsor#sponsor"
5858
className="whitespace-nowrap with-arrow w-40 hover:text-primary transition-colors"
5959
>
6060
Join as a Sponsor
6161
</a>
6262
<a
63-
href="/conf/2024/partner"
63+
href="/conf/2024/partner#program"
6464
className="whitespace-nowrap with-arrow w-40 hover:text-primary transition-colors"
6565
>
6666
Join as a Partner

src/app/conf/2024/partner/index.mdx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
import { Button } from "@/app/conf/_components/button"
22

3-
# Partner with GraphQLConf
3+
<h1 id="sponsor">Sponsor GraphQLConf 2024</h1>
4+
5+
<div className="flex flex-row justfiy-center">
6+
<Button target="_blank" href="/conf/sponsor/sponsor_2024.pdf" className="!text-white !block">Sponsorship Details</Button>
7+
<Button href="mailto:[email protected]?subject=Sponsorships" className="!text-white !block ml-3.5">Contact Us</Button>
8+
</div>
9+
Contact us at [email protected] to reserve your sponsorship, ask questions or talk about different options.
10+
11+
GraphQLConf is the official GraphQL conference hosted by the GraphQL Foundation. It is a premier event by the community for the community to promote education, adoption, and advancement of GraphQL.
12+
13+
Help make this event one to remember by becoming a sponsor.
14+
15+
GraphQLConf will attract members of the GraphQL community from around the world. Developers, users, architects, and technology leaders from multiple industries will gather in San Francisco to meet, collaborate and build. GraphQLConf 2024 is the flagship event in the GraphQL Foundation’s official event series.
16+
17+
Investing in GraphQLConf provides the opportunity to build awareness and loyalty with leaders and decision makers in organizations across the GraphQL and open source community.
18+
19+
20+
<h1 id="program">Partner with GraphQLConf</h1>
421

522
We are pleased to offer a Media and Community Partner Program for
623
our upcoming GraphQLConf 2024. Our program is designed to provide

src/app/conf/2024/sponsor/client-mdx.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/app/conf/2024/sponsor/index.mdx

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/app/conf/2024/sponsor/page.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/app/conf/_components/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function Header({
1717
links,
1818
logo,
1919
}: {
20-
links: { href: string; children: string; "aria-disabled"?: true }[]
20+
links: { href: string; children: React.ReactNode; "aria-disabled"?: true }[]
2121
logo: ReactNode
2222
}): ReactElement {
2323
const pathname = usePathname()

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function RootLayout({
2828
children: ReactNode
2929
}): ReactElement {
3030
return (
31-
<html lang="en" className={font.className}>
31+
<html lang="en" className={`scroll-smooth ${font.className}`}>
3232
<head>
3333
<style>{`html { scroll-padding-top: 5rem }`}</style>
3434
</head>

vercel.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"destination": "https://graphql-conf-attendee-nextjs.vercel.app/:path*",
66
"statusCode": 200
77
},
8+
{
9+
"source": "/conf/sponsor",
10+
"destination": "/conf/partner",
11+
"permanent": false
12+
},
813
{
914
"source": "/conf/program",
1015
"destination": "/conf/2023/schedule",

0 commit comments

Comments
 (0)