feat: implement management folder architecture, hover-only tool sliders, grain transform animation, and prominent upload studio
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Metadata } from 'next';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { getAllApps, getAppBySlug, getAllTools, getTemplate } from '@/lib/config/loader';
|
||||
import { getAllApps, getAppBySlug, getAllTools, getTemplate, getSiteConfig } from '@/lib/config/loader';
|
||||
import { SectionRenderer } from '@/components/sections/SectionRenderer';
|
||||
import { resolveLocalised } from '@/types';
|
||||
|
||||
@@ -55,6 +55,7 @@ export default function AppDetailPage({ params }: AppPageProps) {
|
||||
|
||||
const appName = resolveLocalised(app.name, 'en');
|
||||
const appTagline = resolveLocalised(app.tagline, 'en');
|
||||
const siteUrl = (process.env.SITE_URL || getSiteConfig().seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
|
||||
|
||||
// Structured Data (JSON-LD) per PRD §10 SEO-07
|
||||
const structuredData = [
|
||||
@@ -83,19 +84,19 @@ export default function AppDetailPage({ params }: AppPageProps) {
|
||||
'@type': 'ListItem',
|
||||
position: 1,
|
||||
name: 'Home',
|
||||
item: 'http://localhost:3000',
|
||||
item: siteUrl,
|
||||
},
|
||||
{
|
||||
'@type': 'ListItem',
|
||||
position: 2,
|
||||
name: 'Apps',
|
||||
item: 'http://localhost:3000/apps',
|
||||
item: `${siteUrl}/apps`,
|
||||
},
|
||||
{
|
||||
'@type': 'ListItem',
|
||||
position: 3,
|
||||
name: appName,
|
||||
item: `http://localhost:3000/apps/${app.slug}`,
|
||||
item: `${siteUrl}/apps/${app.slug}`,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
+112
-43
@@ -3,23 +3,6 @@
|
||||
@tailwind utilities;
|
||||
|
||||
@layer base {
|
||||
/* Lenis Ultra-Smooth Fluid Scroll */
|
||||
html.lenis, html.lenis body {
|
||||
height: auto;
|
||||
}
|
||||
.lenis.lenis-smooth {
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
.lenis.lenis-smooth [data-lenis-prevent] {
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
.lenis.lenis-stopped {
|
||||
overflow: hidden;
|
||||
}
|
||||
.lenis.lenis-scrolling iframe {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--color-primary-hover: #1D4ED8;
|
||||
@@ -43,9 +26,9 @@
|
||||
radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
|
||||
radial-gradient(circle at 90% 25%, rgba(2, 132, 199, 0.04) 0%, transparent 50%),
|
||||
radial-gradient(circle at 10% 75%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
|
||||
background-attachment: fixed;
|
||||
background-attachment: scroll;
|
||||
font-family: var(--font-sans), system-ui, -apple-system, sans-serif;
|
||||
overflow-x: hidden;
|
||||
overflow-x: clip;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
@@ -78,15 +61,8 @@
|
||||
/* Authentic True Liquid Glass Capsule with High Refraction & Specular Gloss */
|
||||
.liquid-glass-nav {
|
||||
position: relative;
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(255, 255, 255, 0.48) 0%,
|
||||
rgba(250, 248, 245, 0.32) 50%,
|
||||
rgba(255, 255, 255, 0.42) 100%
|
||||
);
|
||||
backdrop-filter: blur(16px) saturate(190%) contrast(104%) brightness(1.04);
|
||||
-webkit-backdrop-filter: blur(16px) saturate(190%) contrast(104%) brightness(1.04);
|
||||
border: 1px solid rgba(255, 255, 255, 0.65);
|
||||
background: rgba(255, 255, 255, 0.96);
|
||||
border: 1px solid rgba(15, 23, 42, 0.08);
|
||||
box-shadow:
|
||||
/* Razor-sharp 1px top specular ridge */
|
||||
inset 0 1px 0 0 rgba(255, 255, 255, 0.85),
|
||||
@@ -99,12 +75,7 @@
|
||||
}
|
||||
|
||||
.liquid-glass-nav.nav-scrolled {
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(255, 255, 255, 0.58) 0%,
|
||||
rgba(250, 248, 245, 0.42) 50%,
|
||||
rgba(255, 255, 255, 0.52) 100%
|
||||
);
|
||||
background: rgba(255, 255, 255, 0.99);
|
||||
box-shadow:
|
||||
inset 0 1px 0 0 rgba(255, 255, 255, 0.95),
|
||||
inset 0 -1px 0 0 rgba(255, 255, 255, 0.25),
|
||||
@@ -162,14 +133,8 @@
|
||||
/* Liquid Glass Mobile Dropdown */
|
||||
.liquid-glass-dropdown {
|
||||
position: relative;
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(255, 255, 255, 0.72) 0%,
|
||||
rgba(250, 248, 245, 0.85) 100%
|
||||
);
|
||||
backdrop-filter: blur(16px) saturate(200%) brightness(1.06);
|
||||
-webkit-backdrop-filter: blur(16px) saturate(200%) brightness(1.06);
|
||||
border: 1px solid rgba(255, 255, 255, 0.85);
|
||||
background: #fff;
|
||||
border: 1px solid rgba(15, 23, 42, 0.1);
|
||||
box-shadow:
|
||||
inset 0 2px 1px rgba(255, 255, 255, 1),
|
||||
inset 0 0 20px rgba(255, 255, 255, 0.35),
|
||||
@@ -376,7 +341,7 @@ body, h1, h2, h3, h4, p, span, button {
|
||||
h1, h2, h3, h4, h5, h6, .text-3d-chiseled {
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-shadow: 0 1px 1px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
/* Crisp Stat Numbers */
|
||||
@@ -427,6 +392,99 @@ h1, h2, h3, h4, h5, h6, .text-3d-chiseled {
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.section-shell[data-revealed="true"] {
|
||||
animation: section-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
|
||||
}
|
||||
|
||||
@keyframes section-enter {
|
||||
from { opacity: 0.7; transform: translateY(10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
@keyframes neural-sweep {
|
||||
0% { transform: translateX(-120%); opacity: 0; }
|
||||
25% { opacity: 0.75; }
|
||||
75% { opacity: 0.75; }
|
||||
100% { transform: translateX(650%); opacity: 0; }
|
||||
}
|
||||
|
||||
.animate-neural-sweep {
|
||||
animation: neural-sweep 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
||||
}
|
||||
|
||||
@supports (content-visibility: auto) {
|
||||
.section-shell:not(.section-shell--hero) {
|
||||
content-visibility: auto;
|
||||
contain-intrinsic-size: auto 760px;
|
||||
}
|
||||
}
|
||||
|
||||
.skip-link {
|
||||
position: fixed;
|
||||
top: 0.75rem;
|
||||
left: 50%;
|
||||
z-index: 100;
|
||||
transform: translate(-50%, -180%);
|
||||
border-radius: 9999px;
|
||||
background: #0f172a;
|
||||
padding: 0.7rem 1rem;
|
||||
color: #fff;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 700;
|
||||
transition: transform 180ms ease;
|
||||
}
|
||||
|
||||
.skip-link:focus { transform: translate(-50%, 0); }
|
||||
|
||||
.eyebrow {
|
||||
color: #1d4ed8;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.14em;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.button-primary,
|
||||
.button-secondary {
|
||||
display: inline-flex;
|
||||
min-height: 2.75rem;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
border-radius: 9999px;
|
||||
padding: 0.65rem 1rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
|
||||
}
|
||||
|
||||
.button-primary { background: #0f172a; color: #fff; box-shadow: 0 8px 18px -10px rgba(15, 23, 42, 0.45); }
|
||||
.button-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
|
||||
.button-secondary { border: 1px solid rgba(15, 23, 42, 0.14); background: #fff; color: #334155; }
|
||||
.button-secondary:hover { border-color: rgba(15, 23, 42, 0.3); background: #f8fafc; transform: translateY(-1px); }
|
||||
|
||||
.media-label {
|
||||
position: absolute;
|
||||
bottom: 0.5rem;
|
||||
border-radius: 0.35rem;
|
||||
background: rgba(15, 23, 42, 0.82);
|
||||
padding: 0.2rem 0.4rem;
|
||||
color: #fff;
|
||||
font-size: 0.625rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.cinematic-rail {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #cbd5e1 transparent;
|
||||
overscroll-behavior-inline: contain;
|
||||
}
|
||||
|
||||
.tool-filter-rail { scrollbar-width: none; }
|
||||
.tool-filter-rail::-webkit-scrollbar { display: none; }
|
||||
|
||||
::selection {
|
||||
color: #fff;
|
||||
background: #315fcb;
|
||||
@@ -443,4 +501,15 @@ h1, h2, h3, h4, h5, h6, .text-3d-chiseled {
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
body { background-image: none; }
|
||||
.liquid-glass-nav { box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.22); }
|
||||
.section-shell[data-revealed="true"] { animation: none; }
|
||||
.perspective-800, .perspective-1000, .perspective-1400 { perspective: none; }
|
||||
}
|
||||
|
||||
@media (hover: none) {
|
||||
.glass-card:hover, .button-primary:hover, .button-secondary:hover { transform: none; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
+8
-8
@@ -4,8 +4,6 @@ import './globals.css';
|
||||
import { getSiteConfig } from '@/lib/config/loader';
|
||||
import { Navbar } from '@/components/ui/Navbar';
|
||||
import { Footer } from '@/components/ui/Footer';
|
||||
import { CursorAura } from '@/components/ui/CursorAura';
|
||||
import { SmoothScroll } from '@/components/ui/SmoothScroll';
|
||||
|
||||
const sansFont = Plus_Jakarta_Sans({
|
||||
subsets: ['latin'],
|
||||
@@ -27,13 +25,14 @@ const monoFont = JetBrains_Mono({
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const config = getSiteConfig();
|
||||
const siteUrl = process.env.SITE_URL || config.seo.siteUrl || 'http://localhost:3000';
|
||||
return {
|
||||
title: {
|
||||
default: `${config.brand.name} | Advanced AI Vision & Creative Tools Studio`,
|
||||
template: config.seo.titleTemplate || `%s | ${config.brand.name}`,
|
||||
},
|
||||
description: 'Advanced 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(siteUrl),
|
||||
keywords: [
|
||||
'CRE Innovations',
|
||||
'AI photo editor',
|
||||
@@ -58,6 +57,7 @@ export async function generateMetadata(): Promise<Metadata> {
|
||||
description: 'Free online AI photo tools with zero storage and native mobile app handoff.',
|
||||
images: ['/brand/og-default.png'],
|
||||
},
|
||||
robots: { index: true, follow: true },
|
||||
};
|
||||
}
|
||||
|
||||
@@ -67,14 +67,15 @@ export default function RootLayout({
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const config = getSiteConfig();
|
||||
const siteUrl = process.env.SITE_URL || config.seo.siteUrl || 'http://localhost:3000';
|
||||
|
||||
// Root Schema.org JSON-LD for Organization & WebSite
|
||||
const organizationJsonLd = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'Organization',
|
||||
name: config.brand.name,
|
||||
url: config.seo.siteUrl || 'http://localhost:3000',
|
||||
logo: `${config.seo.siteUrl || 'http://localhost:3000'}/brand/logo.svg`,
|
||||
url: siteUrl,
|
||||
logo: `${siteUrl}/brand/logo.svg`,
|
||||
sameAs: [
|
||||
'https://play.google.com/store/apps/dev?id=creinnovations',
|
||||
'https://apps.apple.com/developer/creinnovations',
|
||||
@@ -90,10 +91,9 @@ export default function RootLayout({
|
||||
/>
|
||||
</head>
|
||||
<body className="min-h-screen flex flex-col antialiased selection:bg-blue-600 selection:text-white bg-[#FAF8F5] text-slate-900 relative">
|
||||
<SmoothScroll />
|
||||
<CursorAura />
|
||||
<a href="#main-content" className="skip-link">Skip to main content</a>
|
||||
<Navbar config={config} currentLocale="en" />
|
||||
<main className="flex-1">{children}</main>
|
||||
<main id="main-content" className="flex-1">{children}</main>
|
||||
<Footer config={config} currentLocale="en" />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+4
-3
@@ -1,4 +1,4 @@
|
||||
import { getPageConfig, getAllTools, getAllApps, getAllCategories, getToolById, getAppById } from '@/lib/config/loader';
|
||||
import { getPageConfig, getAllTools, getAllApps, getAllCategories, getToolById, getAppById, getSiteConfig } from '@/lib/config/loader';
|
||||
import { getEndpointById } from '@/lib/catalog/loader';
|
||||
import { SectionRenderer } from '@/components/sections/SectionRenderer';
|
||||
import { notFound } from 'next/navigation';
|
||||
@@ -12,6 +12,7 @@ export default function HomePage() {
|
||||
const tools = getAllTools();
|
||||
const apps = getAllApps();
|
||||
const categories = getAllCategories();
|
||||
const siteUrl = (process.env.SITE_URL || getSiteConfig().seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
|
||||
|
||||
// Find hero tool and variants
|
||||
const heroTool = getToolById('face.blemish.remove') || tools[0];
|
||||
@@ -39,10 +40,10 @@ export default function HomePage() {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'WebSite',
|
||||
name: 'CRE Innovations',
|
||||
url: 'http://localhost:3000',
|
||||
url: siteUrl,
|
||||
potentialAction: {
|
||||
'@type': 'SearchAction',
|
||||
target: 'http://localhost:3000/tools?q={search_term_string}',
|
||||
target: `${siteUrl}/tools?q={search_term_string}`,
|
||||
'query-input': 'required name=search_term_string',
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Metadata } from 'next';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { getAllTools, getToolBySlug, getAppById, getTemplate } from '@/lib/config/loader';
|
||||
import { getAllTools, getToolBySlug, getAppById, getTemplate, getSiteConfig } from '@/lib/config/loader';
|
||||
import { getEndpointById } from '@/lib/catalog/loader';
|
||||
import { SectionRenderer } from '@/components/sections/SectionRenderer';
|
||||
import { resolveLocalised } from '@/types';
|
||||
@@ -70,7 +70,8 @@ export default function ToolDetailPage({ params }: ToolPageProps) {
|
||||
|
||||
const toolName = resolveLocalised(tool.name, 'en');
|
||||
const toolSummary = resolveLocalised(tool.summary, 'en');
|
||||
const exampleImg = tool.content?.examples?.[0]?.after || 'http://localhost:3000/brand/og-default.png';
|
||||
const siteUrl = (process.env.SITE_URL || getSiteConfig().seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
|
||||
const exampleImg = tool.content?.examples?.[0]?.after || `${siteUrl}/brand/og-default.png`;
|
||||
|
||||
// Structured Data (JSON-LD) for WebApplication and Breadcrumbs per PRD §10 SEO-07
|
||||
const structuredData = [
|
||||
@@ -96,19 +97,19 @@ export default function ToolDetailPage({ params }: ToolPageProps) {
|
||||
'@type': 'ListItem',
|
||||
position: 1,
|
||||
name: 'Home',
|
||||
item: 'http://localhost:3000',
|
||||
item: siteUrl,
|
||||
},
|
||||
{
|
||||
'@type': 'ListItem',
|
||||
position: 2,
|
||||
name: 'Tools',
|
||||
item: 'http://localhost:3000/tools',
|
||||
item: `${siteUrl}/tools`,
|
||||
},
|
||||
{
|
||||
'@type': 'ListItem',
|
||||
position: 3,
|
||||
name: toolName,
|
||||
item: `http://localhost:3000/tools/${tool.slug}`,
|
||||
item: `${siteUrl}/tools/${tool.slug}`,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user