feat(ui): upgrade design tokens, typography, and animation engine

This commit is contained in:
2026-11-03 12:52:43 +05:30
parent be817fea91
commit 3c9c91efc7
3 changed files with 144 additions and 70 deletions
+88 -47
View File
@@ -4,29 +4,28 @@
@layer base {
:root {
--color-primary: #2563EB;
--color-primary-hover: #1D4ED8;
--color-primary-light: #EFF6FF;
--color-primary-dark: #1E40AF;
--color-accent: #06B6D4;
--color-accent-hover: #0891B2;
--color-accent-light: #ECFEFF;
--color-surface: #FFFFFF;
--color-surface-subtle: #F8FAFC;
--color-surface-dark: #030712;
--color-surface-dark-subtle: #0B0F19;
--theme-radius: 18px;
--theme-max-width: 1360px;
}
.dark {
--color-surface: #030712;
--color-surface-subtle: #0B0F19;
--color-primary: #00F0FF;
--color-primary-hover: #00C8D6;
--color-primary-light: #ECFEFF;
--color-primary-dark: #0891B2;
--color-accent: #7928CA;
--color-accent-hover: #641EB0;
--color-accent-light: #F5EEFD;
--color-surface: #07090E;
--color-surface-subtle: #0B0F17;
--color-surface-card: #111726;
--theme-radius: 20px;
--theme-max-width: 1400px;
}
body {
color: #0F172A;
background-color: #FAFAFC;
color: #F3F4F6;
background-color: #05070B;
background-image:
radial-gradient(circle at 50% 0%, rgba(121, 40, 202, 0.12) 0%, transparent 50%),
radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
radial-gradient(circle at 15% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 45%);
background-attachment: fixed;
font-family: var(--font-sans), system-ui, -apple-system, sans-serif;
overflow-x: hidden;
scroll-behavior: smooth;
@@ -34,38 +33,83 @@
-moz-osx-font-smoothing: grayscale;
}
.dark body {
color: #F1F5F9;
background-color: #030712;
}
h1, h2, h3, h4, .font-display {
font-family: var(--font-display), var(--font-sans), sans-serif;
letter-spacing: -0.025em;
letter-spacing: -0.03em;
}
.font-mono {
font-family: var(--font-mono), monospace;
}
}
/* Glassmorphism & High-tech Panel Helpers */
.glass-panel {
background: rgba(255, 255, 255, 0.75);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(226, 232, 240, 0.8);
}
.dark .glass-panel {
background: rgba(11, 15, 25, 0.75);
/* Neo-Studio Glassmorphism */
.glass-neo {
background: rgba(11, 15, 23, 0.72);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
border: 1px solid rgba(30, 41, 59, 0.7);
border: 1px solid rgba(255, 255, 255, 0.08);
}
/* Subtle Shimmer Effect for Buttons & Badges */
.glass-card {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(11, 15, 23, 0.65);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
border-color: rgba(0, 240, 255, 0.3);
box-shadow: 0 20px 48px -10px rgba(0, 240, 255, 0.15), 0 0 0 1px rgba(0, 240, 255, 0.2);
transform: translateY(-3px);
}
/* Hairline Laser Border Gradient */
.laser-border {
position: relative;
border-radius: inherit;
}
.laser-border::before {
content: '';
position: absolute;
inset: -1px;
border-radius: inherit;
padding: 1px;
background: linear-gradient(90deg, rgba(0, 240, 255, 0.5), rgba(121, 40, 202, 0.5), rgba(255, 0, 128, 0.3));
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
pointer-events: none;
}
/* Chromatic Text Gradients */
.text-gradient-cyan {
background: linear-gradient(135deg, #FFFFFF 20%, #00F0FF 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.text-gradient-brand {
background: linear-gradient(135deg, #FFFFFF 15%, #00F0FF 60%, #7928CA 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.text-gradient-purple {
background: linear-gradient(135deg, #FFFFFF 20%, #C084FC 70%, #7928CA 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Shimmer Animation Effect for Badges & Buttons */
.shimmer-badge {
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.25) 50%,
rgba(255, 255, 255, 0.15) 50%,
rgba(255, 255, 255, 0) 100%
);
background-size: 200% 100%;
@@ -74,19 +118,16 @@
/* Modern Minimalist Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
background: #05070B;
}
::-webkit-scrollbar-thumb {
background: #CBD5E1;
background: rgba(255, 255, 255, 0.15);
border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
background: #1E293B;
}
::-webkit-scrollbar-thumb:hover {
background: #94A3B8;
background: rgba(0, 240, 255, 0.4);
}
+13 -7
View File
@@ -1,5 +1,5 @@
import type { Metadata } from 'next';
import { Plus_Jakarta_Sans, Outfit } from 'next/font/google';
import { Plus_Jakarta_Sans, Outfit, JetBrains_Mono } from 'next/font/google';
import './globals.css';
import { getSiteConfig } from '@/lib/config/loader';
import { Navbar } from '@/components/ui/Navbar';
@@ -17,14 +17,20 @@ const displayFont = Outfit({
display: 'swap',
});
const monoFont = JetBrains_Mono({
subsets: ['latin'],
variable: '--font-mono',
display: 'swap',
});
export async function generateMetadata(): Promise<Metadata> {
const config = getSiteConfig();
return {
title: {
default: `${config.brand.name} | Advanced AI Photo Tools & Creative Tech`,
default: `${config.brand.name} | Next-Gen AI Vision & Creative Tools Studio`,
template: config.seo.titleTemplate || `%s | ${config.brand.name}`,
},
description: 'Commercial-grade neural vision models for instant portrait retouching, hair-strand matting background cutouts, and 4K photo restoration.',
description: 'Commercial-grade neural vision models for sub-pore portrait retouching, hair-strand matting background cutouts, and 4K photo restoration.',
metadataBase: new URL(config.seo.siteUrl || 'http://localhost:3000'),
keywords: [
'CRE Innovations',
@@ -40,13 +46,13 @@ export async function generateMetadata(): Promise<Metadata> {
openGraph: {
type: 'website',
siteName: config.brand.name,
title: `${config.brand.name} | AI Photo Tools`,
title: `${config.brand.name} | Advanced AI Photo Tools`,
description: 'Free online AI photo tools with zero photo retention and native mobile app handoff.',
images: [{ url: '/brand/og-default.png', width: 1200, height: 630, alt: config.brand.name }],
},
twitter: {
card: 'summary_large_image',
title: `${config.brand.name} | AI Photo Tools`,
title: `${config.brand.name} | Advanced AI Photo Tools`,
description: 'Free online AI photo tools with zero storage and native mobile app handoff.',
images: ['/brand/og-default.png'],
},
@@ -74,14 +80,14 @@ export default function RootLayout({
};
return (
<html lang="en" className={`${sansFont.variable} ${displayFont.variable}`}>
<html lang="en" className={`${sansFont.variable} ${displayFont.variable} ${monoFont.variable} dark`}>
<head>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(organizationJsonLd) }}
/>
</head>
<body className="min-h-screen flex flex-col antialiased selection:bg-blue-600 selection:text-white">
<body className="min-h-screen flex flex-col antialiased selection:bg-cyan-500 selection:text-black bg-[#05070B] text-slate-100">
<Navbar config={config} currentLocale="en" />
<main className="flex-1">{children}</main>
<Footer config={config} currentLocale="en" />
+43 -16
View File
@@ -13,38 +13,61 @@ const config: Config = {
fontFamily: {
sans: ["var(--font-sans)", "system-ui", "-apple-system", "sans-serif"],
display: ["var(--font-display)", "var(--font-sans)", "system-ui", "sans-serif"],
mono: ["var(--font-mono)", "monospace"],
},
colors: {
obsidian: {
950: "#030508",
900: "#07090E",
850: "#0B0F17",
800: "#111726",
700: "#1B2436",
600: "#28344D",
},
neon: {
cyan: "#00F0FF",
violet: "#7928CA",
pink: "#FF0080",
emerald: "#10B981",
amber: "#F59E0B",
blue: "#3B82F6",
},
primary: {
DEFAULT: "var(--color-primary, #2563EB)",
hover: "var(--color-primary-hover, #1D4ED8)",
light: "var(--color-primary-light, #EFF6FF)",
dark: "var(--color-primary-dark, #1E40AF)",
DEFAULT: "var(--color-primary, #00F0FF)",
hover: "var(--color-primary-hover, #00C8D6)",
light: "var(--color-primary-light, #ECFEFF)",
dark: "var(--color-primary-dark, #0891B2)",
},
accent: {
DEFAULT: "var(--color-accent, #06B6D4)",
hover: "var(--color-accent-hover, #0891B2)",
light: "var(--color-accent-light, #ECFEFF)",
DEFAULT: "var(--color-accent, #7928CA)",
hover: "var(--color-accent-hover, #641EB0)",
light: "var(--color-accent-light, #F5EEFD)",
},
surface: {
DEFAULT: "var(--color-surface, #FFFFFF)",
subtle: "var(--color-surface-subtle, #F8FAFC)",
dark: "var(--color-surface-dark, #030712)",
darkSubtle: "var(--color-surface-dark-subtle, #0F172A)",
DEFAULT: "var(--color-surface, #07090E)",
subtle: "var(--color-surface-subtle, #0B0F17)",
card: "var(--color-surface-card, #111726)",
},
},
borderRadius: {
theme: "var(--theme-radius, 16px)",
theme: "var(--theme-radius, 20px)",
},
maxWidth: {
theme: "var(--theme-max-width, 1360px)",
theme: "var(--theme-max-width, 1400px)",
},
boxShadow: {
"glow-cyan": "0 0 35px -5px rgba(0, 240, 255, 0.35)",
"glow-violet": "0 0 40px -5px rgba(121, 40, 202, 0.45)",
"glow-emerald": "0 0 35px -5px rgba(16, 185, 129, 0.35)",
"laser-card": "0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 40px -15px rgba(0, 0, 0, 0.7)",
},
animation: {
"pulse-slow": "pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite",
"float": "float 6s ease-in-out infinite",
"shimmer": "shimmer 2.5s linear infinite",
"glow": "glow 3s ease-in-out infinite alternate",
"marquee": "marquee 25s linear infinite",
"marquee": "marquee 30s linear infinite",
"border-glow": "borderGlow 4s ease infinite",
},
keyframes: {
float: {
@@ -56,13 +79,17 @@ const config: Config = {
"100%": { backgroundPosition: "200% 0" },
},
glow: {
"0%": { opacity: "0.4", filter: "blur(20px)" },
"100%": { opacity: "0.8", filter: "blur(35px)" },
"0%": { opacity: "0.35", filter: "blur(20px)" },
"100%": { opacity: "0.85", filter: "blur(40px)" },
},
marquee: {
"0%": { transform: "translateX(0%)" },
"100%": { transform: "translateX(-50%)" },
},
borderGlow: {
"0%, 100%": { borderColor: "rgba(0, 240, 255, 0.4)" },
"50%": { borderColor: "rgba(121, 40, 202, 0.5)" },
},
},
},
},