refactor(web): unify dashboard footer via SiteFooter compact variant

Add a `compact` variant to SiteFooter (single-line copyright + legal
links) and use it in the dashboard layout, replacing the divergent
hard-coded inline footer. The dashboard footer is now i18n-aware,
contrast-corrected, and adds the KVKK link for parity with the site
footer. Both layouts now render from one component.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-26 20:56:50 +03:00
parent d482d5db6c
commit e90f825ed7
2 changed files with 25 additions and 13 deletions

View File

@@ -1,3 +1,4 @@
import { SiteFooter } from "@/components/site-footer";
import { TrialUrgencyBanner } from "@/components/trial-urgency-banner";
import { useAuth } from "@/hooks/use-auth";
import { api } from "@/lib/api-client";
@@ -512,18 +513,7 @@ function DashboardLayout() {
</main>
{/* Footer */}
<div className="border-t border-border px-6 py-3">
<p className="text-center text-xs text-muted-foreground/70">
&copy; {new Date().getFullYear()} Sase.tr ·{" "}
<Link to="/privacy" className="transition-colors hover:text-foreground">
Gizlilik Politikası
</Link>{" "}
·{" "}
<Link to="/terms" className="transition-colors hover:text-foreground">
Kullanım Koşulları
</Link>
</p>
</div>
<SiteFooter variant="compact" />
</div>
{/* ─── Mobile Nav Drawer (Radix Dialog: focus-trap, Esc, scroll-lock) ─── */}