Skip to content

Commit 6de3dd3

Browse files
mostlyerrorclaude
andcommitted
Site cleanup: env var for API key, accessibility, metadata, remove dead code
- Move Web3Forms API key from hardcoded to NEXT_PUBLIC_WEB3FORMS_KEY env var - Add skip-to-main-content link for keyboard navigation - Add global cursor:pointer rule for all interactive elements - Add Twitter card metadata to FAQ page - Fix duplicate Organization JSON-LD (was in both root and main layouts) - Type RichText content prop with PortableTextBlock instead of any - Remove unused styled-components dependency - Delete redesign directory (19 experimental variants) and DesignSwitcher - Simplify build script now that redesign dir is gone Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent e1710f5 commit 6de3dd3

30 files changed

Lines changed: 53 additions & 8666 deletions

.env.local.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
NEXT_PUBLIC_SANITY_PROJECT_ID=your-project-id-here
66
NEXT_PUBLIC_SANITY_DATASET=production
77
SANITY_API_TOKEN=your-api-token-here
8+
9+
# Web3Forms (contact form)
10+
NEXT_PUBLIC_WEB3FORMS_KEY=your-web3forms-access-key-here

app/(main)/faq/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ export const metadata: Metadata = {
2222
},
2323
],
2424
},
25+
twitter: {
26+
card: 'summary_large_image',
27+
title: 'FAQ | Good Robot Co.',
28+
description: 'Common questions about working with Good Robot Co. — pricing, process, timelines, AI, lead generation, and what to expect from a growth partnership.',
29+
images: ['/og-image.png'],
30+
},
2531
}
2632

2733
export default function FAQPage() {

app/(main)/layout.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import Nav from '@/components/Nav'
22
import Footer from '@/components/Footer'
3-
import { JsonLd } from '@/components/JsonLd'
4-
import { buildOrganizationSchema } from '@/lib/schema-builders'
53

64
export default function MainLayout({
75
children,
@@ -10,9 +8,8 @@ export default function MainLayout({
108
}) {
119
return (
1210
<>
13-
<JsonLd data={buildOrganizationSchema()} />
1411
<Nav />
15-
<main>{children}</main>
12+
<main id="main-content">{children}</main>
1613
<Footer />
1714
</>
1815
)

app/globals.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
@layer base {
6+
button,
7+
a,
8+
select,
9+
input[type="checkbox"],
10+
input[type="radio"],
11+
input[type="submit"],
12+
input[type="button"],
13+
input[type="reset"],
14+
[role="button"],
15+
[role="link"],
16+
[role="tab"],
17+
summary,
18+
label[for] {
19+
cursor: pointer;
20+
}
21+
}
22+
523
html {
624
scroll-behavior: smooth;
725
}

app/layout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ export default function RootLayout({
5959
return (
6060
<html lang="en" className={`${dmSans.variable} ${fraunces.variable}`}>
6161
<body className="bg-cream text-charcoal text-[18px] leading-relaxed overflow-x-hidden font-body">
62+
<a href="#main-content" className="sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-[100] focus:px-4 focus:py-2 focus:bg-coral focus:text-white focus:rounded-lg focus:font-semibold">
63+
Skip to main content
64+
</a>
6265
<JsonLd data={buildOrganizationSchema()} />
6366
{children}
6467
<Analytics />

app/redesign/1/page.tsx

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

app/redesign/10/page.tsx

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

app/redesign/11/page.tsx

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

app/redesign/12/page.tsx

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

app/redesign/13/page.tsx

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

0 commit comments

Comments
 (0)