--- import { getLangFromUrl, useTranslations } from '../i18n/utils'; import { Icon } from 'astro-icon/components'; import Button from './atoms/Button.astro'; interface Props { title?: string; description?: string; buttonText?: string; buttonLink?: string; image?: string; imageAlt?: string; } const { title, description, buttonText, buttonLink, image = '/images/product_photos/Memoro-App-Smartphone.jpg', imageAlt, } = Astro.props; const lang = getLangFromUrl(Astro.url); const t = useTranslations(lang); // Default values if not provided const defaultTitle = lang === 'de' ? 'Bereit, Ihre Gespräche zu revolutionieren?' : 'Ready to revolutionize your conversations?'; const defaultDescription = lang === 'de' ? 'Starten Sie noch heute mit Memoro und erleben Sie, wie einfach Dokumentation sein kann.' : 'Start with Memoro today and experience how simple documentation can be.'; const defaultButtonText = lang === 'de' ? 'Kostenlos herunterladen' : 'Download for free'; const defaultButtonLink = lang === 'de' ? '/de/download' : '/en/download'; const defaultImageAlt = lang === 'de' ? 'Memoro App - Büro Meeting Aufzeichnung' : 'Memoro App - Office Meeting Recording'; ---

{title || defaultTitle}

{description || defaultDescription}

{imageAlt