feat(ui): update typography to Inter, adjust hero headline size, reduce section spacing, and remove how-it-works section

This commit is contained in:
2026-11-16 18:29:09 +05:30
parent d37f3c0a5b
commit d3591ddb11
23 changed files with 128 additions and 123 deletions
+13 -13
View File
@@ -8848,7 +8848,7 @@
"chips": [],
"curl": "",
"desc": "AnimeGAN & Cartoon Effects",
"full_url": "https://apigp0006.creinnovations.in/apis/mlm/cartoon_effects/image/",
"full_url": "https://apigp0006.creinnovations.in/apis/mlm/cartoonify_caricature_effects/image/",
"id": "api-cre-aws-cartoon-model",
"method": "POST",
"params": [
@@ -8879,7 +8879,7 @@
"title": "AnimeGAN & Cartoon Effects"
}
],
"full_url": "https://apigp0006.creinnovations.in/apis/mlm/cartoon_effects/image/",
"full_url": "https://apigp0006.creinnovations.in/apis/mlm/cartoonify_caricature_effects/image/",
"id": "api-cre-aws-cartoon-model",
"method": "POST",
"params": [
@@ -10053,7 +10053,7 @@
},
{
"al": "",
"df": "test_ref",
"df": "ref",
"ds": "Reference identifier or style preset key.",
"lc": "multipart/form-data",
"n": "reference",
@@ -10105,7 +10105,7 @@
},
{
"al": "",
"df": "test_ref",
"df": "ref",
"ds": "Reference identifier or style preset key.",
"lc": "multipart/form-data",
"n": "reference",
@@ -10914,7 +10914,7 @@
"chips": [],
"curl": "curl -X POST \"{{base}}:5925/face_swapper/couple_swap/\" \\\n -F \"[email protected]\" \\\n -F \"[email protected]\" \\\n -F \"reference=value\" \\\n -F \"app_name=value\"",
"desc": "Swaps two source faces onto both persons in a pre-stored couple reference template. Both source images are required. Reference template is loaded from server-side storage.",
"full_url": "https://apigp0006.creinnovations.in/apis/mlm/face_swapper/image/",
"full_url": "https://apigp0006.creinnovations.in/apis/mlm/face_swapper/couple_swap/",
"id": "ml-face-swapper-couple",
"method": "POST",
"params": [
@@ -10938,7 +10938,7 @@
},
{
"al": "",
"df": "test_ref",
"df": "ref",
"ds": "Reference identifier or style preset key.",
"lc": "multipart/form-data",
"n": "reference",
@@ -11009,7 +11009,7 @@
},
{
"al": "",
"df": "test_ref",
"df": "ref",
"ds": "Reference identifier or style preset key.",
"lc": "multipart/form-data",
"n": "reference",
@@ -11158,7 +11158,7 @@
},
{
"al": "",
"df": "test_ref",
"df": "ref",
"ds": "Reference identifier or style preset key.",
"lc": "multipart/form-data",
"n": "reference",
@@ -11458,7 +11458,7 @@
"chips": [],
"curl": "",
"desc": "Trendy AI Stylization Filter",
"full_url": "https://apigp0006.creinnovations.in/apis/mlm/trendy/image/",
"full_url": "https://apigp0006.creinnovations.in/apis/mlm/trendy/go/",
"id": "api-trendy",
"method": "POST",
"params": [
@@ -11482,7 +11482,7 @@
},
{
"al": "",
"df": "None",
"df": "http://127.0.0.1:5925/cartoonify_caricature_effects/",
"ds": "Target base API URL (e.g. `http://127.0.0.1:8005/sdxl/dress_pattern/`).",
"lc": "multipart/form-data",
"n": "api_url",
@@ -11491,7 +11491,7 @@
},
{
"al": "",
"df": "None",
"df": "image/",
"ds": "Target sub-endpoint (e.g. `image/` or `ping`).",
"lc": "multipart/form-data",
"n": "api_endpoint",
@@ -11601,11 +11601,11 @@
"method": "POST",
"params": [
{
"al": "file",
"al": "file, image",
"df": "None",
"ds": "Input photograph of person wearing clothes to replace.",
"lc": "multipart/form-data",
"n": "image",
"n": "original_image",
"rq": true,
"ty": "file (binary)"
},
@@ -20,7 +20,7 @@
"tryIt": {
"enabled": true,
"endpointRef": {
"id": "ml-new-enhancer-previous",
"id": "ml-new-enhancer",
"defaultVariant": "default"
},
"limits": {
-12
View File
@@ -136,18 +136,6 @@
"subtitle": "Dedicated iOS and Android clients for hardware-accelerated offline batch processing."
}
},
{
"id": "how-it-works",
"type": "howItWorks",
"tier": "workflow",
"tierLabel": "Tier 4: Neural Workflow",
"folderPath": "management/pages/home/sections/how-it-works",
"props": {
"badge": "Neural pipeline",
"title": "How the process works",
"subtitle": "Synchronous GPU inference in volatile memory, returning studio-quality exports in seconds."
}
},
{
"id": "community-reviews",
"type": "reviewsMarquee",
-12
View File
@@ -136,18 +136,6 @@
"subtitle": "Dedicated iOS and Android clients for hardware-accelerated offline batch processing."
}
},
{
"id": "how-it-works",
"type": "howItWorks",
"tier": "workflow",
"tierLabel": "Tier 4: Neural Workflow",
"folderPath": "management/pages/home/sections/how-it-works",
"props": {
"badge": "Neural pipeline",
"title": "How the process works",
"subtitle": "Synchronous GPU inference in volatile memory, returning studio-quality exports in seconds."
}
},
{
"id": "community-reviews",
"type": "reviewsMarquee",
+1 -1
View File
@@ -5,7 +5,7 @@ body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
+5 -1
View File
@@ -38,6 +38,10 @@
-webkit-perspective: 1000px !important;
}
.font-poppins, .font-inter {
font-family: var(--font-inter), 'Inter', sans-serif !important;
}
@layer base {
:root {
--color-primary: var(--color-accent);
@@ -101,7 +105,7 @@
outline-offset: 2px;
}
h1, h2, h3, h4, .font-display {
h1, h2, h3, h4, h5, h6, .font-display {
font-family: var(--font-display);
color: var(--color-ink);
letter-spacing: var(--tracking-display);
+1 -1
View File
@@ -15,7 +15,7 @@ const poppinsFont = Poppins({
const interFont = Inter({
subsets: ['latin'],
weight: ['300', '400', '500', '600', '700'],
weight: ['300', '400', '500', '600', '700', '800', '900'],
variable: '--font-inter',
display: 'swap',
});
+1 -1
View File
@@ -16,7 +16,7 @@
--color-gold: oklch(76% 0.16 75);
--color-dot: color-mix(in oklab, var(--color-ink) 10%, transparent); --color-mark: color-mix(in oklab, var(--color-ink) 25%, transparent);
--font-display: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-body: var(--font-inter), "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-outlier: "Geist Mono", monospace;
--radius-card: 24px; --radius-pill: 9999px; --rule-hair: 1px;
--shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(15, 23, 42, 0.05);
+1 -1
View File
@@ -39,7 +39,7 @@ export function VideoText({
fontWeight = 900,
textAnchor = 'start',
dominantBaseline = 'central',
fontFamily = 'var(--font-display), var(--font-poppins), system-ui, sans-serif',
fontFamily = 'var(--font-display), var(--font-inter), system-ui, sans-serif',
poster,
}: VideoTextProps) {
const rawId = useId();
+1 -1
View File
@@ -96,7 +96,7 @@ export function AppPickerSection({
<Icon className="w-5 h-5" />
</div>
<div>
<p className="font-display font-bold text-base text-slate-900">
<p className="font-inter font-bold text-base text-slate-900">
{opt.title}
</p>
<p className="text-xs text-slate-600 mt-1 leading-relaxed font-normal">
+4 -4
View File
@@ -44,10 +44,10 @@ export function FaqSection({
const displayItems = items && items.length > 0 ? items : defaultItems;
return (
<section id="faq" className="py-16 sm:py-24 bg-paper border-b border-rule relative">
<div className="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 space-y-10">
{/* Section Header */}
<div className="space-y-2 border-b border-rule pb-5">
<section id="faq" className="py-8 sm:py-12 bg-paper relative">
<div className="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6">
{/* Section Header without thin separator */}
<div className="space-y-1.5 pb-1">
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
<KineticText>{resolvedTitle}</KineticText>
</h2>
+21 -15
View File
@@ -276,11 +276,16 @@ export function HeroSection({
return (
<section
id="hero-section"
className="relative min-h-[90vh] sm:min-h-screen flex items-center overflow-hidden bg-paper pt-20 sm:pt-24 pb-14 sm:pb-20 lg:pb-24"
className="relative min-h-[80vh] sm:min-h-[85vh] flex items-center overflow-hidden bg-paper pt-16 sm:pt-20 pb-8 sm:pb-12"
>
{/* Background Layer 1: High-Resolution Responsive Background Image */}
<div className="absolute inset-0 z-0 overflow-hidden">
<picture>
<picture
style={{
maskImage: 'linear-gradient(to top, transparent 0%, rgba(0,0,0,0.3) 15%, black 45%)',
WebkitMaskImage: 'linear-gradient(to top, transparent 0%, rgba(0,0,0,0.3) 15%, black 45%)',
}}
>
<source media="(max-width: 768px)" srcSet="/management/pages/home/hero_mobile.webp" type="image/webp" />
<source media="(max-width: 768px)" srcSet="/management/pages/home/hero_mobile.jpg" type="image/jpeg" />
<source srcSet="/management/pages/home/hero_desktop.webp" type="image/webp" />
@@ -300,8 +305,9 @@ export function HeroSection({
<div className="absolute inset-0 bg-gradient-to-r from-paper via-paper/85 via-35% to-transparent to-60% hidden sm:block pointer-events-none" />
{/* Mobile Scrim: Studio porcelain gradient covering headline, subtitle, and action buttons (top 70%), transitioning smoothly into vibrant photography */}
<div className="absolute inset-x-0 top-0 h-[70%] bg-gradient-to-b from-paper from-25% via-paper/92 via-65% to-transparent sm:hidden pointer-events-none" />
{/* Soft Bottom Fade */}
<div className="absolute inset-x-0 bottom-0 h-20 sm:h-24 bg-gradient-to-t from-paper via-paper/85 via-45% to-transparent pointer-events-none" />
{/* Ultra-Deep Soft Bottom Fade: Seamlessly dissolves into pure white/porcelain theme */}
<div className="absolute inset-x-0 bottom-0 h-48 sm:h-72 md:h-96 lg:h-[450px] bg-gradient-to-t from-paper from-15% via-paper/95 via-40% via-paper/60 via-70% to-transparent to-100% pointer-events-none" />
<div className="absolute inset-x-0 bottom-0 h-24 sm:h-36 bg-gradient-to-t from-paper to-paper/90 pointer-events-none" />
</div>
{/* Background Layer 2: Magic UI Atmospheric Light Rays */}
@@ -314,8 +320,8 @@ export function HeroSection({
/>
{/* Content Container (Website Introduction, Visual Hierarchy, Kinetic Motion) */}
<div className="relative z-10 max-w-[1720px] w-full mx-auto px-4 sm:px-8 lg:px-14 flex flex-col justify-center min-h-[85vh] sm:min-h-[90vh]">
<div className="max-w-2xl sm:max-w-3xl lg:max-w-4xl space-y-6 sm:space-y-8 text-center sm:text-left mx-auto sm:mx-0">
<div className="relative z-10 max-w-[1720px] w-full mx-auto px-4 sm:px-8 lg:px-14 flex flex-col justify-center min-h-[75vh] sm:min-h-[80vh]">
<div className="max-w-2xl sm:max-w-3xl lg:max-w-4xl space-y-4 sm:space-y-6 text-center sm:text-left mx-auto sm:mx-0">
{/* Masterpiece 3-Line Headline:
Line 1: Imagine. -> Magic UI TextAnimate on first, AnimatedShinyText on hover
@@ -324,26 +330,26 @@ export function HeroSection({
<div className="space-y-0.5 sm:space-y-1">
<h1 className="sr-only">Imagine. Transform. Create Impossible.</h1>
{/* Line 1 - Imagine. with Magic UI TextAnimate (black) -> AnimatedShinyText on hover */}
<div className="text-4xl sm:text-6xl md:text-7xl lg:text-8xl font-display font-black tracking-tight leading-[1.22] sm:leading-[1.18] pb-2 sm:pb-3 block overflow-visible">
{/* Line 1 - Imagine. */}
<div className="text-3xl sm:text-5xl md:text-6xl lg:text-7xl font-display font-black tracking-tight leading-[1.2] sm:leading-[1.15] pb-1.5 sm:pb-2 block overflow-visible">
<HeroHeadlineItem text="Imagine." delay={0.08} />
</div>
{/* Line 2 - Transform. with Magic UI TextAnimate (black) -> AnimatedShinyText on hover */}
<div className="text-4xl sm:text-6xl md:text-7xl lg:text-8xl font-display font-black tracking-tight leading-[1.22] sm:leading-[1.18] pb-2 sm:pb-3 block overflow-visible">
{/* Line 2 - Transform. */}
<div className="text-3xl sm:text-5xl md:text-6xl lg:text-7xl font-display font-black tracking-tight leading-[1.2] sm:leading-[1.15] pb-1.5 sm:pb-2 block overflow-visible">
<HeroHeadlineItem text="Transform." delay={0.28} />
</div>
{/* Line 3 - Create Impossible: Simple bluish-purple accent text */}
<div className="text-4xl sm:text-6xl md:text-7xl lg:text-8xl font-display font-extrabold tracking-tight bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600 bg-clip-text text-transparent leading-[1.22] sm:leading-[1.18] pt-1 block overflow-visible">
{/* Line 3 - Create Impossible */}
<div className="text-3xl sm:text-5xl md:text-6xl lg:text-7xl font-display font-extrabold tracking-tight bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600 bg-clip-text text-transparent leading-[1.2] sm:leading-[1.15] pt-0.5 block overflow-visible">
Create Impossible
</div>
</div>
{/* Subtitle */}
{/* Subtitle - reduced by 1 */}
<BlurFade delay={0.16}>
<div className="space-y-4 max-w-xl mx-auto sm:mx-0">
<p className="text-base sm:text-xl md:text-2xl text-ink-2 font-body font-normal leading-relaxed text-pretty">
<div className="space-y-3 max-w-xl mx-auto sm:mx-0">
<p className="text-sm sm:text-lg md:text-xl text-ink-2 font-body font-normal leading-relaxed text-pretty">
Turn ordinary moments into extraordinary visual art. Instant and private photo transformation right in your browser with hardware acceleration.
</p>
</div>
@@ -134,7 +134,7 @@ export function RecommendedAppsSection({
return (
<section
id="recommended-apps"
className="py-16 sm:py-24 px-4 sm:px-6 md:px-8 lg:px-10 bg-paper border-b border-rule relative overflow-hidden"
className="py-8 sm:py-12 px-4 sm:px-6 md:px-8 lg:px-10 bg-paper relative overflow-hidden"
>
{/* Studio Lighting Ambient Glow */}
<div
@@ -146,9 +146,9 @@ export function RecommendedAppsSection({
aria-hidden="true"
/>
<div className="max-w-container mx-auto space-y-10 relative z-10">
{/* Section Header */}
<div className="max-w-2xl space-y-2 border-b border-rule pb-5">
<div className="max-w-container mx-auto space-y-6 relative z-10">
{/* Section Header without thin separator */}
<div className="max-w-2xl space-y-1.5 pb-1">
<div className="flex items-center gap-2">
<span className="w-2 h-2 rounded-full bg-accent animate-pulse" aria-hidden="true" />
<span className="text-xs font-semibold text-accent font-body">
@@ -137,7 +137,7 @@ export function ReviewsMarqueeSection({
return (
<section
id="user-reviews"
className="py-16 sm:py-24 bg-paper border-b border-rule relative overflow-hidden"
className="py-8 sm:py-12 bg-paper relative overflow-hidden"
>
{/* Studio Lighting Ambient Glow */}
<div
@@ -149,9 +149,9 @@ export function ReviewsMarqueeSection({
aria-hidden="true"
/>
<div className="max-w-container mx-auto px-4 sm:px-6 md:px-8 lg:px-10 space-y-10 relative z-10">
{/* Section Header */}
<div className="max-w-2xl space-y-2 border-b border-rule pb-5">
<div className="max-w-container mx-auto px-4 sm:px-6 md:px-8 lg:px-10 space-y-6 relative z-10">
{/* Section Header without thin separator */}
<div className="max-w-2xl space-y-1.5 pb-1">
<div className="flex items-center gap-2">
<span className="w-2 h-2 rounded-full bg-accent animate-pulse" aria-hidden="true" />
<span className="text-xs font-semibold text-accent font-body">
@@ -106,7 +106,7 @@ export function ShiftableToolsGridSection({
const row2 = displayItems.slice(4, 8);
return (
<section id="our-tools" className="py-16 sm:py-24 px-4 sm:px-6 md:px-8 lg:px-10 bg-paper border-b border-rule relative overflow-hidden">
<section id="our-tools" className="py-8 sm:py-12 px-4 sm:px-6 md:px-8 lg:px-10 bg-paper relative overflow-hidden">
{/* Studio Lighting Ambient Glow */}
<div
className="pointer-events-none absolute top-10 left-10 w-[550px] h-[350px] [background:radial-gradient(circle_at_center,color-mix(in_oklab,var(--color-accent)_10%,transparent)_0%,transparent_70%)]"
@@ -121,9 +121,9 @@ export function ShiftableToolsGridSection({
aria-hidden="true"
/>
<div className="max-w-container mx-auto space-y-10 relative z-10">
{/* Section Header - Clean editorial layout with kinetic typography */}
<div className="max-w-2xl space-y-2 border-b border-rule pb-5">
<div className="max-w-container mx-auto space-y-6 relative z-10">
{/* Section Header - Clean editorial layout without thin separator */}
<div className="max-w-2xl space-y-1.5 pb-1">
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
<KineticText>{title}</KineticText>
</h2>
+27 -27
View File
@@ -812,18 +812,18 @@ export function ToolGridSection({
<aside
onScroll={() => setHoveredCategory(null)}
onMouseLeave={() => setHoveredCategory(null)}
className="hidden lg:flex flex-col justify-between w-56 xl:w-60 shrink-0 border-r border-rule bg-paper-hi sticky top-[73px] h-[calc(100vh-73px)] overflow-y-auto no-scrollbar p-3.5 xl:p-4 z-20"
className="hidden lg:flex flex-col justify-between w-56 xl:w-60 shrink-0 border-r border-rule bg-paper-hi sticky top-[73px] h-[calc(100vh-73px)] overflow-y-auto no-scrollbar p-3.5 xl:p-4 z-20 font-inter"
>
{/* Top: Header, Search, Categories Nav */}
<div className="space-y-4">
<div className="space-y-3.5">
{/* Categories Header */}
<div className="pb-2.5 border-b border-rule flex items-center justify-between">
<h2 className="text-xs font-bold text-slate-800 font-sans tracking-tight uppercase">
<div className="pb-2 flex items-center justify-between">
<h2 className="text-xs font-bold text-slate-800 font-inter tracking-tight uppercase">
Categories
</h2>
<span className="text-[10px] font-mono text-slate-400 font-semibold">{tools.length} tools</span>
<span className="text-[10px] font-inter text-slate-400 font-semibold">{tools.length} tools</span>
</div>
{/* Instant Search Bar with shortcut hint */}
@@ -835,7 +835,7 @@ export function ToolGridSection({
placeholder="Search tools..."
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
className="w-full pl-8 pr-7 py-2 rounded-lg text-xs border border-slate-200 bg-white text-slate-900 placeholder:text-slate-400 focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/20 shadow-2xs font-sans transition-colors"
className="w-full pl-8 pr-7 py-2 rounded-lg text-xs border border-slate-200 bg-white text-slate-900 placeholder:text-slate-400 focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/20 shadow-2xs font-inter transition-colors"
/>
{searchQuery ? (
<button
@@ -855,7 +855,7 @@ export function ToolGridSection({
{/* Categories Navigation */}
<div className="space-y-1.5">
<div className="flex items-center justify-between px-1 font-sans">
<div className="flex items-center justify-between px-1 font-inter">
<span className="text-[10px] font-bold text-slate-400 uppercase tracking-wider">Workspaces</span>
{(selectedCategory !== 'all' || searchQuery) && (
<button
@@ -864,7 +864,7 @@ export function ToolGridSection({
setSearchQuery('');
setHoveredCategory(null);
}}
className="inline-flex items-center gap-1 text-[11px] font-semibold text-accent hover:underline cursor-pointer lowercase"
className="inline-flex items-center gap-1 text-[11px] font-semibold text-accent hover:underline cursor-pointer lowercase font-inter"
>
<RotateCcw className="w-2.5 h-2.5" />
<span>reset</span>
@@ -891,7 +891,7 @@ export function ToolGridSection({
});
}}
onMouseLeave={() => setHoveredCategory(null)}
className={`w-full flex items-center justify-between px-2.5 py-1.5 rounded-lg text-xs font-sans transition-all duration-150 cursor-pointer ${
className={`w-full flex items-center justify-between px-2.5 py-1.5 rounded-lg text-xs font-inter transition-all duration-150 cursor-pointer ${
selectedCategory === 'all' && !searchQuery
? 'bg-slate-900 text-white shadow-xs font-semibold'
: 'bg-transparent text-slate-700 hover:bg-slate-100 hover:text-slate-950 font-medium'
@@ -912,7 +912,7 @@ export function ToolGridSection({
<span className="truncate">All Studio Tools</span>
</div>
<span
className={`text-[10px] font-mono px-1.5 py-0.5 rounded font-bold shrink-0 ${
className={`text-[10px] font-inter px-1.5 py-0.5 rounded font-bold shrink-0 ${
selectedCategory === 'all' && !searchQuery
? 'bg-white/20 text-white'
: 'bg-slate-100 text-slate-600'
@@ -949,7 +949,7 @@ export function ToolGridSection({
});
}}
onMouseLeave={() => setHoveredCategory(null)}
className={`w-full flex items-center justify-between px-2.5 py-1.5 rounded-lg text-xs font-sans transition-all duration-150 cursor-pointer ${
className={`w-full flex items-center justify-between px-2.5 py-1.5 rounded-lg text-xs font-inter transition-all duration-150 cursor-pointer ${
isSelected
? 'bg-slate-900 text-white shadow-xs font-semibold'
: 'bg-transparent text-slate-700 hover:bg-slate-100 hover:text-slate-950 font-medium'
@@ -968,7 +968,7 @@ export function ToolGridSection({
<span className="truncate">{catName}</span>
</div>
<span
className={`text-[10px] font-mono px-1.5 py-0.5 rounded font-bold shrink-0 ${
className={`text-[10px] font-inter px-1.5 py-0.5 rounded font-bold shrink-0 ${
isSelected
? 'bg-white/20 text-white'
: 'bg-slate-100 text-slate-600'
@@ -988,7 +988,7 @@ export function ToolGridSection({
<div className="pt-3 border-t border-rule space-y-2">
<Link
href="/apps"
className="w-full inline-flex items-center justify-between px-2.5 py-2 rounded-lg text-xs font-sans font-medium text-slate-700 bg-slate-100/80 hover:bg-slate-900 hover:text-white transition-colors duration-150 group shadow-2xs"
className="w-full inline-flex items-center justify-between px-2.5 py-2 rounded-lg text-xs font-inter font-medium text-slate-700 bg-slate-100/80 hover:bg-slate-900 hover:text-white transition-colors duration-150 group shadow-2xs"
>
<div className="flex items-center gap-1.5">
<Smartphone className="w-3.5 h-3.5 text-accent group-hover:text-white" />
@@ -1006,7 +1006,7 @@ export function ToolGridSection({
========================================================================= */}
{hoveredCategory && (
<div
className="fixed z-50 pointer-events-none px-3 py-1.5 rounded-lg bg-slate-900/95 backdrop-blur-md text-white text-xs font-sans font-medium shadow-xl border border-slate-700/80 flex items-center gap-2.5 transition-opacity duration-150 animate-in fade-in-0 zoom-in-95"
className="fixed z-50 pointer-events-none px-3 py-1.5 rounded-lg bg-slate-900/95 backdrop-blur-md text-white text-xs font-inter font-medium shadow-xl border border-slate-700/80 flex items-center gap-2.5 transition-opacity duration-150 animate-in fade-in-0 zoom-in-95"
style={{
top: `${hoveredCategory.top}px`,
left: `${hoveredCategory.left}px`,
@@ -1016,10 +1016,10 @@ export function ToolGridSection({
>
{/* Subtle pointer arrow pointing left toward the sidebar category */}
<div className="absolute -left-1.5 top-1/2 -translate-y-1/2 w-2.5 h-2.5 bg-slate-900 rotate-45 border-l border-b border-slate-700/80" />
<span className="font-semibold tracking-tight text-white whitespace-nowrap">
<span className="font-semibold tracking-tight text-white whitespace-nowrap font-inter">
{hoveredCategory.name}
</span>
<span className="text-[10px] font-mono text-slate-300 bg-slate-800 px-1.5 py-0.5 rounded font-bold border border-slate-700/60 whitespace-nowrap">
<span className="text-[10px] font-inter text-slate-300 bg-slate-800 px-1.5 py-0.5 rounded font-bold border border-slate-700/60 whitespace-nowrap">
{hoveredCategory.count} {hoveredCategory.count === 1 ? 'tool' : 'tools'}
</span>
</div>
@@ -1028,15 +1028,15 @@ export function ToolGridSection({
{/* =========================================================================
RIGHT MAIN STUDIO WORKSPACE (SPACIOUS 4-COLUMN CARDS GALLERY)
========================================================================= */}
<div className="flex-1 min-w-0 px-4 sm:px-6 xl:px-8 py-8 xl:py-10 space-y-10 relative z-10">
<div className="flex-1 min-w-0 px-4 sm:px-6 xl:px-8 py-5 xl:py-6 space-y-6 relative z-10">
{/* ================= MOBILE FILTER HEADER (< lg) ================= */}
<div className="lg:hidden space-y-3 pb-4 border-b border-rule">
<div className="lg:hidden space-y-3 pb-3 font-inter">
<div className="flex items-center justify-between">
<span className="text-sm font-bold text-slate-900 font-sans">
<span className="text-sm font-bold text-slate-900 font-inter">
Categories
</span>
<span className="text-xs font-medium text-slate-500 font-sans">
<span className="text-xs font-medium text-slate-500 font-inter">
{tools.length} tools
</span>
</div>
@@ -1049,7 +1049,7 @@ export function ToolGridSection({
placeholder="Search studio tools..."
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
className="w-full pl-9 pr-8 py-2.5 rounded-xl text-xs sm:text-sm border border-slate-200 bg-white text-slate-900 placeholder:text-slate-400 focus:outline-none focus:border-accent focus:ring-2 focus:ring-accent/20 shadow-2xs font-sans transition-colors"
className="w-full pl-9 pr-8 py-2.5 rounded-xl text-xs sm:text-sm border border-slate-200 bg-white text-slate-900 placeholder:text-slate-400 focus:outline-none focus:border-accent focus:ring-2 focus:ring-accent/20 shadow-2xs font-inter transition-colors"
/>
{searchQuery && (
<button
@@ -1067,7 +1067,7 @@ export function ToolGridSection({
<button
type="button"
onClick={() => handleSelectCategory('all')}
className={`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-sans font-semibold shrink-0 transition-colors ${
className={`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-inter font-semibold shrink-0 transition-colors ${
selectedCategory === 'all' && !searchQuery
? 'bg-slate-900 text-white shadow-xs'
: 'bg-white text-slate-800 border border-slate-200 hover:text-slate-950'
@@ -1088,7 +1088,7 @@ export function ToolGridSection({
key={group.id}
type="button"
onClick={() => handleSelectCategory(group.id)}
className={`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-sans font-semibold shrink-0 transition-colors ${
className={`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-inter font-semibold shrink-0 transition-colors ${
isSelected
? 'bg-slate-900 text-white shadow-xs'
: 'bg-white text-slate-800 border border-slate-200 hover:text-slate-950'
@@ -1108,7 +1108,7 @@ export function ToolGridSection({
</div>
{/* ================= INTEGRATED STUDIO HEADER ================= */}
<div className="space-y-4 border-b border-rule pb-8">
<div className="space-y-2.5 pb-2">
{/* Breadcrumb row */}
<div className="flex items-center gap-2 text-xs font-sans text-slate-500">
<span>Studio Directory</span>
@@ -1237,7 +1237,7 @@ export function ToolGridSection({
</div>
) : (
/* ================= CATEGORIZED TOOLS GALLERY (2 ROWS PER CATEGORY + SEE MORE) ================= */
<div className="space-y-12 sm:space-y-16">
<div className="space-y-6 sm:space-y-8">
{/* Displayed Categories */}
{categorizedTools.map((group) => {
const theme = CATEGORY_THEMES[group.id];
@@ -1254,10 +1254,10 @@ export function ToolGridSection({
<div
key={group.id}
id={`category-${group.id}`}
className="space-y-6 scroll-mt-28"
className="space-y-3.5 scroll-mt-24"
>
{/* Section Category Header */}
<div className="flex flex-col sm:flex-row sm:items-end justify-between gap-3 pb-4 border-b border-rule">
<div className="flex flex-col sm:flex-row sm:items-end justify-between gap-2.5 pb-1.5">
<div className="flex items-center gap-3.5">
<div className="w-11 h-11 rounded-2xl flex items-center justify-center bg-paper-hi shadow-xs border border-rule shrink-0">
{theme?.largeIcon || theme?.icon || <LayoutGrid className="w-6 h-6 text-slate-700" />}
@@ -112,7 +112,7 @@ export function TrendyBentoSection({
const tiles = INITIAL_TILES;
return (
<section id="trendy-effects" className="py-16 sm:py-24 px-4 sm:px-6 md:px-8 lg:px-10 bg-paper border-b border-rule relative overflow-hidden">
<section id="trendy-effects" className="py-8 sm:py-12 px-4 sm:px-6 md:px-8 lg:px-10 bg-paper relative overflow-hidden">
{/* Studio Lighting Ambient Glow */}
<div
className="pointer-events-none absolute bottom-0 right-1/4 w-[500px] h-[350px] [background:radial-gradient(circle_at_center,color-mix(in_oklab,var(--color-accent)_10%,transparent)_0%,transparent_70%)]"
@@ -123,9 +123,9 @@ export function TrendyBentoSection({
aria-hidden="true"
/>
<div className="max-w-container mx-auto space-y-10 relative z-10">
{/* Header with Kinetic Text Animation */}
<div className="max-w-2xl space-y-2 border-b border-rule pb-5">
<div className="max-w-container mx-auto space-y-6 relative z-10">
{/* Header without thin separator */}
<div className="max-w-2xl space-y-1.5 pb-1">
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
<KineticText>{title}</KineticText>
</h2>
@@ -524,7 +524,7 @@ export function DynamicToolWorkspace({
<button
type="button"
onClick={handleDownloadResult}
className="w-full sm:w-auto inline-flex items-center justify-center gap-3 px-8 sm:px-12 py-4 rounded-2xl sm:rounded-full bg-ink hover:bg-slate-900 text-paper-hi font-display font-bold text-sm sm:text-base shadow-xl hover:scale-[1.02] active:scale-98 transition-all cursor-pointer order-1 sm:order-2"
className="w-full sm:w-auto inline-flex items-center justify-center gap-3 px-8 sm:px-12 py-4 rounded-2xl sm:rounded-full bg-ink hover:bg-slate-900 text-paper-hi font-inter font-bold text-sm sm:text-base shadow-xl hover:scale-[1.02] active:scale-98 transition-all cursor-pointer order-1 sm:order-2"
>
<Download className="w-5 h-5 text-accent" />
<span>Download Result (HD PNG)</span>
@@ -815,7 +815,7 @@ export function DynamicToolWorkspace({
type="button"
onClick={handleExecute}
disabled={status === 'processing' || remainingTries <= 0}
className="w-full sm:w-auto inline-flex items-center justify-center gap-3 px-8 sm:px-10 py-4 rounded-2xl sm:rounded-full bg-accent hover:bg-accent-hi text-white font-display font-extrabold text-sm sm:text-base shadow-xl shadow-accent/25 hover:shadow-accent/40 hover:scale-[1.02] active:scale-98 transition-all cursor-pointer disabled:opacity-50 disabled:hover:scale-100"
className="w-full sm:w-auto inline-flex items-center justify-center gap-3 px-8 sm:px-10 py-4 rounded-2xl sm:rounded-full bg-accent hover:bg-accent-hi text-white font-inter font-extrabold text-sm sm:text-base shadow-xl shadow-accent/25 hover:shadow-accent/40 hover:scale-[1.02] active:scale-98 transition-all cursor-pointer disabled:opacity-50 disabled:hover:scale-100"
>
{status === 'processing' ? (
<>
@@ -867,7 +867,7 @@ export function DynamicToolWorkspace({
<div className="min-h-screen bg-paper">
{/* ================= HERO SECTION ================= */}
<section className="relative pt-6 sm:pt-10 pb-12 sm:pb-16 bg-paper border-b border-rule overflow-hidden">
<section className="relative pt-6 sm:pt-8 pb-8 sm:pb-10 bg-paper overflow-hidden">
{/* Ambient Radial Spotlight */}
<div
className="pointer-events-none absolute top-0 left-1/2 -translate-x-1/2 w-[900px] h-[400px] [background:radial-gradient(ellipse_at_top,color-mix(in_oklab,var(--color-accent)_12%,transparent)_0%,transparent_70%)]"
@@ -902,18 +902,18 @@ export function DynamicToolWorkspace({
<div id="studio-upload-box" className="lg:col-span-6 bg-paper-hi border border-rule rounded-3xl p-6 sm:p-8 shadow-sheet relative overflow-hidden">
<BorderBeam size={120} duration={10} borderWidth={1.5} colorFrom="var(--color-accent)" colorTo="var(--color-accent-hi)" />
<div className="border-b border-rule pb-3.5 mb-6 flex items-center justify-between">
<div className="pb-2.5 mb-4 flex items-center justify-between">
<span className="text-sm font-bold font-sans text-slate-900">
{pageType === 'text-to-image' ? 'Generate AI Image' : 'Select Photo to Edit'}
</span>
</div>
{/* Dynamic Upload Input by Type */}
<div className="space-y-6">
<div className="space-y-4">
{/* Style Thumbnail Selector on Landing Card (Before-Upload / Both) */}
{tool.thumbnails && tool.thumbnails.length > 0 && tool.thumbnailPlacement !== 'after-upload' && (
<div className="space-y-3 pb-4 border-b border-rule/60">
<div className="space-y-2.5 pb-2">
<div className="flex items-center justify-between text-xs sm:text-sm font-sans">
<span className="font-semibold text-slate-900">1. Select Effect Style</span>
{selectedThumbnail && (
@@ -1133,7 +1133,7 @@ export function DynamicToolWorkspace({
window.scrollTo({ top: 0, behavior: 'smooth' });
}
}}
className="w-full py-4 rounded-2xl bg-accent hover:bg-accent-hi text-white font-display font-bold text-sm shadow-md hover:shadow-lg transition-all cursor-pointer flex items-center justify-center gap-2.5"
className="w-full py-4 rounded-2xl bg-accent hover:bg-accent-hi text-white font-inter font-bold text-sm shadow-md hover:shadow-lg transition-all cursor-pointer flex items-center justify-center gap-2.5"
>
<Sparkles className="w-4 h-4 text-amber-300" />
<span>
@@ -1188,7 +1188,7 @@ export function DynamicToolWorkspace({
}
}}
disabled={!promptText.trim()}
className="w-full py-4 rounded-2xl bg-accent hover:bg-accent-hi disabled:opacity-50 text-white font-display font-bold text-sm shadow-md hover:shadow-lg transition-all cursor-pointer flex items-center justify-center gap-2.5"
className="w-full py-4 rounded-2xl bg-accent hover:bg-accent-hi disabled:opacity-50 text-white font-inter font-bold text-sm shadow-md hover:shadow-lg transition-all cursor-pointer flex items-center justify-center gap-2.5"
>
<Sparkles className="w-4 h-4 text-amber-300" />
<span>Open Creation Studio</span>
@@ -1275,7 +1275,7 @@ export function DynamicToolWorkspace({
key={idx}
className="studio-sheet p-5 rounded-2xl bg-paper-hi border border-rule shadow-xs space-y-2.5"
>
<div className="w-9 h-9 rounded-xl bg-slate-900 text-white flex items-center justify-center font-display font-bold text-xs">
<div className="w-9 h-9 rounded-xl bg-slate-900 text-white flex items-center justify-center font-inter font-bold text-xs">
0{idx + 1}
</div>
<h3 className="text-sm sm:text-base font-display font-bold text-ink">
+2 -2
View File
@@ -68,10 +68,10 @@ export function BrandLogo({
{showWordmark && (
<div className="flex flex-col text-left">
<div className="flex items-baseline gap-1.5 leading-none">
<span className={`font-display font-bold text-ink ${iconDimensions.title}`}>
<span className={`font-inter font-bold text-ink ${iconDimensions.title}`}>
CRE
</span>
<span className={`font-display font-normal text-ink-2 ${iconDimensions.title}`}>
<span className={`font-inter font-normal text-ink-2 ${iconDimensions.title}`}>
Innovations
</span>
</div>
+6
View File
@@ -92,6 +92,12 @@ export async function executeBackendTryIt(
const backendBase = new URL(envBackendUrl);
parsed.protocol = backendBase.protocol;
parsed.host = backendBase.host;
for (const pfx of ['/apis/mlm', '/apis/flxf', '/apis/flxk', '/apis/lxds', '/apis/cmf']) {
if (parsed.pathname.startsWith(pfx)) {
parsed.pathname = parsed.pathname.substring(pfx.length);
break;
}
}
targetUrl = parsed.toString();
} catch {
// Keep original targetUrl
+2 -2
View File
@@ -58,7 +58,7 @@ export function getAllTools(): ToolItem[] {
const files = fs.readdirSync(toolsDir).filter((f) => f.endsWith('.json'));
for (const file of files) {
const tool = readJsonFile<ToolItem>(path.join(toolsDir, file));
if (tool && tool.status === 'published') {
if (tool && tool.status !== 'archived') {
toolsCache.set(tool.slug, tool);
}
}
@@ -72,7 +72,7 @@ export function getAllTools(): ToolItem[] {
const configPath = path.join(mgmtToolsDir, slug, 'tool.config.json');
if (fs.existsSync(configPath)) {
const mgmtTool = readJsonFile<any>(configPath);
if (mgmtTool && mgmtTool.status === 'published') {
if (mgmtTool && mgmtTool.status !== 'archived') {
// Normalize media paths so before/after point to live management media
if (mgmtTool.media?.before && mgmtTool.content?.examples?.[0]) {
mgmtTool.content.examples[0].before = mgmtTool.media.before;
+11
View File
@@ -49,6 +49,17 @@ export async function verifyTurnstileToken(
};
}
// Support Cloudflare Turnstile official dummy test keys for local development/testing without network dependency
if (
secretKey === '1x0000000000000000000000000000000AA' &&
(token === '1x00000000000000000000AA' || token === 'XXXX.DUMMY.TOKEN.XXXX')
) {
return {
success: true,
message: 'Cloudflare test key verification passed.',
};
}
try {
const formData = new URLSearchParams();
formData.append('secret', secretKey);
+6 -4
View File
@@ -12,10 +12,12 @@ const config: Config = {
theme: {
extend: {
fontFamily: {
display: ["var(--font-display)", "Hedvig Letters Serif", "Georgia", "serif"],
body: ["var(--font-body)", "Geist", "ui-sans-serif", "system-ui", "sans-serif"],
sans: ["var(--font-body)", "Geist", "ui-sans-serif", "system-ui", "sans-serif"],
mono: ["var(--font-mono)", "ui-monospace", "monospace"],
display: ["var(--font-display)", "Geist", "-apple-system", "BlinkMacSystemFont", "system-ui", "sans-serif"],
body: ["var(--font-inter)", "Inter", "-apple-system", "BlinkMacSystemFont", "system-ui", "sans-serif"],
sans: ["var(--font-inter)", "Inter", "-apple-system", "BlinkMacSystemFont", "system-ui", "sans-serif"],
inter: ["var(--font-inter)", "Inter", "-apple-system", "BlinkMacSystemFont", "sans-serif"],
mono: ["var(--font-inter)", "Inter", "ui-monospace", "monospace"],
poppins: ["var(--font-inter)", "Inter", "sans-serif"],
},
colors: {
paper: "var(--color-paper)",