feat(typography): apply SF Pro font globally and format Trust & Privacy header to 2 lines

This commit is contained in:
2026-11-17 10:49:55 +05:30
parent d3591ddb11
commit 28dd3beb90
9 changed files with 103 additions and 49 deletions
+71 -23
View File
@@ -201,6 +201,11 @@ export function HeroSection({
const resolvedTitle = resolveLocalised(title, locale) || 'Creative studio';
const resolvedSubtitle = resolveLocalised(subtitle, locale);
const isTrustOrPrivacy =
resolvedTitle.toLowerCase().includes('trust') ||
resolvedTitle.toLowerCase().includes('privacy') ||
resolvedTitle.toLowerCase().includes('security');
return (
<section className="relative pt-24 sm:pt-28 pb-16 sm:pb-20 text-center bg-paper border-b border-rule overflow-hidden">
{/* Layered Studio Lighting Ambient Glow */}
@@ -216,25 +221,37 @@ export function HeroSection({
{/* Layered Light Rays */}
<LightRays className="opacity-40" />
<div className="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6 relative z-10">
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6 relative z-10">
<BlurFade delay={0.06}>
<div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-paper-hi border border-rule text-xs font-body text-ink shadow-xs">
<span className="w-2 h-2 rounded-full bg-accent animate-pulse" />
<span className="font-semibold text-accent">Studio Neural Directory</span>
<span className="font-semibold text-accent">
{isTrustOrPrivacy ? 'Security & Biometric Architecture' : 'Studio Neural Directory'}
</span>
<span className="w-1 h-1 rounded-full bg-muted/40" />
<span className="text-muted">Direct browser trials</span>
<span className="text-muted">
{isTrustOrPrivacy ? 'Zero photo retention' : 'Direct browser trials'}
</span>
</div>
</BlurFade>
<BlurFade delay={0.12}>
<h1 className="text-3xl sm:text-5xl lg:text-6xl font-display font-extrabold text-ink tracking-tight text-balance">
<KineticText>{resolvedTitle}</KineticText>
<h1 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-display font-extrabold text-ink tracking-tight max-w-4xl mx-auto leading-[1.12]">
{resolvedTitle.includes('\n') ? (
resolvedTitle.split('\n').map((line, idx) => (
<span key={idx} className="block">
<KineticText>{line.trim()}</KineticText>
</span>
))
) : (
<KineticText>{resolvedTitle}</KineticText>
)}
</h1>
</BlurFade>
{resolvedSubtitle && (
<BlurFade delay={0.18}>
<p className="text-sm sm:text-base lg:text-lg text-ink-2 font-body max-w-xl mx-auto leading-relaxed text-pretty">
<p className="text-sm sm:text-base lg:text-lg text-ink-2 font-body max-w-2xl mx-auto leading-relaxed text-pretty">
{resolvedSubtitle}
</p>
</BlurFade>
@@ -243,28 +260,59 @@ export function HeroSection({
{/* Studio Capability Highlights */}
<BlurFade delay={0.22}>
<div className="pt-1 flex flex-wrap items-center justify-center gap-2 text-xs font-body text-muted">
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-hi/90 border border-rule shadow-2xs">
<Sparkles className="w-3.5 h-3.5 text-accent" />
<span>12 neural models</span>
</span>
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-hi/90 border border-rule shadow-2xs">
<ShieldCheck className="w-3.5 h-3.5 text-emerald-600" />
<span>Zero server storage</span>
</span>
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-hi/90 border border-rule shadow-2xs">
<Zap className="w-3.5 h-3.5 text-amber-500" />
<span>Live comparison sliders</span>
</span>
{isTrustOrPrivacy ? (
<>
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-hi/90 border border-rule shadow-2xs">
<ShieldCheck className="w-3.5 h-3.5 text-emerald-600" />
<span>0-Second server retention</span>
</span>
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-hi/90 border border-rule shadow-2xs">
<Zap className="w-3.5 h-3.5 text-blue-600" />
<span>Volatile RAM only</span>
</span>
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-hi/90 border border-rule shadow-2xs">
<Sparkles className="w-3.5 h-3.5 text-accent" />
<span>Zero AI model training</span>
</span>
</>
) : (
<>
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-hi/90 border border-rule shadow-2xs">
<Sparkles className="w-3.5 h-3.5 text-accent" />
<span>12 neural models</span>
</span>
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-hi/90 border border-rule shadow-2xs">
<ShieldCheck className="w-3.5 h-3.5 text-emerald-600" />
<span>Zero server storage</span>
</span>
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-hi/90 border border-rule shadow-2xs">
<Zap className="w-3.5 h-3.5 text-amber-500" />
<span>Live comparison sliders</span>
</span>
</>
)}
</div>
</BlurFade>
<BlurFade delay={0.26}>
<div className="flex flex-wrap items-center justify-center gap-4 pt-2">
<RainbowButton href="#tools-catalog">
<span>Browse all tools</span>
<ArrowRight className="w-4 h-4 ml-1.5 inline" aria-hidden="true" />
</RainbowButton>
<InteractiveHoverButton text="Mobile apps suite" href="/apps" />
{isTrustOrPrivacy ? (
<>
<RainbowButton href="/tools">
<span>Explore Free AI Tools</span>
<ArrowRight className="w-4 h-4 ml-1.5 inline" aria-hidden="true" />
</RainbowButton>
<InteractiveHoverButton text="View Privacy Policy" href="/privacy" />
</>
) : (
<>
<RainbowButton href="#tools-catalog">
<span>Browse all tools</span>
<ArrowRight className="w-4 h-4 ml-1.5 inline" aria-hidden="true" />
</RainbowButton>
<InteractiveHoverButton text="Mobile apps suite" href="/apps" />
</>
)}
</div>
</BlurFade>
</div>