weekly seo
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { Metadata } from 'next'
|
||||
import { cookies } from 'next/headers'
|
||||
import { headers } from 'next/headers'
|
||||
import './globals.css'
|
||||
import { LangProvider } from '@/context/LangContext'
|
||||
import { siteConfig, hasIosStoreUrl } from '@/lib/site'
|
||||
@@ -47,7 +48,9 @@ export const metadata: Metadata = {
|
||||
|
||||
export default async function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
const cookieStore = await cookies()
|
||||
const lang = (cookieStore.get('lang')?.value ?? 'de') as 'de' | 'en' | 'es'
|
||||
const headerStore = await headers()
|
||||
const routeLang = headerStore.get('x-greenlens-lang')
|
||||
const lang = (routeLang ?? cookieStore.get('lang')?.value ?? 'de') as 'de' | 'en' | 'es'
|
||||
const validLangs = ['de', 'en', 'es']
|
||||
const htmlLang = validLangs.includes(lang) ? lang : 'de'
|
||||
|
||||
|
||||
@@ -146,6 +146,21 @@ export default function Home() {
|
||||
<h3>Pflanzen bestimmen</h3>
|
||||
<p>Pflanze scannen, Artname sehen und den passenden Pflegeplan erhalten.</p>
|
||||
</Link>
|
||||
<Link href="/pflanzen-pflege-app" className="comparison-link-card">
|
||||
<p className="comparison-mini-label">Gießerinnerung</p>
|
||||
<h3>Pflanzen gießen Erinnerung</h3>
|
||||
<p>Pflegeplan, Push-Erinnerung und Gießrhythmus pro Pflanze verwalten.</p>
|
||||
</Link>
|
||||
<Link href="/vs/google-lens" className="comparison-link-card">
|
||||
<p className="comparison-mini-label">Google Lens</p>
|
||||
<h3>Google Pflanzen erkennen</h3>
|
||||
<p>Vergleiche Google Lens mit GreenLens für Pflanzenerkennung, Pflege und Diagnose.</p>
|
||||
</Link>
|
||||
<Link href="/identify-plant-photo" className="comparison-link-card">
|
||||
<p className="comparison-mini-label">English</p>
|
||||
<h3>Identify plant by photo</h3>
|
||||
<p>Use a plant photo or picture to get the name, care plan, and reminders.</p>
|
||||
</Link>
|
||||
<Link href="/pflanzen-krankheiten-erkennen" className="comparison-link-card">
|
||||
<p className="comparison-mini-label">Diagnose</p>
|
||||
<h3>Pflanzenkrankheiten erkennen</h3>
|
||||
|
||||
Reference in New Issue
Block a user