Skip to content

Commit fa191d4

Browse files
committed
Update hero title, add Utilities and Documentation to navbar, fix siteConfig name
- Hero title: The Developer Toolkit for Polkadot - Navbar: add Utilities and Documentation links (desktop + mobile) - Fix siteConfig.name to short Relaycode for navbar display - Move full SEO title to constructMetadata default
1 parent ca6bb2b commit fa191d4

4 files changed

Lines changed: 35 additions & 3 deletions

File tree

components/layout/main-nav.tsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,24 @@ export function MainNav({ items, children }: MainNavProps) {
5858
>
5959
Studio
6060
</Link>
61+
<Link
62+
href="/tools"
63+
className={cn(
64+
"flex items-center font-heading text-xl font-semibold transition-colors hover:text-foreground/80 sm:text-sm",
65+
pathname?.startsWith("/tools") ? "text-foreground" : "text-foreground/60"
66+
)}
67+
>
68+
Utilities
69+
</Link>
70+
<Link
71+
href="/docs"
72+
className={cn(
73+
"flex items-center font-heading text-xl font-semibold transition-colors hover:text-foreground/80 sm:text-sm",
74+
pathname?.startsWith("/docs") ? "text-foreground" : "text-foreground/60"
75+
)}
76+
>
77+
Documentation
78+
</Link>
6179
{items?.map((item, index) => (
6280
<Link
6381
key={index}
@@ -109,6 +127,20 @@ export function MainNav({ items, children }: MainNavProps) {
109127
>
110128
Studio
111129
</Link>
130+
<Link
131+
href="/tools"
132+
onClick={() => setOpen(false)}
133+
className="flex w-full items-center rounded-md px-3 py-2 text-sm font-medium hover:bg-accent"
134+
>
135+
Utilities
136+
</Link>
137+
<Link
138+
href="/docs"
139+
onClick={() => setOpen(false)}
140+
className="flex w-full items-center rounded-md px-3 py-2 text-sm font-medium hover:bg-accent"
141+
>
142+
Documentation
143+
</Link>
112144
{(items ?? []).map((item, index) => (
113145
<Link
114146
key={index}

components/sections/hero-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function HeroSection() {
3838

3939
{/* Main content */}
4040
<h1 className="text-4xl font-semibold tracking-tight font-heading sm:text-6xl bg-clip-text text-transparent bg-gradient-to-r from-[#FF2670] to-[#7916F3] pb-4">
41-
<Balancer>Polkadot Extrinsics, Simplified</Balancer>
41+
<Balancer>The Developer Toolkit for Polkadot</Balancer>
4242
</h1>
4343
<p className="mt-4 text-md sm:text-lg leading-8 text-muted-foreground max-w-2xl">
4444
<Balancer>

config/site.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { env } from "@/env.mjs";
44
const site_url = env.NEXT_PUBLIC_APP_URL;
55

66
export const siteConfig: SiteConfig = {
7-
name: "Relaycode — The Developer Toolkit for Polkadot",
7+
name: "Relaycode",
88
description:
99
"Build extrinsics, write smart contracts, and interact with Substrate chains. Browser-based tools for the Polkadot ecosystem.",
1010
url: site_url,

lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function cn(...inputs: ClassValue[]) {
1010
}
1111

1212
export function constructMetadata({
13-
title = siteConfig.name,
13+
title = "Relaycode - The Developer Toolkit for Polkadot",
1414
description = siteConfig.description,
1515
image = siteConfig.ogImage,
1616
icons = "/favicon.ico",

0 commit comments

Comments
 (0)