feat: initialize landing page with dynamic competitor comparison routes and structured SEO metadata
This commit is contained in:
@@ -1208,14 +1208,291 @@ h3 {
|
||||
margin-bottom: var(--s2);
|
||||
}
|
||||
|
||||
.support-faq-item p {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
/* =============================================
|
||||
RESPONSIVE
|
||||
============================================= */
|
||||
@media (max-width: 1024px) {
|
||||
.support-faq-item p {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
/* =============================================
|
||||
COMPARISON PAGES
|
||||
============================================= */
|
||||
.comparison-page {
|
||||
background:
|
||||
radial-gradient(circle at top left, rgba(86, 160, 116, 0.16), transparent 26%),
|
||||
linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
|
||||
}
|
||||
|
||||
.comparison-hero {
|
||||
background:
|
||||
linear-gradient(135deg, rgba(13, 22, 15, 0.96) 0%, rgba(28, 46, 33, 0.92) 45%, rgba(42, 92, 63, 0.86) 100%);
|
||||
color: var(--cream);
|
||||
padding: 11rem 0 5rem;
|
||||
}
|
||||
|
||||
.comparison-hero-grid,
|
||||
.comparison-context-grid,
|
||||
.comparison-fit-grid,
|
||||
.comparison-links-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1.2fr 0.8fr;
|
||||
gap: var(--s4);
|
||||
}
|
||||
|
||||
.comparison-hero-copy h1 {
|
||||
max-width: 12ch;
|
||||
margin-bottom: var(--s3);
|
||||
}
|
||||
|
||||
.comparison-lead,
|
||||
.comparison-disclaimer,
|
||||
.comparison-context-card p,
|
||||
.comparison-thesis-copy p,
|
||||
.comparison-row-verdict,
|
||||
.comparison-faq-card p,
|
||||
.comparison-link-card p,
|
||||
.comparison-scenario-copy p {
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.comparison-lead {
|
||||
max-width: 700px;
|
||||
color: rgba(244, 241, 232, 0.86);
|
||||
font-size: 1.08rem;
|
||||
}
|
||||
|
||||
.comparison-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--s2);
|
||||
margin: var(--s4) 0 var(--s3);
|
||||
}
|
||||
|
||||
.comparison-disclaimer,
|
||||
.comparison-verified {
|
||||
font-size: 0.82rem;
|
||||
color: rgba(244, 241, 232, 0.72);
|
||||
}
|
||||
|
||||
.comparison-hero-card,
|
||||
.comparison-context-card,
|
||||
.comparison-pain-card,
|
||||
.comparison-thesis-card,
|
||||
.comparison-fit-card,
|
||||
.comparison-scenario-card,
|
||||
.comparison-faq-card,
|
||||
.comparison-link-card,
|
||||
.comparison-row {
|
||||
border-radius: var(--r-lg);
|
||||
box-shadow: 0 24px 60px rgba(19, 31, 22, 0.08);
|
||||
}
|
||||
|
||||
.comparison-hero-card {
|
||||
background: rgba(244, 241, 232, 0.08);
|
||||
border: 1px solid rgba(244, 241, 232, 0.12);
|
||||
padding: var(--s4);
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
.comparison-hero-card h2 {
|
||||
font-size: clamp(1.55rem, 2.2vw, 2.2rem);
|
||||
margin-bottom: var(--s3);
|
||||
}
|
||||
|
||||
.comparison-card-label,
|
||||
.comparison-mini-label {
|
||||
display: inline-block;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.comparison-card-label {
|
||||
color: var(--green-light);
|
||||
margin-bottom: var(--s2);
|
||||
}
|
||||
|
||||
.comparison-mini-label {
|
||||
color: var(--accent);
|
||||
margin-bottom: 0.55rem;
|
||||
}
|
||||
|
||||
.comparison-bullet-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.9rem;
|
||||
}
|
||||
|
||||
.comparison-bullet-list li {
|
||||
position: relative;
|
||||
padding-left: 1.25rem;
|
||||
}
|
||||
|
||||
.comparison-bullet-list li::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0.7rem;
|
||||
left: 0;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.comparison-bullet-list--dark li::before {
|
||||
background: var(--green-mid);
|
||||
}
|
||||
|
||||
.comparison-context,
|
||||
.comparison-theses,
|
||||
.comparison-table-section,
|
||||
.comparison-fit,
|
||||
.comparison-emergency,
|
||||
.comparison-faq,
|
||||
.comparison-links {
|
||||
padding: var(--s12) 0;
|
||||
}
|
||||
|
||||
.comparison-context-card,
|
||||
.comparison-pain-card,
|
||||
.comparison-thesis-card,
|
||||
.comparison-fit-card,
|
||||
.comparison-scenario-card,
|
||||
.comparison-faq-card,
|
||||
.comparison-link-card {
|
||||
background: rgba(255, 255, 255, 0.86);
|
||||
border: 1px solid rgba(19, 31, 22, 0.08);
|
||||
padding: var(--s4);
|
||||
}
|
||||
|
||||
.comparison-context-card h2,
|
||||
.comparison-fit-card h2,
|
||||
.comparison-link-card h3 {
|
||||
margin-bottom: var(--s2);
|
||||
}
|
||||
|
||||
.comparison-context-card--accent,
|
||||
.comparison-fit-card--greenlens {
|
||||
background:
|
||||
linear-gradient(180deg, rgba(86, 160, 116, 0.12) 0%, rgba(255, 255, 255, 0.96) 100%);
|
||||
}
|
||||
|
||||
.comparison-section-head {
|
||||
max-width: 720px;
|
||||
margin-bottom: var(--s4);
|
||||
}
|
||||
|
||||
.comparison-section-head h2 {
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
.comparison-pain-grid,
|
||||
.comparison-scenario-grid,
|
||||
.comparison-faq-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: var(--s3);
|
||||
}
|
||||
|
||||
.comparison-pain-card {
|
||||
background: var(--dark);
|
||||
color: var(--cream);
|
||||
}
|
||||
|
||||
.comparison-pain-card h3,
|
||||
.comparison-thesis-card h3,
|
||||
.comparison-scenario-card h3,
|
||||
.comparison-faq-card h3 {
|
||||
margin-bottom: var(--s2);
|
||||
}
|
||||
|
||||
.comparison-thesis-copy,
|
||||
.comparison-scenario-copy {
|
||||
display: grid;
|
||||
gap: var(--s3);
|
||||
}
|
||||
|
||||
.comparison-table {
|
||||
display: grid;
|
||||
gap: var(--s3);
|
||||
}
|
||||
|
||||
.comparison-table-header {
|
||||
display: grid;
|
||||
grid-template-columns: 0.75fr 1fr 1fr;
|
||||
gap: var(--s3);
|
||||
padding: 0 var(--s2);
|
||||
color: var(--muted);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.comparison-row {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border: 1px solid rgba(19, 31, 22, 0.08);
|
||||
display: grid;
|
||||
grid-template-columns: 0.75fr 1fr 1fr;
|
||||
gap: var(--s3);
|
||||
padding: var(--s3);
|
||||
}
|
||||
|
||||
.comparison-row-title {
|
||||
font-family: var(--display);
|
||||
font-size: 1.4rem;
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
.comparison-cell {
|
||||
padding: var(--s3);
|
||||
border-radius: var(--r-md);
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.comparison-cell--greenlens {
|
||||
background: rgba(86, 160, 116, 0.12);
|
||||
border: 1px solid rgba(86, 160, 116, 0.18);
|
||||
}
|
||||
|
||||
.comparison-cell--competitor {
|
||||
background: rgba(19, 31, 22, 0.05);
|
||||
border: 1px solid rgba(19, 31, 22, 0.08);
|
||||
}
|
||||
|
||||
.comparison-row-verdict {
|
||||
grid-column: 1 / -1;
|
||||
margin-top: 0.2rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.comparison-links-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
.comparison-link-card {
|
||||
display: block;
|
||||
transition: transform var(--t), box-shadow var(--t);
|
||||
}
|
||||
|
||||
.comparison-link-card:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 20px 50px rgba(19, 31, 22, 0.12);
|
||||
}
|
||||
|
||||
.comparison-link-card--support {
|
||||
background: var(--dark);
|
||||
color: var(--cream);
|
||||
}
|
||||
|
||||
.comparison-link-card--support .comparison-mini-label,
|
||||
.comparison-link-card--support p {
|
||||
color: rgba(244, 241, 232, 0.76);
|
||||
}
|
||||
|
||||
/* =============================================
|
||||
RESPONSIVE
|
||||
============================================= */
|
||||
@media (max-width: 1024px) {
|
||||
.hero .container {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
@@ -1266,13 +1543,29 @@ h3 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.footer-inner {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--s6);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.footer-inner {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--s6);
|
||||
}
|
||||
|
||||
.comparison-hero-grid,
|
||||
.comparison-context-grid,
|
||||
.comparison-fit-grid,
|
||||
.comparison-links-grid,
|
||||
.comparison-pain-grid,
|
||||
.comparison-scenario-grid,
|
||||
.comparison-faq-grid,
|
||||
.comparison-table-header,
|
||||
.comparison-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.comparison-row-title {
|
||||
font-size: 1.7rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.nav-links {
|
||||
display: none;
|
||||
}
|
||||
@@ -1315,8 +1608,34 @@ h3 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.support-grid,
|
||||
.support-faq-list {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
.support-grid,
|
||||
.support-faq-list {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.comparison-hero {
|
||||
padding-top: 9rem;
|
||||
}
|
||||
|
||||
.comparison-actions {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.comparison-pain-grid,
|
||||
.comparison-scenario-grid,
|
||||
.comparison-faq-grid,
|
||||
.comparison-links-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.comparison-context,
|
||||
.comparison-theses,
|
||||
.comparison-table-section,
|
||||
.comparison-fit,
|
||||
.comparison-emergency,
|
||||
.comparison-faq,
|
||||
.comparison-links {
|
||||
padding: var(--s8) 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,20 +28,11 @@ export const metadata: Metadata = {
|
||||
description: 'Identify plants, get care guidance, and manage your collection with GreenLens.',
|
||||
type: 'website',
|
||||
url: siteConfig.domain,
|
||||
images: [
|
||||
{
|
||||
url: '/og-image.png',
|
||||
width: 1200,
|
||||
height: 630,
|
||||
alt: 'GreenLens – Plant Identifier and Care Planner',
|
||||
},
|
||||
],
|
||||
},
|
||||
twitter: {
|
||||
card: 'summary_large_image',
|
||||
title: 'GreenLens - Plant Identifier and Care Planner',
|
||||
description: 'Identify plants, get care guidance, and manage your collection with GreenLens.',
|
||||
images: ['/og-image.png'],
|
||||
},
|
||||
alternates: {
|
||||
canonical: '/',
|
||||
|
||||
83
greenlns-landing/app/opengraph-image.tsx
Normal file
83
greenlns-landing/app/opengraph-image.tsx
Normal file
@@ -0,0 +1,83 @@
|
||||
import { ImageResponse } from 'next/og'
|
||||
|
||||
export const runtime = 'edge'
|
||||
export const alt = 'GreenLens – Plant Identifier and Care Planner'
|
||||
export const size = { width: 1200, height: 630 }
|
||||
export const contentType = 'image/png'
|
||||
|
||||
export default function OGImage() {
|
||||
return new ImageResponse(
|
||||
(
|
||||
<div
|
||||
style={{
|
||||
background: '#131f16',
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
padding: '80px',
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
fontSize: 26,
|
||||
fontWeight: 600,
|
||||
color: '#56a074',
|
||||
letterSpacing: '0.15em',
|
||||
textTransform: 'uppercase',
|
||||
marginBottom: 28,
|
||||
display: 'flex',
|
||||
}}
|
||||
>
|
||||
Plant Identifier & Care App
|
||||
</div>
|
||||
|
||||
<div
|
||||
style={{
|
||||
fontSize: 100,
|
||||
fontWeight: 800,
|
||||
color: '#f4f1e8',
|
||||
marginBottom: 28,
|
||||
display: 'flex',
|
||||
}}
|
||||
>
|
||||
GreenLens
|
||||
</div>
|
||||
|
||||
<div
|
||||
style={{
|
||||
fontSize: 34,
|
||||
color: 'rgba(244,241,232,0.65)',
|
||||
textAlign: 'center',
|
||||
maxWidth: 820,
|
||||
display: 'flex',
|
||||
}}
|
||||
>
|
||||
Identify plants, get AI-powered care plans, and manage your collection.
|
||||
</div>
|
||||
|
||||
<div style={{ marginTop: 56, display: 'flex', gap: 16 }}>
|
||||
{['450+ plant species', 'AI-powered scans', 'iOS & Android'].map((label) => (
|
||||
<div
|
||||
key={label}
|
||||
style={{
|
||||
background: 'rgba(86,160,116,0.15)',
|
||||
border: '1.5px solid rgba(86,160,116,0.4)',
|
||||
borderRadius: 100,
|
||||
padding: '14px 30px',
|
||||
fontSize: 22,
|
||||
color: '#7ac99a',
|
||||
display: 'flex',
|
||||
}}
|
||||
>
|
||||
{label}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
),
|
||||
{ ...size },
|
||||
)
|
||||
}
|
||||
@@ -9,6 +9,38 @@ import FAQ from '@/components/FAQ'
|
||||
import CTA from '@/components/CTA'
|
||||
import Footer from '@/components/Footer'
|
||||
|
||||
const howToSchema = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'HowTo',
|
||||
name: 'How to identify a plant with GreenLens',
|
||||
step: [
|
||||
{
|
||||
'@type': 'HowToStep',
|
||||
position: 1,
|
||||
name: 'Photograph your plant',
|
||||
text: 'Open the app, point the camera at your plant and tap Scan.',
|
||||
},
|
||||
{
|
||||
'@type': 'HowToStep',
|
||||
position: 2,
|
||||
name: 'AI identifies instantly',
|
||||
text: 'In under a second you get the exact name, species and all key details.',
|
||||
},
|
||||
{
|
||||
'@type': 'HowToStep',
|
||||
position: 3,
|
||||
name: 'Receive care plan',
|
||||
text: 'GreenLens automatically creates a personalized care plan for your plant and location.',
|
||||
},
|
||||
{
|
||||
'@type': 'HowToStep',
|
||||
position: 4,
|
||||
name: 'Track growth',
|
||||
text: 'Document photos, track watering and get reminded of important care dates.',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
const faqSchema = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'FAQPage',
|
||||
@@ -34,7 +66,7 @@ const faqSchema = {
|
||||
name: 'Can I use GreenLens offline?',
|
||||
acceptedAnswer: {
|
||||
'@type': 'Answer',
|
||||
text: 'Some experiences may require a connection, especially for scan-related features. Saved information inside the app can remain available afterward.',
|
||||
text: 'Plant identification and health checks require an internet connection. Your saved collection, care notes, and watering reminders are available offline.',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -42,7 +74,7 @@ const faqSchema = {
|
||||
name: 'What kind of plants can I use GreenLens for?',
|
||||
acceptedAnswer: {
|
||||
'@type': 'Answer',
|
||||
text: 'GreenLens is built for everyday plant owners who want help with houseplants, garden plants, and general care questions.',
|
||||
text: 'GreenLens covers 450+ plant species including houseplants, garden plants, and succulents. It is built for everyday plant owners who want identification and care guidance in one place.',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -59,6 +91,10 @@ const faqSchema = {
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(howToSchema) }}
|
||||
/>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(faqSchema) }}
|
||||
|
||||
@@ -16,6 +16,18 @@ export default function sitemap(): MetadataRoute.Sitemap {
|
||||
changeFrequency: 'monthly',
|
||||
priority: 0.5,
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/vs/picturethis`,
|
||||
lastModified: new Date('2026-04-10'),
|
||||
changeFrequency: 'monthly',
|
||||
priority: 0.65,
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/vs/plantum`,
|
||||
lastModified: new Date('2026-04-10'),
|
||||
changeFrequency: 'monthly',
|
||||
priority: 0.65,
|
||||
},
|
||||
{
|
||||
url: `${baseUrl}/imprint`,
|
||||
lastModified: new Date('2026-04-08'),
|
||||
|
||||
70
greenlns-landing/app/vs/[competitor]/page.tsx
Normal file
70
greenlns-landing/app/vs/[competitor]/page.tsx
Normal file
@@ -0,0 +1,70 @@
|
||||
import type { Metadata } from 'next'
|
||||
import { notFound } from 'next/navigation'
|
||||
import ComparisonPage from '@/components/ComparisonPage'
|
||||
import { competitorOrder, getCompetitorBySlug, getPeerCompetitors } from '@/lib/competitors'
|
||||
import { siteConfig } from '@/lib/site'
|
||||
|
||||
type ComparisonRouteProps = {
|
||||
params: Promise<{ competitor: string }>
|
||||
}
|
||||
|
||||
export function generateStaticParams() {
|
||||
return competitorOrder.map((competitor) => ({ competitor }))
|
||||
}
|
||||
|
||||
export async function generateMetadata({ params }: ComparisonRouteProps): Promise<Metadata> {
|
||||
const { competitor } = await params
|
||||
const profile = getCompetitorBySlug(competitor)
|
||||
|
||||
if (!profile) {
|
||||
return {}
|
||||
}
|
||||
|
||||
const path = `/vs/${profile.slug}`
|
||||
|
||||
return {
|
||||
title: profile.metaTitle,
|
||||
description: profile.metaDescription,
|
||||
alternates: {
|
||||
canonical: path,
|
||||
},
|
||||
keywords: [
|
||||
`${siteConfig.name.toLowerCase()} vs ${profile.name.toLowerCase()}`,
|
||||
`${profile.name.toLowerCase()} alternative`,
|
||||
'plant emergency app',
|
||||
'plant care app comparison',
|
||||
'plant diagnosis app',
|
||||
],
|
||||
openGraph: {
|
||||
title: profile.metaTitle,
|
||||
description: profile.metaDescription,
|
||||
url: `${siteConfig.domain}${path}`,
|
||||
type: 'website',
|
||||
images: [
|
||||
{
|
||||
url: '/og-image.png',
|
||||
width: 1200,
|
||||
height: 630,
|
||||
alt: `${profile.metaTitle} comparison page`,
|
||||
},
|
||||
],
|
||||
},
|
||||
twitter: {
|
||||
card: 'summary_large_image',
|
||||
title: profile.metaTitle,
|
||||
description: profile.metaDescription,
|
||||
images: ['/og-image.png'],
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export default async function ComparisonRoute({ params }: ComparisonRouteProps) {
|
||||
const { competitor } = await params
|
||||
const profile = getCompetitorBySlug(competitor)
|
||||
|
||||
if (!profile) {
|
||||
notFound()
|
||||
}
|
||||
|
||||
return <ComparisonPage competitor={profile} peers={getPeerCompetitors(profile.slug)} />
|
||||
}
|
||||
Reference in New Issue
Block a user