driven breakdown tables, with frontend/cards/dialog updated accordingly (database/ migrations/2025_10_17_000001_add_description_table_to_packages.php, database/ migrations/2025_10_17_000002_add_translation_columns_to_packages.php, database/seeders/PackageSeeder.php, app/ Http/Controllers/MarketingController.php, resources/js/pages/marketing/Packages.tsx). Filament Package resource gains locale tabs, markdown editor, numeric/toggle inputs, and simplified feature management (app/Filament/Resources/PackageResource.php, app/Filament/Resources/PackageResource/Pages/ CreatePackage.php, .../EditPackage.php). Legal pages now render markdown-backed content inside the main layout via a new controller/view route setup and updated footer links (app/Http/Controllers/LegalPageController.php, routes/web.php, resources/views/partials/ footer.blade.php, resources/js/pages/legal/Show.tsx, remove old static pages). Translation files and shared assets updated to cover new marketing/legal strings and styling tweaks (public/ lang/*/marketing.json, resources/lang/*/marketing.php, resources/css/app.css, resources/js/admin/components/ LanguageSwitcher.tsx).
61 lines
2.9 KiB
TypeScript
61 lines
2.9 KiB
TypeScript
import React, { useCallback } from 'react';
|
|
import { Link } from '@inertiajs/react';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { usePage } from '@inertiajs/react';
|
|
import { useLocalizedRoutes } from '@/hooks/useLocalizedRoutes';
|
|
import { useAppearance } from '@/hooks/use-appearance';
|
|
|
|
|
|
const Footer: React.FC = () => {
|
|
|
|
const { t } = useTranslation(['marketing', 'legal']);
|
|
|
|
|
|
return (
|
|
<footer className="bg-white border-t border-gray-200 mt-auto">
|
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
|
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
|
|
<div>
|
|
<div className="flex items-center gap-4">
|
|
<img src="logo-transparent-md.png" alt="FotoSpiel.App Logo" className="h-12 w-auto" />
|
|
<div>
|
|
<Link href="/" className="text-2xl font-bold font-display text-pink-500">
|
|
FotoSpiel.App
|
|
</Link>
|
|
<p className="text-gray-600 font-sans-marketing mt-2">
|
|
Deine Plattform für Event-Fotos.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<h3 className="font-semibold font-display text-gray-900 mb-4">Rechtliches</h3>
|
|
<ul className="space-y-2 text-sm text-gray-600 font-sans-marketing">
|
|
<li><Link href="/impressum" className="hover:text-pink-500 transition-colors">{t('legal:impressum')}</Link></li>
|
|
<li><Link href="/datenschutz" className="hover:text-pink-500 transition-colors">{t('legal:datenschutz')}</Link></li>
|
|
<li><Link href="/agb" className="hover:text-pink-500 transition-colors">{t('legal:agb')}</Link></li>
|
|
<li><Link href="/kontakt" className="hover:text-pink-500 transition-colors">{t('marketing:nav.contact')}</Link></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div>
|
|
<h3 className="font-semibold font-display text-gray-900 mb-4">Social</h3>
|
|
<ul className="space-y-2 text-sm text-gray-600 font-sans-marketing">
|
|
<li><a href="#" className="hover:text-pink-500">Instagram</a></li>
|
|
<li><a href="#" className="hover:text-pink-500">Facebook</a></li>
|
|
<li><a href="#" className="hover:text-pink-500">YouTube</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="border-t border-gray-200 mt-8 pt-8 text-center text-sm text-gray-500 font-sans-marketing">
|
|
© 2025 FotoSpiel.App - Alle Rechte vorbehalten.
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
);
|
|
};
|
|
|
|
export default Footer;
|