Skip to content

Commit 7585c4b

Browse files
committed
fix registration links labels
1 parent f34954d commit 7585c4b

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

src/app/conf/2024/layout.tsx

Lines changed: 10 additions & 8 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,23 @@ 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: "https://cvent.me/gk2dRw" },
48+
{ children: <span>Sponsor</span>, href: "/conf/2024/sponsor" },
49+
{ children: <span>Partner</span>, href: "/conf/2024/partner" },
4950
{
50-
children: "Speakers",
51+
children: <span>Speakers</span>,
5152
href: "/conf/2024/speakers",
5253
"aria-disabled": true,
5354
},
5455
{
55-
children: "Schedule",
56+
children: <span>Schedule</span>,
5657
href: "/conf/2024/schedule",
5758
"aria-disabled": true,
5859
},
59-
{ children: "GraphQLConf 2023", href: "/conf/2023" },
60+
{ children: <span>GraphQLConf 2023</span>, href: "/conf/2023" },
61+
{ children: <Button disabled className='bg-primary hover:bg-primary/40 cursor-pointer'>Registration</Button>, href: "#attend" },
6062
]}
6163
/>
6264
{children}

src/app/conf/2024/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ 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"

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>

0 commit comments

Comments
 (0)