All checks were successful
- Dockerfile: запуск через node_modules/.bin/next вместо pnpm start (corepack качал pnpm при старте) - compose: healthcheck по /healthz, APP_RELEASE/APP_RELEASE_DATE/APP_ENV приложению - peppa-deploy.sh: успех только если /healthz отвечает SHA новой версии - /healthz отдаёт JSON с версией; подвал staging/preview — «Версия для проверки от …» - архив change qlfw-85-staging-release, память проекта ужата Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
1.4 KiB
TypeScript
31 lines
1.4 KiB
TypeScript
import Link from 'next/link'
|
|
import type { Dict, Locale } from '@/i18n'
|
|
import { isLegalPublished, type CmsLegal } from '@/lib/legal-model'
|
|
import { currentRelease, releaseDate } from '@/lib/release'
|
|
|
|
export function Footer({ t, locale, legal }: { t: Dict; locale: Locale; legal: CmsLegal | null }) {
|
|
const release = currentRelease()
|
|
const released = releaseDate(release, locale)
|
|
return (
|
|
<footer className="border-t border-line">
|
|
<div className="mx-auto flex max-w-6xl flex-col gap-4 px-5 py-10 text-sm text-muted sm:px-8 md:flex-row md:items-center md:justify-between">
|
|
<div className="space-y-1">
|
|
<p>
|
|
© {new Date().getFullYear()} {t.siteName}. {t.footer}
|
|
</p>
|
|
{released && (
|
|
<p data-release={release.sha ?? undefined} title={release.sha ?? undefined}>
|
|
{t.releaseNote} {released}
|
|
</p>
|
|
)}
|
|
</div>
|
|
<nav className="flex flex-wrap gap-x-6 gap-y-2">
|
|
<Link href={`/${locale}/contacts`} className="hover:text-burgundy">{t.contacts.title}</Link>
|
|
{isLegalPublished(legal?.privacy) && <Link href={`/${locale}/privacy`} className="hover:text-burgundy">{t.legal.privacy.title}</Link>}
|
|
{isLegalPublished(legal?.terms) && <Link href={`/${locale}/terms`} className="hover:text-burgundy">{t.legal.termsShort}</Link>}
|
|
</nav>
|
|
</div>
|
|
</footer>
|
|
)
|
|
}
|