From e527115c6aa912b070fc9ca0f01bec8b6c9a9a2a Mon Sep 17 00:00:00 2001 From: Quinn Ftw Date: Sun, 28 Dec 2025 19:43:47 -0800 Subject: [PATCH] fix(landing): remove duplicate Header and AIBackground from pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pages were rendering their own
and components while already wrapped by which provides both. This caused double headers for logged-in users. Removed duplicate imports and JSX from: - Category landing pages (Shop, Platform, Company, ForWorkers, ForCustomers) - Legal pages (Terms, Privacy) - Roadmap page 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../landing/frontend/src/pages/categories/CompanyPage.tsx | 6 ------ .../frontend/src/pages/categories/ForCustomersPage.tsx | 6 ------ .../frontend/src/pages/categories/ForWorkersPage.tsx | 6 ------ .../landing/frontend/src/pages/categories/PlatformPage.tsx | 7 ------- .../frontend/src/pages/categories/ShopLandingPage.tsx | 7 ------- features/landing/frontend/src/pages/legal/PrivacyPage.tsx | 3 --- features/landing/frontend/src/pages/legal/TermsPage.tsx | 3 --- .../landing/frontend/src/pages/roadmap/RoadmapPage.tsx | 6 ------ 8 files changed, 44 deletions(-) diff --git a/features/landing/frontend/src/pages/categories/CompanyPage.tsx b/features/landing/frontend/src/pages/categories/CompanyPage.tsx index cf5a8fd47..df7e09443 100644 --- a/features/landing/frontend/src/pages/categories/CompanyPage.tsx +++ b/features/landing/frontend/src/pages/categories/CompanyPage.tsx @@ -2,9 +2,6 @@ import { motion } from 'framer-motion'; import { Link } from 'react-router-dom'; import { Building2, TrendingUp, FileText, Shield, ArrowRight } from 'lucide-react'; import SEOHead from '../../components/SEOHead'; -import { AIBackground } from '@ui/backgrounds'; -import Header from '../../components/Header/Header'; -import { useReducedMotion } from '@ui/accessibility'; import { useSoundEngine } from '@ui/effects-sound'; import { Routes } from '../../routes'; import './CategoryLanding.css'; @@ -85,7 +82,6 @@ function SectionCard({ section, index }: { section: CompanySection; index: numbe } export default function CompanyPage() { - const prefersReducedMotion = useReducedMotion(); const playSound = useSoundEngine(); return ( @@ -97,8 +93,6 @@ export default function CompanyPage() { } as React.CSSProperties} > - -
- -
- -
- -
- -
-
- diff --git a/features/landing/frontend/src/pages/legal/TermsPage.tsx b/features/landing/frontend/src/pages/legal/TermsPage.tsx index fc8afc5d4..22bb21590 100644 --- a/features/landing/frontend/src/pages/legal/TermsPage.tsx +++ b/features/landing/frontend/src/pages/legal/TermsPage.tsx @@ -3,7 +3,6 @@ import { motion } from 'framer-motion' import { ArrowLeft, Shield, Users, FileText, AlertCircle, Scale } from 'lucide-react' import { Link } from 'react-router-dom' -import Header from '../../components/Header/Header' import { Routes } from '../../routes' import SEOHead from '../../components/SEOHead' import { useSoundEngine } from '@ui/effects-sound' @@ -20,8 +19,6 @@ export default function TermsPage() { description="Transparent, creator-first terms of service for the lilith platform. We're a worker-owned cooperative (SCOP) based in France." /> -
- diff --git a/features/landing/frontend/src/pages/roadmap/RoadmapPage.tsx b/features/landing/frontend/src/pages/roadmap/RoadmapPage.tsx index f2fba7acb..b367c5e6f 100644 --- a/features/landing/frontend/src/pages/roadmap/RoadmapPage.tsx +++ b/features/landing/frontend/src/pages/roadmap/RoadmapPage.tsx @@ -15,10 +15,7 @@ import { } from 'lucide-react' import { Routes } from '../../routes' import SEOHead from '../../components/SEOHead' -import { AIBackground } from '@ui/backgrounds' -import Header from '../../components/Header/Header' import { useScrollTrigger } from '@ui/themes' -import { useReducedMotion } from '@ui/accessibility' import { useSoundEngine } from '@ui/effects-sound' import './RoadmapPage.css' @@ -236,13 +233,10 @@ function PhaseCard({ phase, index }: { phase: RoadmapPhase; index: number }) { export default function RoadmapPage() { const heroRef = useRef(null) const playSound = useSoundEngine() - const prefersReducedMotion = useReducedMotion() return (
- -