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 { @layer base {
:root { :root {
--color-primary: #2563EB; --color-primary: #00F0FF;
--color-primary-hover: #1D4ED8; --color-primary-hover: #00C8D6;
--color-primary-light: #EFF6FF; --color-primary-light: #ECFEFF;
--color-primary-dark: #1E40AF; --color-primary-dark: #0891B2;
--color-accent: #06B6D4; --color-accent: #7928CA;
--color-accent-hover: #0891B2; --color-accent-hover: #641EB0;
--color-accent-light: #ECFEFF; --color-accent-light: #F5EEFD;
--color-surface: #FFFFFF; --color-surface: #07090E;
--color-surface-subtle: #F8FAFC; --color-surface-subtle: #0B0F17;
--color-surface-dark: #030712; --color-surface-card: #111726;
--color-surface-dark-subtle: #0B0F19; --theme-radius: 20px;
--theme-radius: 18px; --theme-max-width: 1400px;
--theme-max-width: 1360px;
}
.dark {
--color-surface: #030712;
--color-surface-subtle: #0B0F19;
} }
body { body {
color: #0F172A; color: #F3F4F6;
background-color: #FAFAFC; 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; font-family: var(--font-sans), system-ui, -apple-system, sans-serif;
overflow-x: hidden; overflow-x: hidden;
scroll-behavior: smooth; scroll-behavior: smooth;
@@ -34,38 +33,83 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.dark body {
color: #F1F5F9;
background-color: #030712;
}
h1, h2, h3, h4, .font-display { h1, h2, h3, h4, .font-display {
font-family: var(--font-display), var(--font-sans), sans-serif; 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 */ /* Neo-Studio Glassmorphism */
.glass-panel { .glass-neo {
background: rgba(255, 255, 255, 0.75); background: rgba(11, 15, 23, 0.72);
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);
backdrop-filter: blur(24px); backdrop-filter: blur(24px);
-webkit-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 { .shimmer-badge {
background: linear-gradient( background: linear-gradient(
90deg, 90deg,
rgba(255, 255, 255, 0) 0%, 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% rgba(255, 255, 255, 0) 100%
); );
background-size: 200% 100%; background-size: 200% 100%;
@@ -74,19 +118,16 @@
/* Modern Minimalist Scrollbar */ /* Modern Minimalist Scrollbar */
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 8px; width: 6px;
height: 8px; height: 6px;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background: transparent; background: #05070B;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: #CBD5E1; background: rgba(255, 255, 255, 0.15);
border-radius: 9999px; border-radius: 9999px;
} }
.dark ::-webkit-scrollbar-thumb {
background: #1E293B;
}
::-webkit-scrollbar-thumb:hover { ::-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 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 './globals.css';
import { getSiteConfig } from '@/lib/config/loader'; import { getSiteConfig } from '@/lib/config/loader';
import { Navbar } from '@/components/ui/Navbar'; import { Navbar } from '@/components/ui/Navbar';
@@ -17,14 +17,20 @@ const displayFont = Outfit({
display: 'swap', display: 'swap',
}); });
const monoFont = JetBrains_Mono({
subsets: ['latin'],
variable: '--font-mono',
display: 'swap',
});
export async function generateMetadata(): Promise<Metadata> { export async function generateMetadata(): Promise<Metadata> {
const config = getSiteConfig(); const config = getSiteConfig();
return { return {
title: { 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}`, 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'), metadataBase: new URL(config.seo.siteUrl || 'http://localhost:3000'),
keywords: [ keywords: [
'CRE Innovations', 'CRE Innovations',
@@ -40,13 +46,13 @@ export async function generateMetadata(): Promise<Metadata> {
openGraph: { openGraph: {
type: 'website', type: 'website',
siteName: config.brand.name, 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.', 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 }], images: [{ url: '/brand/og-default.png', width: 1200, height: 630, alt: config.brand.name }],
}, },
twitter: { twitter: {
card: 'summary_large_image', 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.', description: 'Free online AI photo tools with zero storage and native mobile app handoff.',
images: ['/brand/og-default.png'], images: ['/brand/og-default.png'],
}, },
@@ -74,14 +80,14 @@ export default function RootLayout({
}; };
return ( return (
<html lang="en" className={`${sansFont.variable} ${displayFont.variable}`}> <html lang="en" className={`${sansFont.variable} ${displayFont.variable} ${monoFont.variable} dark`}>
<head> <head>
<script <script
type="application/ld+json" type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(organizationJsonLd) }} dangerouslySetInnerHTML={{ __html: JSON.stringify(organizationJsonLd) }}
/> />
</head> </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" /> <Navbar config={config} currentLocale="en" />
<main className="flex-1">{children}</main> <main className="flex-1">{children}</main>
<Footer config={config} currentLocale="en" /> <Footer config={config} currentLocale="en" />
+43 -16
View File
@@ -13,38 +13,61 @@ const config: Config = {
fontFamily: { fontFamily: {
sans: ["var(--font-sans)", "system-ui", "-apple-system", "sans-serif"], sans: ["var(--font-sans)", "system-ui", "-apple-system", "sans-serif"],
display: ["var(--font-display)", "var(--font-sans)", "system-ui", "sans-serif"], display: ["var(--font-display)", "var(--font-sans)", "system-ui", "sans-serif"],
mono: ["var(--font-mono)", "monospace"],
}, },
colors: { 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: { primary: {
DEFAULT: "var(--color-primary, #2563EB)", DEFAULT: "var(--color-primary, #00F0FF)",
hover: "var(--color-primary-hover, #1D4ED8)", hover: "var(--color-primary-hover, #00C8D6)",
light: "var(--color-primary-light, #EFF6FF)", light: "var(--color-primary-light, #ECFEFF)",
dark: "var(--color-primary-dark, #1E40AF)", dark: "var(--color-primary-dark, #0891B2)",
}, },
accent: { accent: {
DEFAULT: "var(--color-accent, #06B6D4)", DEFAULT: "var(--color-accent, #7928CA)",
hover: "var(--color-accent-hover, #0891B2)", hover: "var(--color-accent-hover, #641EB0)",
light: "var(--color-accent-light, #ECFEFF)", light: "var(--color-accent-light, #F5EEFD)",
}, },
surface: { surface: {
DEFAULT: "var(--color-surface, #FFFFFF)", DEFAULT: "var(--color-surface, #07090E)",
subtle: "var(--color-surface-subtle, #F8FAFC)", subtle: "var(--color-surface-subtle, #0B0F17)",
dark: "var(--color-surface-dark, #030712)", card: "var(--color-surface-card, #111726)",
darkSubtle: "var(--color-surface-dark-subtle, #0F172A)",
}, },
}, },
borderRadius: { borderRadius: {
theme: "var(--theme-radius, 16px)", theme: "var(--theme-radius, 20px)",
}, },
maxWidth: { 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: { animation: {
"pulse-slow": "pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite", "pulse-slow": "pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite",
"float": "float 6s ease-in-out infinite", "float": "float 6s ease-in-out infinite",
"shimmer": "shimmer 2.5s linear infinite", "shimmer": "shimmer 2.5s linear infinite",
"glow": "glow 3s ease-in-out infinite alternate", "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: { keyframes: {
float: { float: {
@@ -56,13 +79,17 @@ const config: Config = {
"100%": { backgroundPosition: "200% 0" }, "100%": { backgroundPosition: "200% 0" },
}, },
glow: { glow: {
"0%": { opacity: "0.4", filter: "blur(20px)" }, "0%": { opacity: "0.35", filter: "blur(20px)" },
"100%": { opacity: "0.8", filter: "blur(35px)" }, "100%": { opacity: "0.85", filter: "blur(40px)" },
}, },
marquee: { marquee: {
"0%": { transform: "translateX(0%)" }, "0%": { transform: "translateX(0%)" },
"100%": { transform: "translateX(-50%)" }, "100%": { transform: "translateX(-50%)" },
}, },
borderGlow: {
"0%, 100%": { borderColor: "rgba(0, 240, 255, 0.4)" },
"50%": { borderColor: "rgba(121, 40, 202, 0.5)" },
},
}, },
}, },
}, },