TTikotok V4

This commit is contained in:
2026-07-10 11:29:04 +02:00
parent 1a9548cf25
commit 5c48def4e1
60 changed files with 6097 additions and 1319 deletions

View File

@@ -1,8 +1,17 @@
import Link from 'next/link'
import Navbar from '@/components/Navbar'
import CTA from '@/components/CTA'
import Footer from '@/components/Footer'
import SeoNavbar from '@/components/seo/SeoNavbar'
import SeoFooter from '@/components/seo/SeoFooter'
import {
SeoHero,
SeoAdvantage,
SeoMethodology,
SeoComparison,
SeoContentSections,
SeoBestFit,
SeoFaq,
SeoRelated,
} from '@/components/seo/SeoSections'
import type { SeoPageProfile } from '@/lib/seoPages'
import { seoTemplateCopy } from '@/lib/seoTemplateCopy'
import { siteConfig, hasIosStoreUrl } from '@/lib/site'
interface SeoCategoryPageProps {
@@ -10,62 +19,8 @@ interface SeoCategoryPageProps {
}
export default function SeoCategoryPage({ profile }: SeoCategoryPageProps) {
const labels = {
en: {
heroTag: 'GreenLens',
primaryCta: 'Try GreenLens',
secondaryCta: 'See full comparison',
definition: 'Definition',
updated: 'Last updated:',
tableTag: 'At a glance',
bestFit: 'Best fit',
chooseIf: 'Choose GreenLens if:',
notBestFit: 'Not the best fit',
notRightIf: 'GreenLens is not the right tool if:',
faqTag: 'FAQ',
faqTitle: 'Common questions answered directly.',
related: 'Related',
supportTag: 'Need help?',
supportTitle: 'Talk to GreenLens support',
supportCopy: 'Questions about scans, care plans, billing, or features? Use the support page.',
},
de: {
heroTag: 'GreenLens',
primaryCta: 'GreenLens testen',
secondaryCta: 'Vergleich ansehen',
definition: 'Definition',
updated: 'Aktualisiert:',
tableTag: 'Überblick',
bestFit: 'Passt gut',
chooseIf: 'Wähle GreenLens, wenn:',
notBestFit: 'Nicht ideal',
notRightIf: 'GreenLens ist nicht die richtige Wahl, wenn:',
faqTag: 'FAQ',
faqTitle: 'Häufige Fragen direkt beantwortet.',
related: 'Verwandt',
supportTag: 'Brauchst du Hilfe?',
supportTitle: 'GreenLens Support kontaktieren',
supportCopy: 'Fragen zu Scans, Pflegeplänen, Abrechnung oder Funktionen? Nutze die Support-Seite.',
},
es: {
heroTag: 'GreenLens',
primaryCta: 'Probar GreenLens',
secondaryCta: 'Ver comparación',
definition: 'Definición',
updated: 'Actualizado:',
tableTag: 'Resumen',
bestFit: 'Mejor opción',
chooseIf: 'Elige GreenLens si:',
notBestFit: 'No es ideal',
notRightIf: 'GreenLens no es la herramienta adecuada si:',
faqTag: 'FAQ',
faqTitle: 'Preguntas frecuentes respondidas directamente.',
related: 'Relacionado',
supportTag: '¿Necesitas ayuda?',
supportTitle: 'Contacta con soporte de GreenLens',
supportCopy: '¿Preguntas sobre escaneos, planes de cuidado, facturación o funciones? Usa la página de soporte.',
},
}[profile.locale ?? 'en']
const locale = profile.locale ?? 'en'
const copy = seoTemplateCopy[locale]
const faqSchema = {
'@context': 'https://schema.org',
@@ -117,7 +72,7 @@ export default function SeoCategoryPage({ profile }: SeoCategoryPageProps) {
}
return (
<>
<div className="bg-background text-on-background font-body antialiased">
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(faqSchema) }}
@@ -132,145 +87,28 @@ export default function SeoCategoryPage({ profile }: SeoCategoryPageProps) {
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(breadcrumbSchema) }}
/>
<Navbar />
<main className="comparison-page">
{/* Hero */}
<section className="comparison-hero">
<div className="container comparison-hero-grid">
<div className="comparison-hero-copy">
<p className="tag">{labels.heroTag}</p>
<h1>{profile.h1}</h1>
<p className="comparison-lead">{profile.tagline}</p>
<p>{profile.directAnswer}</p>
<div className="comparison-actions">
<a href="#cta" className="btn-primary">{labels.primaryCta}</a>
<a href="#feature-table" className="btn-outline">{labels.secondaryCta}</a>
</div>
</div>
<aside className="comparison-hero-card">
<p className="comparison-card-label">{labels.definition}</p>
<p>{profile.definitionBlock}</p>
<p className="comparison-verified">{labels.updated} {profile.lastUpdated}</p>
</aside>
</div>
</section>
<SeoNavbar locale={locale} />
{profile.contentSections && profile.contentSections.length > 0 && (
<section className="comparison-context">
<div className="container comparison-context-grid">
{profile.contentSections.map((section) => (
<article key={section.title} className="comparison-context-card">
<p className="tag">{section.eyebrow}</p>
<h2>{section.title}</h2>
<p>{section.body}</p>
{section.bullets && (
<ul className="comparison-bullet-list comparison-bullet-list--dark">
{section.bullets.map((item) => (
<li key={item}>{item}</li>
))}
</ul>
)}
</article>
))}
</div>
</section>
)}
<main className="pt-[72px] relative overflow-hidden bg-[#fdfbf6]">
{/* Dekorative Farb-Blobs */}
<div className="absolute inset-0 pointer-events-none -z-10" aria-hidden="true">
<div className="absolute top-[-5%] left-[-10%] w-[60vw] h-[60vw] max-w-[800px] max-h-[800px] bg-[#ffd8b1] blur-[120px] rounded-full mix-blend-multiply opacity-60"></div>
<div className="absolute top-[15%] right-[-5%] w-[50vw] h-[50vw] max-w-[600px] max-h-[600px] bg-[#c2e5cc] blur-[100px] rounded-full mix-blend-multiply opacity-80"></div>
<div className="absolute top-[40%] left-[15%] w-[40vw] h-[40vw] max-w-[500px] max-h-[500px] bg-[#e5f0cb] blur-[100px] rounded-full mix-blend-multiply opacity-70"></div>
</div>
{/* Feature table */}
<section className="comparison-table-section" id="feature-table">
<div className="container">
<div className="comparison-section-head">
<p className="tag">{labels.tableTag}</p>
<h2>{profile.featureTable.title}</h2>
</div>
<div className="comparison-table">
<div className="comparison-table-header">
<span>Feature</span>
<span>GreenLens</span>
<span>{profile.featureTable.alternativeLabel}</span>
</div>
{profile.featureTable.rows.map((row) => (
<article key={row.feature} className="comparison-row">
<div className="comparison-row-title">{row.feature}</div>
<div className="comparison-cell comparison-cell--greenlens">{row.greenlens}</div>
<div className="comparison-cell comparison-cell--competitor">{row.alternative}</div>
</article>
))}
</div>
</div>
</section>
{/* Fit cards */}
<section className="comparison-fit">
<div className="container comparison-fit-grid">
<article className="comparison-fit-card comparison-fit-card--greenlens">
<p className="tag">{labels.bestFit}</p>
<h2>{labels.chooseIf}</h2>
<ul className="comparison-bullet-list comparison-bullet-list--dark">
{profile.greenLensIf.map((item) => (
<li key={item}>{item}</li>
))}
</ul>
</article>
<article className="comparison-fit-card">
<p className="tag">{labels.notBestFit}</p>
<h2>{labels.notRightIf}</h2>
<ul className="comparison-bullet-list comparison-bullet-list--dark">
{profile.notBestIf.map((item) => (
<li key={item}>{item}</li>
))}
</ul>
</article>
</div>
</section>
{/* FAQ */}
<section className="comparison-faq">
<div className="container">
<div className="comparison-section-head">
<p className="tag">{labels.faqTag}</p>
<h2>{labels.faqTitle}</h2>
</div>
<div className="comparison-faq-grid">
{profile.faqs.map((item) => (
<article key={item.question} className="comparison-faq-card">
<h3>{item.question}</h3>
<p>{item.answer}</p>
</article>
))}
</div>
</div>
</section>
{/* Related links */}
{profile.relatedLinks.length > 0 && (
<section className="comparison-links">
<div className="container comparison-links-grid">
{profile.relatedLinks.map((link) => (
<Link key={link.href} href={link.href} className="comparison-link-card">
<p className="comparison-mini-label">{labels.related}</p>
<h3>{link.label}</h3>
<p>{link.description}</p>
</Link>
))}
<Link href="/support" className="comparison-link-card comparison-link-card--support">
<p className="comparison-mini-label">{labels.supportTag}</p>
<h3>{labels.supportTitle}</h3>
<p>{labels.supportCopy}</p>
</Link>
</div>
</section>
)}
<CTA />
<SeoHero profile={profile} copy={copy} />
<SeoAdvantage profile={profile} copy={copy} />
<SeoMethodology copy={copy} />
<SeoComparison profile={profile} copy={copy} />
<SeoContentSections profile={profile} />
<SeoBestFit profile={profile} copy={copy} />
<SeoFaq profile={profile} copy={copy} />
<SeoRelated profile={profile} copy={copy} />
</main>
<Footer />
</>
<SeoFooter locale={locale} />
</div>
)
}