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).
45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
import React from 'react';
|
|
import MarketingLayout from '@/layouts/mainWebsite';
|
|
|
|
type LegalShowProps = {
|
|
seoTitle: string;
|
|
title: string;
|
|
content: string;
|
|
effectiveFrom?: string | null;
|
|
effectiveFromLabel?: string | null;
|
|
versionLabel?: string | null;
|
|
slug: string;
|
|
};
|
|
|
|
export default function LegalShow(props: LegalShowProps) {
|
|
const { seoTitle, title, content, effectiveFromLabel, versionLabel } = props;
|
|
|
|
return (
|
|
<MarketingLayout title={seoTitle}>
|
|
|
|
<section className="bg-white py-16">
|
|
<div className="mx-auto max-w-4xl px-6">
|
|
<header className="mb-10">
|
|
<p className="text-sm uppercase tracking-[0.2em] text-gray-400">
|
|
FotoSpiel.App
|
|
</p>
|
|
<h1 className="mt-2 text-3xl font-semibold text-gray-900 md:text-4xl">
|
|
{title}
|
|
</h1>
|
|
{(effectiveFromLabel || versionLabel) && (
|
|
<p className="mt-3 text-sm text-gray-500">
|
|
{[effectiveFromLabel, versionLabel].filter(Boolean).join(' · ')}
|
|
</p>
|
|
)}
|
|
</header>
|
|
|
|
<article
|
|
className="prose prose-slate max-w-none prose-headings:font-display"
|
|
dangerouslySetInnerHTML={{ __html: content }}
|
|
/>
|
|
</div>
|
|
</section>
|
|
</MarketingLayout>
|
|
);
|
|
}
|