feat: update ipal-kit, integrate Media/SiteSettings and configure PL/DE languages

This commit is contained in:
2026-08-26 14:14:19 +02:00
parent cbb0ac4bfa
commit 59823dc04b
17 changed files with 363 additions and 77 deletions
+9 -1
View File
@@ -2,6 +2,8 @@ import React from 'react'
import { Phone, Mail, ShieldCheck, Cookie, FileText } from 'lucide-react'
import { Logo } from '@/components/Logo'
import type { Media } from '@/payload-types'
export interface FooterNavItem {
id?: string
label: string
@@ -31,6 +33,7 @@ interface FooterProps {
legalTitle?: string | null
creditLabel?: string | null
creditHref?: string | null
logo?: Media | { url?: string | null; alt?: string | null } | null
}
export function Footer({
@@ -56,6 +59,7 @@ export function Footer({
legalTitle,
creditLabel,
creditHref,
logo,
}: FooterProps) {
return (
<footer className="bg-dark text-[#d0d0d0] pt-14 pb-8 border-t-4 border-primary">
@@ -64,7 +68,11 @@ export function Footer({
{/* 1. Company Info */}
<div className="space-y-4">
<div className="flex items-center gap-3">
<Logo variant="dark" className="h-12 w-auto" alt={companyName || undefined} />
{logo ? (
<Logo className="h-12 w-auto" alt={companyName || undefined} media={logo} />
) : companyName ? (
<span className="font-black text-xl tracking-tight text-white uppercase">{companyName}</span>
) : null}
</div>
{footerTagline && (
<p className="text-xs sm:text-sm text-[#a0a0a0] leading-relaxed">