LoVisual/frontend/src/shared/layout/Footer.tsx
loki5512344 e00ea8eb11
feat: frontend perf and a11y pass, plus mod visuals, hero main menu, Simple Voice Chat and vanilla chat autocomplete
Frontend:
- replace the i18next stack with a small typed i18n module
- hero clouds removed, llms.txt, HUD widget ARIA fixes and tests

Mod:
- TargetESP constellation mode; tracker and colors extracted
- JumpCircles: 7 new shapes, shared animation and color pipeline
- KillEffect blood mode with Burst/Fountain/Ring/Spray styles
- main menu: menuLayout setting (orbs/hero) and hero screen
- Simple Voice Chat soft integration: VoiceChat module and HUD panel
- renderer/quick: static Draw facade with glass outline
- vanilla chat: Baritone-style autocomplete popup for the % command prefix
2026-10-01 21:29:54 +02:00

54 lines
2.3 KiB
TypeScript

import { useTranslation } from '@shared/i18n/react'
import { Link } from 'react-router'
import { GITHUB_REPO } from '@features/download/api'
import { LanguageSwitch } from '../i18n/LanguageSwitch'
export function Footer() {
const { t } = useTranslation('common')
const product = [
{ to: '/showcase', label: t('nav.showcase') },
{ to: '/configs', label: t('nav.myConfigs') },
{ to: '/themes', label: t('nav.themes') },
]
const project: { label: string; to?: string; href?: string }[] = [
{ href: `https://github.com/${GITHUB_REPO}`, label: t('footer.github') },
// In-site: the download page is where both download paths (ours + GitHub) live.
{ to: '/download', label: t('footer.download') },
]
return (
<footer className="mt-8 border-t border-shoal bg-slate">
<div className="mx-auto grid w-full max-w-[1120px] gap-10 px-4 py-12 sm:px-6 md:grid-cols-[1.4fr_1fr_1fr]">
<div className="flex min-w-0 flex-col gap-3">
<Link to="/" className="font-display text-xl font-bold text-snow">LoVisual</Link>
<p className="max-w-[38ch] text-sm text-frost">{t('footer.about')}</p>
<LanguageSwitch className="self-start" />
</div>
<nav aria-label={t('footer.sectionProduct')} className="flex min-w-0 flex-col gap-2">
<span className="font-display text-sm font-bold text-snow">{t('footer.sectionProduct')}</span>
{product.map((i) => (
<Link key={i.to} to={i.to} className="text-sm text-frost hover:text-snow">{i.label}</Link>
))}
</nav>
<nav aria-label={t('footer.sectionProject')} className="flex min-w-0 flex-col gap-2">
<span className="font-display text-sm font-bold text-snow">{t('footer.sectionProject')}</span>
{project.map((i) =>
i.to ? (
<Link key={i.label} to={i.to} className="text-sm text-frost hover:text-snow">{i.label}</Link>
) : (
<a key={i.label} href={i.href} target="_blank" rel="noreferrer" className="text-sm text-frost hover:text-snow">
{i.label}
</a>
),
)}
</nav>
</div>
<div className="border-t border-shoal">
<p className="mx-auto w-full max-w-[1120px] px-4 py-5 text-xs text-frost sm:px-6">{t('footer.disclaimer')}</p>
</div>
</footer>
)
}