feat: add rData analytics and move Header to layout

Remove auto-redirect from landing page, move Header from page.tsx
to layout.tsx.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-02-25 00:04:38 -08:00
parent 108ac3e0a9
commit 0801c8ed70
2 changed files with 5 additions and 13 deletions

View File

@ -1,5 +1,6 @@
import type { Metadata, Viewport } from 'next';
import './globals.css';
import { Header } from '@/components/Header';
export const metadata: Metadata = {
title: 'rMaps - Find Your Friends',
@ -40,7 +41,11 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<head>
<script defer src="https://rdata.online/collect.js" data-website-id="a1b2c3d4-maps-0000-0000-000000000004" />
</head>
<body className="antialiased">
<Header current="maps" />
{children}
</body>
</html>

View File

@ -5,7 +5,6 @@ import { useRouter } from 'next/navigation';
import Link from 'next/link';
import { nanoid } from 'nanoid';
import { AuthButton } from '@/components/AuthButton';
import { Header } from '@/components/Header';
import { EcosystemFooter } from '@/components/EcosystemFooter';
import { useAuthStore } from '@/stores/auth';
@ -105,18 +104,6 @@ export default function HomePage() {
return (
<div className="min-h-screen bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900">
{/* ── Header Nav ─────────────────────────────────────────── */}
<Header
current="maps"
maxWidth="max-w-5xl"
actions={
<>
<Link href="/demo" className="text-sm text-slate-300 hover:text-white transition-colors">Demo</Link>
<a href="#get-started" className="text-sm px-4 py-2 bg-emerald-600 hover:bg-emerald-500 rounded-lg transition-colors font-medium">Create Map</a>
</>
}
/>
{/* ── Hero Section ─────────────────────────────────────────── */}
<section className="relative overflow-hidden">
{/* Subtle background grid */}