Publication IA: - 4 templates (magazine, brief, essay, simple) avec CSS riche - Rewrite IA (article/exercises/tutorial/reference/mixed) - Modération avec timeout 12s + fallback safe - Quotas publish_enhance par tier (basic=2, pro=15, business=100) - Détection contenu stale (hash) - Migration DB publishedContent/publishedTemplate/publishedSourceHash Fixes: - cheerio v1.2: Element -> AnyNode (domhandler), decodeEntities cast - _isShared ajouté au type Note (champ virtuel serveur) - callout colors PDF export: extraction fonction pure testable - admin/published: guard note.userId null - Cmd+S fonctionne en mode dialog (pas seulement fullPage) i18n: - 23 clés publish* traduites dans les 15 locales - Extension Web Clipper: 13 locales mise à jour Tests: - callout-colors.test.ts (6 tests) - note-visible-in-view.test.ts (5 tests) - entitlements.test.ts + byok-entitlements.test.ts: mock usageLog + unstubAllEnvs - 199/199 tests passent Tracker: user-stories.md sync avec sprint-status.yaml
50 lines
2.1 KiB
TypeScript
50 lines
2.1 KiB
TypeScript
'use client';
|
|
|
|
import { LanguageProvider } from '@/lib/i18n/LanguageProvider';
|
|
import Link from 'next/link';
|
|
import { Globe } from 'lucide-react';
|
|
|
|
export default function AuthLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<LanguageProvider>
|
|
<div className="min-h-screen bg-[#FDFCFB] dark:bg-[#0D0D0D] flex flex-col relative overflow-hidden">
|
|
<div className="absolute top-[-10%] right-[-10%] w-[50%] h-[50%] bg-[var(--color-brand-accent)]/5 blur-[120px] rounded-full pointer-events-none" />
|
|
<div className="absolute bottom-[-10%] left-[-10%] w-[50%] h-[50%] bg-[#D4A373]/5 blur-[120px] rounded-full pointer-events-none" />
|
|
|
|
<header className="p-6 md:p-8 flex justify-between items-center relative z-10">
|
|
<Link
|
|
href="/"
|
|
className="flex items-center gap-2 text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors group"
|
|
>
|
|
<div className="w-8 h-8 rounded-full border border-[var(--border)] flex items-center justify-center group-hover:border-[var(--color-brand-accent)] transition-colors">
|
|
<Globe size={14} className="group-hover:rotate-12 transition-transform" />
|
|
</div>
|
|
</Link>
|
|
|
|
<Link href="/" className="flex items-center gap-2">
|
|
<div className="w-8 h-8 bg-[var(--foreground)] text-[var(--background)] rounded-xl flex items-center justify-center shadow-lg">
|
|
<span className="font-serif font-bold text-xl">M</span>
|
|
</div>
|
|
<span className="font-serif text-xl font-medium tracking-tight">Memento</span>
|
|
</Link>
|
|
|
|
<div className="w-8" />
|
|
</header>
|
|
|
|
<main className="flex-1 flex items-center justify-center p-4 md:p-6 relative z-10">
|
|
<div className="w-full max-w-md">
|
|
{children}
|
|
<p className="text-center mt-8 text-[9px] text-[var(--muted-foreground)] font-bold uppercase tracking-[0.3em] opacity-40 select-none">
|
|
© 2025 Memento Labs
|
|
</p>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</LanguageProvider>
|
|
);
|
|
}
|