feat: update ipal-kit, integrate Media/SiteSettings and configure PL/DE languages
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user