qazaq-legacy-foundation-web/src/components/Footer.tsx
peppa-bot 8e455aca5b
All checks were successful
peppa/lint lint: success за 5с
peppa/typecheck typecheck: success за 8с
peppa/test test: success за 3с
peppa/build build: success за 72с
ci / checks (pull_request) Successful in 2m31s
deploy / deploy (pull_request) Successful in 4m19s
QLFW-85: сайт стартует без загрузки pnpm, выкладка проверяет версию, дата версии в подвале
- 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>
2026-11-25 13:56:36 +00:00

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>
)
}