diff --git a/content/pages/home.json b/content/pages/home.json index 88ef6f0..adb3c03 100644 --- a/content/pages/home.json +++ b/content/pages/home.json @@ -120,7 +120,7 @@ "folderPath": "management/pages/home/sections/trendy-bento", "props": { "badge": "Model capabilities", - "title": "Specialized capabilities", + "title": "Trendy features", "subtitle": "Computer vision models engineered for professional photographers and studios." } }, diff --git a/content/pages/tools.json b/content/pages/tools.json index 45686b5..0881f00 100644 --- a/content/pages/tools.json +++ b/content/pages/tools.json @@ -8,47 +8,22 @@ "indexable": true }, "sections": [ - { - "id": "tools-header", - "type": "hero", - "variant": "centered", - "props": { - "title": { - "en": "All Free Online AI Photo Tools", - "hi": "सभी निःशुल्क ऑनलाइन एआई फोटो टूल्स" - }, - "subtitle": { - "en": "Select any tool to try instantly in your browser. No sign-up required. Download the full mobile app for 4K batch processing.", - "hi": "ब्राउज़र में तुरंत आज़माने के लिए कोई भी टूल चुनें। कोई साइन-अप आवश्यक नहीं है।" - } - } - }, { "id": "all-tools-grid", "type": "toolGrid", "props": { + "title": { + "en": "AI Photo & Vision Tools Studio", + "hi": "एआई फोटो और विज़न टूल्स स्टूडियो" + }, + "subtitle": { + "en": "Client-side neural vision models running directly in volatile GPU memory with zero retention. Test interactive before/after sliders or export in native 4K.", + "hi": "ब्राउज़र में तुरंत आज़माने के लिए कोई भी टूल चुनें। कोई साइन-अप आवश्यक नहीं है।" + }, "source": "all", "showCategoryFilter": true, "showSearch": true, - "columns": 3 - } - }, - { - "id": "tools-cta", - "type": "ctaBanner", - "props": { - "title": { - "en": "Need Batch Processing or 4K Lossless Export?", - "hi": "बैच प्रोसेसिंग या 4K एक्सपोर्ट चाहिए?" - }, - "subtitle": { - "en": "Each tool connects directly to its dedicated mobile app with advanced brush tools and unlimited processing.", - "hi": "प्रत्येक टूल सीधे अपने समर्पित मोबाइल ऐप से जुड़ता है।" - }, - "primaryCta": { - "label": { "en": "View Mobile Apps", "hi": "मोबाइल ऐप देखें" }, - "href": "/apps" - } + "columns": 2 } } ] diff --git a/management/pages/home/page.config.json b/management/pages/home/page.config.json index 88ef6f0..adb3c03 100644 --- a/management/pages/home/page.config.json +++ b/management/pages/home/page.config.json @@ -120,7 +120,7 @@ "folderPath": "management/pages/home/sections/trendy-bento", "props": { "badge": "Model capabilities", - "title": "Specialized capabilities", + "title": "Trendy features", "subtitle": "Computer vision models engineered for professional photographers and studios." } }, diff --git a/management/pages/tools/page.config.json b/management/pages/tools/page.config.json index 74c5bf1..0881f00 100644 --- a/management/pages/tools/page.config.json +++ b/management/pages/tools/page.config.json @@ -8,51 +8,23 @@ "indexable": true }, "sections": [ - { - "id": "tools-header", - "type": "hero", - "variant": "centered", - "props": { - "title": { - "en": "All Free Online AI Photo Tools", - "hi": "\u0938\u092d\u0940 \u0928\u093f\u0903\u0936\u0941\u0932\u094d\u0915 \u0911\u0928\u0932\u093e\u0907\u0928 \u090f\u0906\u0908 \u092b\u094b\u091f\u094b \u091f\u0942\u0932\u094d\u0938" - }, - "subtitle": { - "en": "Select any tool to try instantly in your browser. No sign-up required. Download the full mobile app for 4K batch processing.", - "hi": "\u092c\u094d\u0930\u093e\u0909\u091c\u093c\u0930 \u092e\u0947\u0902 \u0924\u0941\u0930\u0902\u0924 \u0906\u091c\u093c\u092e\u093e\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0915\u094b\u0908 \u092d\u0940 \u091f\u0942\u0932 \u091a\u0941\u0928\u0947\u0902\u0964 \u0915\u094b\u0908 \u0938\u093e\u0907\u0928-\u0905\u092a \u0906\u0935\u0936\u094d\u092f\u0915 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964" - } - } - }, { "id": "all-tools-grid", "type": "toolGrid", "props": { + "title": { + "en": "AI Photo & Vision Tools Studio", + "hi": "एआई फोटो और विज़न टूल्स स्टूडियो" + }, + "subtitle": { + "en": "Client-side neural vision models running directly in volatile GPU memory with zero retention. Test interactive before/after sliders or export in native 4K.", + "hi": "ब्राउज़र में तुरंत आज़माने के लिए कोई भी टूल चुनें। कोई साइन-अप आवश्यक नहीं है।" + }, "source": "all", "showCategoryFilter": true, "showSearch": true, - "columns": 3 - } - }, - { - "id": "tools-cta", - "type": "ctaBanner", - "props": { - "title": { - "en": "Need Batch Processing or 4K Lossless Export?", - "hi": "\u092c\u0948\u091a \u092a\u094d\u0930\u094b\u0938\u0947\u0938\u093f\u0902\u0917 \u092f\u093e 4K \u090f\u0915\u094d\u0938\u092a\u094b\u0930\u094d\u091f \u091a\u093e\u0939\u093f\u090f?" - }, - "subtitle": { - "en": "Each tool connects directly to its dedicated mobile app with advanced brush tools and unlimited processing.", - "hi": "\u092a\u094d\u0930\u0924\u094d\u092f\u0947\u0915 \u091f\u0942\u0932 \u0938\u0940\u0927\u0947 \u0905\u092a\u0928\u0947 \u0938\u092e\u0930\u094d\u092a\u093f\u0924 \u092e\u094b\u092c\u093e\u0907\u0932 \u0910\u092a \u0938\u0947 \u091c\u0941\u0921\u093c\u0924\u093e \u0939\u0948\u0964" - }, - "primaryCta": { - "label": { - "en": "View Mobile Apps", - "hi": "\u092e\u094b\u092c\u093e\u0907\u0932 \u0910\u092a \u0926\u0947\u0916\u0947\u0902" - }, - "href": "/apps" - } + "columns": 2 } } ] -} \ No newline at end of file +} diff --git a/src/app/globals.css b/src/app/globals.css index 931f949..6816bb1 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,15 +1,43 @@ -/* Hallmark · shape: Narrative Workflow (draw cf1b96) · genre: editorial · theme: Studio (deal 1/3, seed photo-editing-tools-web-9d55·b0c4e30f·2026-11-06·r0) · redesign: full - * hero: Counter · nav: banner over a retracting bar · footer: statement · imagery: photographs · signature: crop-marked before-after studio loupe - * axes: light/roman-serif/warm · posture: restrained · contrast: pass · fold: pass · v2.0.0 */ -/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4 · weakest: V, photo tools often default to generic dark neon; took cool studio-white proof paper with cadmium orange */ +/* Hallmark · shape: Narrative Workflow (draw cf1b96) · genre: atmospheric · theme: Porcelain Light (deal 1/3, seed photo-editing-tools-web-9d55·b0c4e30f·2026-11-06·r0) · redesign: full + * hero: Banner · nav: floating pill on blur · footer: statement · imagery: photographs · signature: radiant optical aperture + * axes: light/sans/warm-studio · posture: restrained · contrast: pass · fold: pass · v2.0.0 */ +/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 · elegant porcelain cream light studio with sapphire and indigo accents, smooth rounded pill geometry */ @import url("./tokens.css"); @import url("./base.css"); -@import url("https://fonts.googleapis.com/css2?family=Hedvig+Letters+Serif:opsz@12..24&family=Geist:wght@300;400;500;600;700&display=swap"); +@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500&display=swap"); @tailwind base; @tailwind components; @tailwind utilities; +@keyframes rainbow-move { + 0% { + background-position: 0% 50%; + } + 50% { + background-position: 100% 50%; + } + 100% { + background-position: 0% 50%; + } +} + +/* 3D Perspective and Backface Visibility for Magic UI Text 3D Flip */ +.backface-hidden { + backface-visibility: hidden !important; + -webkit-backface-visibility: hidden !important; +} + +.preserve-3d { + transform-style: preserve-3d !important; + -webkit-transform-style: preserve-3d !important; +} + +.perspective-1000 { + perspective: 1000px !important; + -webkit-perspective: 1000px !important; +} + @layer base { :root { --color-primary: var(--color-accent); @@ -18,7 +46,7 @@ --color-surface: var(--color-paper); --color-surface-subtle: var(--color-paper-2); --color-surface-card: var(--color-paper-hi); - --theme-radius: 3px; + --theme-radius: 24px; --theme-max-width: 1440px; --font-sans: var(--font-body); --font-serif: var(--font-display); @@ -77,57 +105,52 @@ font-family: var(--font-display); color: var(--color-ink); letter-spacing: var(--tracking-display); - font-weight: var(--display-weight, 400); + font-weight: var(--display-weight, 700); font-synthesis: none; overflow-wrap: break-word; min-width: 0; } } -/* Studio Theme Components & Craft Rules */ +/* Magic UI Smooth Cursor: Transform native cursor into custom cursor on desktop */ +@media (min-width: 769px) { + html.custom-cursor-active, + html.custom-cursor-active *, + html.custom-cursor-active *::before, + html.custom-cursor-active *::after { + cursor: none !important; + } + + html.custom-cursor-active input, + html.custom-cursor-active textarea, + html.custom-cursor-active select { + cursor: text !important; + } +} + +/* Studio Proof Grid: Fine dot matrix on porcelain paper */ .studio-proof-grid { background-image: radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 0); background-size: 24px 24px; } -/* Crop marks for tactile proof sheet framing */ -.crop-marked { - position: relative; -} - -.crop-marked::before { - content: ""; - position: absolute; - inset: -6px; - pointer-events: none; - background: - linear-gradient(to right, var(--color-mark) 1px, transparent 1px) 0 0 / 12px 1px no-repeat, - linear-gradient(to bottom, var(--color-mark) 1px, transparent 1px) 0 0 / 1px 12px no-repeat, - linear-gradient(to left, var(--color-mark) 1px, transparent 1px) 100% 0 / 12px 1px no-repeat, - linear-gradient(to bottom, var(--color-mark) 1px, transparent 1px) 100% 0 / 1px 12px no-repeat, - linear-gradient(to right, var(--color-mark) 1px, transparent 1px) 0 100% / 12px 1px no-repeat, - linear-gradient(to top, var(--color-mark) 1px, transparent 1px) 0 100% / 1px 12px no-repeat, - linear-gradient(to left, var(--color-mark) 1px, transparent 1px) 100% 100% / 12px 1px no-repeat, - linear-gradient(to top, var(--color-mark) 1px, transparent 1px) 100% 100% / 1px 12px no-repeat; - z-index: 2; -} - -/* Clean sheet container */ +/* Clean, soft luxury studio sheet container (NO SHARP EDGES) */ .studio-sheet { background: var(--color-paper-hi); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); box-shadow: var(--shadow-sheet); - transition-property: border-color, box-shadow; + transition-property: border-color, box-shadow, transform; transition-duration: var(--dur-short); transition-timing-function: var(--ease-out); } .studio-sheet:hover { - border-color: color-mix(in oklab, var(--color-ink) 25%, var(--color-rule)); + border-color: color-mix(in oklab, var(--color-accent) 40%, var(--color-rule)); + box-shadow: var(--shadow-glow); } -/* Buttons adhering to Floor rule 1, 2, 7a, 10a */ +/* Primary Action Button (Fluid rounded pill, glowing accent) */ .btn-primary { display: inline-flex; align-items: center; @@ -136,14 +159,15 @@ padding: var(--space-sm) var(--space-lg); font-family: var(--font-body); font-size: var(--text-sm); - font-weight: 500; + font-weight: 600; color: var(--color-accent-ink); background-color: var(--color-accent); border: var(--rule-hair) solid var(--color-accent); border-radius: var(--radius-pill); cursor: pointer; text-decoration: none; - transition-property: background-color, border-color, transform; + box-shadow: 0 10px 24px -6px color-mix(in oklab, var(--color-accent) 40%, transparent); + transition-property: background-color, border-color, transform, box-shadow; transition-duration: var(--dur-micro); transition-timing-function: var(--ease-out); } @@ -152,6 +176,7 @@ background-color: var(--color-accent-hi); border-color: var(--color-accent-hi); transform: translateY(-1px); + box-shadow: 0 14px 28px -6px color-mix(in oklab, var(--color-accent) 50%, transparent); } .btn-primary:active, @@ -169,6 +194,7 @@ button:disabled, transform: none; } +/* Secondary Button (Frosted porcelain pill) */ .btn-secondary { display: inline-flex; align-items: center; @@ -177,13 +203,14 @@ button:disabled, padding: var(--space-sm) var(--space-lg); font-family: var(--font-body); font-size: var(--text-sm); - font-weight: 500; + font-weight: 600; color: var(--color-ink); background-color: var(--color-paper-hi); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); cursor: pointer; text-decoration: none; + box-shadow: var(--shadow-card); transition-property: background-color, border-color, transform; transition-duration: var(--dur-micro); transition-timing-function: var(--ease-out); @@ -191,11 +218,11 @@ button:disabled, .btn-secondary:hover { background-color: var(--color-paper-2); - border-color: var(--color-ink-2); + border-color: var(--color-rule-2); transform: translateY(-1px); } -/* Labels adhering to Gate 9 & Gate 67: body face, smaller, sentence case, untracked */ +/* Studio Label (sentence case, body face, clean untracked) */ .studio-label { font-family: var(--font-body); font-size: var(--text-xs); @@ -216,7 +243,7 @@ button:disabled, font-size: var(--text-sm); font-weight: 500; z-index: var(--z-tooltip); - border-radius: var(--radius-card); + border-radius: var(--radius-pill); text-decoration: none; transition-property: top; transition-duration: var(--dur-short); @@ -225,3 +252,276 @@ button:disabled, .skip-link:focus { top: var(--space-md); } + +/* Magic UI Marquee Keyframes & Animations */ +@keyframes marquee { + from { + transform: translateX(0); + } + to { + transform: translateX(calc(-100% - var(--gap))); + } +} + +@keyframes marquee-vertical { + from { + transform: translateY(0); + } + to { + transform: translateY(calc(-100% - var(--gap))); + } +} + +.animate-marquee { + animation: marquee var(--duration) linear infinite; + will-change: transform; + transform: translateZ(0); +} + +.animate-marquee-vertical { + animation: marquee-vertical var(--duration) linear infinite; + will-change: transform; + transform: translateZ(0); +} + +/* Neural Scanning Line for How It Works Pipeline (Pure GPU Transform — Zero CPU Reflow) */ +@keyframes scanline { + 0% { + transform: translateY(4px); + opacity: 0.5; + } + 50% { + transform: translateY(172px); + opacity: 1; + } + 100% { + transform: translateY(4px); + opacity: 0.5; + } +} + +.animate-scanline { + animation: scanline 2.8s ease-in-out infinite; + will-change: transform; + transform: translateZ(0); +} + +/* Traveling Data Beam across Step Cards (GPU Accelerated) */ +@keyframes beam-pulse { + 0% { + transform: translateX(-100%) translateZ(0); + opacity: 0; + } + 20% { + opacity: 1; + } + 80% { + opacity: 1; + } + 100% { + transform: translateX(300%) translateZ(0); + opacity: 0; + } +} + +.animate-beam-pulse { + animation: beam-pulse 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite; + will-change: transform; + transform: translateZ(0); +} + +/* Magic UI Animated Shiny Text Keyframe — Sweeps specular band from left to right across text */ +@keyframes shiny-text { + 0% { + background-position: 130% 0; + } + 100% { + background-position: -30% 0; + } +} + +.animate-shiny-text { + animation: shiny-text 1.8s ease-in-out infinite; +} + +.studio-shiny-hover { + display: inline-block; + width: fit-content; + cursor: pointer; + user-select: none; + color: var(--color-ink); + -webkit-text-fill-color: currentColor; + background-image: none !important; + background-clip: unset !important; + -webkit-background-clip: unset !important; + padding-bottom: 0.25em; + margin-bottom: -0.25em; + overflow: visible; +} + +/* Desktop Pointer Devices: Shimmer activates exclusively on mouse hover */ +@media (hover: hover) and (pointer: fine) { + .studio-shiny-hover:hover, + .studio-shiny-hover.animate-shiny-text { + background-clip: text !important; + -webkit-background-clip: text !important; + -webkit-text-fill-color: transparent !important; + background-image: linear-gradient( + 110deg, + var(--color-ink) 0%, + var(--color-ink) 35%, + #2563eb 45%, + #ffffff 50%, + #38bdf8 55%, + var(--color-ink) 65%, + var(--color-ink) 100% + ) !important; + background-size: 200% 125% !important; + animation: shiny-text 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important; + } +} + +/* Touchscreens & Mobile Phones: Never activate transparent text clipping on tap/touch */ +@media (hover: none), (pointer: coarse) { + .studio-shiny-hover, + .studio-shiny-hover:hover, + .studio-shiny-hover:active, + .studio-shiny-hover:focus { + color: var(--color-ink) !important; + -webkit-text-fill-color: currentColor !important; + background-image: none !important; + background-clip: unset !important; + -webkit-background-clip: unset !important; + animation: none !important; + } +} + +.studio-shiny-always { + animation: shiny-text 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important; +} + +.studio-shiny-always { + display: inline-block; + width: fit-content; + user-select: none; + background-clip: text !important; + -webkit-background-clip: text !important; + -webkit-text-fill-color: transparent !important; + background-image: linear-gradient( + 110deg, + var(--color-ink) 0%, + var(--color-ink) 35%, + #2563eb 45%, + #ffffff 50%, + #38bdf8 55%, + var(--color-ink) 65%, + var(--color-ink) 100% + ) !important; + background-size: 200% 100% !important; + will-change: background-position; +} + +/* Magic UI Aurora Text Animation — Smooth shifting Northern Lights color wave */ +@keyframes aurora { + 0% { + background-position: 0% 50%; + } + 25% { + background-position: 50% 100%; + } + 50% { + background-position: 100% 50%; + } + 75% { + background-position: 50% 0%; + } + 100% { + background-position: 0% 50%; + } +} + +.animate-aurora { + animation: aurora 8s ease-in-out infinite alternate !important; + will-change: background-position; +} + +/* Magic UI Typing Animation Blinking Cursor */ +@keyframes blink-cursor { + 0%, 49% { + opacity: 1; + } + 50%, 100% { + opacity: 0; + } +} + +.animate-blink-cursor { + animation: blink-cursor 0.9s step-end infinite; +} + +/* Magic UI Animated Gradient Text */ +@keyframes gradient { + 0% { + background-position: 0% 50%; + } + 50% { + background-position: 100% 50%; + } + 100% { + background-position: 0% 50%; + } +} + +.animate-gradient { + animation: gradient 8s linear infinite; + will-change: background-position; +} + +/* Magic UI Kinetic Text Character Styles */ +.kinetic-letter { + display: inline-block; + will-change: font-weight, -webkit-text-stroke-width, padding; + -webkit-text-stroke-color: transparent; + -webkit-text-stroke-width: var(--text-stroke-width, 0.02em); + transition: font-weight 0.4s ease, -webkit-text-stroke-color 0.4s ease, padding 0.4s ease; +} + +.kinetic-letter:hover { + padding-left: var(--hover-padding, 0.08em); + padding-right: var(--hover-padding, 0.08em); + font-weight: 900 !important; + -webkit-text-stroke-color: currentColor; + -webkit-text-stroke-width: calc(var(--text-stroke-width, 0.02em) * 2); +} + +.kinetic-letter:has(+ .kinetic-letter:hover) { + padding-left: var(--hover-padding, 0.08em); + padding-right: var(--hover-padding, 0.08em); + font-weight: 600 !important; +} + +.kinetic-letter:has(+ .kinetic-letter + .kinetic-letter:hover) { + font-weight: 400 !important; +} + +.kinetic-letter:hover + .kinetic-letter { + padding-left: var(--hover-padding, 0.08em); + padding-right: var(--hover-padding, 0.08em); + font-weight: 600 !important; +} + +.kinetic-letter:hover + .kinetic-letter + .kinetic-letter { + font-weight: 400 !important; +} + +/* Hide scrollbars for clean horizontal snap carousels on mobile */ +.no-scrollbar::-webkit-scrollbar { + display: none; +} +.no-scrollbar { + -ms-overflow-style: none; + scrollbar-width: none; +} + + + diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 280de39..bbf21ed 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,6 +5,7 @@ import { getSiteConfig } from '@/lib/config/loader'; import { Navbar } from '@/components/ui/Navbar'; import { Footer } from '@/components/ui/Footer'; import { SmoothScrollProvider } from '@/components/ui/SmoothScrollProvider'; +import { SmoothCursor } from '@/components/magicui/smooth-cursor'; const poppinsFont = Poppins({ subsets: ['latin'], @@ -94,6 +95,7 @@ export default function RootLayout({ /> + Skip to main content diff --git a/src/app/tokens.css b/src/app/tokens.css index e93d781..ce6aa75 100644 --- a/src/app/tokens.css +++ b/src/app/tokens.css @@ -6,18 +6,22 @@ --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem); --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms; - --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150); - --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px; + --color-error: oklch(56% 0.22 27); --color-success: oklch(58% 0.18 150); + --container: 1720px; --gutter: 24px; --gap-columns: 28px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px; --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600; - --color-paper: oklch(97.2% 0.006 215); --color-paper-2: oklch(94% 0.009 215); --color-paper-3: oklch(90.5% 0.011 215); --color-paper-hi: oklch(99% 0.004 215); - --color-ink: oklch(16% 0.032 250); --color-ink-2: oklch(34% 0.022 245); --color-muted: oklch(49% 0.018 240); - --color-rule: oklch(84% 0.010 225); - --color-accent: oklch(68% 0.172 50); --color-accent-hi: oklch(63% 0.18 48); --color-accent-soft: oklch(95% 0.03 50); --color-accent-ink: oklch(16% 0.032 250); --color-focus: oklch(52% 0.15 48); - --color-dot: color-mix(in oklab, var(--color-ink) 20%, transparent); --color-mark: color-mix(in oklab, var(--color-ink) 72%, transparent); - --font-display: "Hedvig Letters Serif", ui-serif, Georgia, serif; --font-body: "Geist", ui-sans-serif, system-ui, sans-serif; - --font-outlier: "Sofia Sans Extra Condensed", "Arial Narrow", ui-sans-serif, sans-serif; - --radius-card: 3px; --radius-pill: 3px; --rule-hair: 1px; - --shadow-card: none; - --shadow-sheet: 1px 2px 0 color-mix(in oklab, var(--color-ink) 7%, transparent), 10px 18px 36px -14px color-mix(in oklab, var(--color-ink) 32%, transparent); - --tracking-display: -0.022em; --display-weight: 400; + --color-paper: oklch(98% 0.006 85); --color-paper-2: oklch(95% 0.008 85); --color-paper-3: oklch(91.5% 0.012 85); --color-paper-hi: oklch(99.2% 0.006 85); + --color-ink: oklch(18% 0.03 260); --color-ink-2: oklch(36% 0.025 260); --color-muted: oklch(52% 0.02 260); + --color-rule: oklch(90% 0.008 260); --color-rule-2: oklch(82% 0.012 260); + --color-accent: oklch(54% 0.24 260); --color-accent-hi: oklch(48% 0.26 265); --color-accent-soft: oklch(96% 0.02 260); --color-accent-ink: oklch(99.2% 0.006 85); --color-focus: oklch(54% 0.24 260); + --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-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); + --shadow-sheet: 0 20px 45px -15px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(15, 23, 42, 0.06); + --shadow-glow: 0 0 45px -10px color-mix(in oklab, var(--color-accent) 25%, transparent); + --gradient-ambient: radial-gradient(ellipse 80% 50% at 50% -20%, color-mix(in oklab, var(--color-accent) 10%, transparent) 0%, transparent 100%); + --tracking-display: -0.028em; --display-weight: 700; } diff --git a/src/components/magicui/animated-gradient-text.tsx b/src/components/magicui/animated-gradient-text.tsx new file mode 100644 index 0000000..c128df8 --- /dev/null +++ b/src/components/magicui/animated-gradient-text.tsx @@ -0,0 +1,52 @@ +'use client'; + +import React, { ComponentPropsWithoutRef } from 'react'; +import { cn } from '@/lib/utils'; + +export interface AnimatedGradientTextProps extends ComponentPropsWithoutRef<'span'> { + speed?: number; + colorFrom?: string; + colorTo?: string; + pauseWhenHidden?: boolean; +} + +/** + * Magic UI - Animated Gradient Text + * Liquid flowing gradient text with 0% idle CPU overhead. + * Reference: https://magicui.design/docs/components/animated-gradient-text + */ +export function AnimatedGradientText({ + children, + className, + speed = 1, + colorFrom = '#2563eb', + colorTo = '#ec4899', + pauseWhenHidden = true, + style, + ...props +}: AnimatedGradientTextProps) { + const duration = Math.max(2, 8 / speed); + + return ( + + {children} + + ); +} diff --git a/src/components/magicui/animated-shiny-text.tsx b/src/components/magicui/animated-shiny-text.tsx new file mode 100644 index 0000000..0fbf9e6 --- /dev/null +++ b/src/components/magicui/animated-shiny-text.tsx @@ -0,0 +1,59 @@ +'use client'; + +import React, { + type ComponentPropsWithoutRef, + type CSSProperties, + type FC, +} from 'react'; +import { cn } from '@/lib/utils'; + +export interface AnimatedShinyTextProps extends ComponentPropsWithoutRef<'span'> { + shimmerWidth?: number; + /** + * If true (default), shimmer animation only runs when the cursor is hovered over the text. + * Reference: https://magicui.design/docs/components/animated-shiny-text + */ + hoverOnly?: boolean; +} + +/** + * Magic UI - Animated Shiny Text + * Subtle shimmering light reflection that passes smoothly across typography on hover. + * Zero CPU overhead when resting; activates only on cursor hover. + * Reference: https://magicui.design/docs/components/animated-shiny-text + */ +export const AnimatedShinyText = React.forwardRef( + ( + { + children, + className, + shimmerWidth = 120, + hoverOnly = true, + style, + ...props + }, + ref + ) => { + return ( + + {children} + + ); + } +); +AnimatedShinyText.displayName = 'AnimatedShinyText'; + +export default AnimatedShinyText; diff --git a/src/components/magicui/aurora-text.tsx b/src/components/magicui/aurora-text.tsx new file mode 100644 index 0000000..a621318 --- /dev/null +++ b/src/components/magicui/aurora-text.tsx @@ -0,0 +1,49 @@ +'use client'; + +import React, { memo } from 'react'; +import { cn } from '@/lib/utils'; + +export interface AuroraTextProps { + children: React.ReactNode; + className?: string; + colors?: string[]; + speed?: number; +} + +/** + * Magic UI - Aurora Text + * A vibrant glowing aurora gradient text effect that shifts colors like the Northern Lights. + * Reference: https://magicui.design/docs/components/aurora-text + */ +export const AuroraText = memo( + ({ + children, + className = '', + colors = ['#2563eb', '#7c3aed', '#ec4899', '#06b6d4', '#3b82f6'], + speed = 1, + }: AuroraTextProps) => { + const gradientStyle: React.CSSProperties = { + backgroundImage: `linear-gradient(135deg, ${colors.join(', ')}, ${colors[0]})`, + backgroundSize: '220% auto', + WebkitBackgroundClip: 'text', + WebkitTextFillColor: 'transparent', + animationDuration: `${8 / speed}s`, + }; + + return ( + + {children} + + + ); + } +); + +AuroraText.displayName = 'AuroraText'; +export default AuroraText; diff --git a/src/components/magicui/bento-grid.tsx b/src/components/magicui/bento-grid.tsx index 7f53aff..6143516 100644 --- a/src/components/magicui/bento-grid.tsx +++ b/src/components/magicui/bento-grid.tsx @@ -48,9 +48,9 @@ export function BentoCard({ const content = (
@@ -58,35 +58,35 @@ export function BentoCard({
{background}
{/* Subtle Gradient Overlay */} -
+
{/* Top Header Badge */}
{badge && ( - + {badge} )} {Icon && ( -
+
)}
{/* Bottom Content Area */} -
-

+
+

{name}

-

+

{description}

{href && ( -
+
{cta} - +
)}
diff --git a/src/components/magicui/blur-fade.tsx b/src/components/magicui/blur-fade.tsx new file mode 100644 index 0000000..ad4aec7 --- /dev/null +++ b/src/components/magicui/blur-fade.tsx @@ -0,0 +1,71 @@ +'use client'; + +import React, { useRef, useState, useEffect } from 'react'; +import { motion, useInView, Variants } from 'framer-motion'; +import { cn } from '@/lib/utils'; + +interface BlurFadeProps { + children: React.ReactNode; + className?: string; + variant?: Variants; + duration?: number; + delay?: number; + yOffset?: number; + inView?: boolean; + inViewMargin?: string; + blur?: string; +} + +/** + * Magic UI - Blur Fade + * Staggered cinematic reveal with smooth blur-in and vertical translation. + * Ensures text is always visible and never hidden if intersection observer delays. + * Reference: https://magicui.design/docs/components/blur-fade + */ +export function BlurFade({ + children, + className, + variant, + duration = 0.45, + delay = 0, + yOffset = 10, + inView = true, + inViewMargin = '0px', + blur = '4px', +}: BlurFadeProps) { + const ref = useRef(null); + const [mounted, setMounted] = useState(false); + const inViewResult = useInView(ref, { once: true, margin: inViewMargin as any }); + + useEffect(() => { + // Guarantees visibility after initial mount + const timer = setTimeout(() => setMounted(true), 60); + return () => clearTimeout(timer); + }, []); + + const isVisible = !inView || inViewResult || mounted; + + const defaultVariants: Variants = { + hidden: { y: yOffset, opacity: 0, filter: `blur(${blur})` }, + visible: { y: 0, opacity: 1, filter: 'blur(0px)' }, + }; + + const combinedVariants = variant || defaultVariants; + + return ( + + {children} + + ); +} diff --git a/src/components/magicui/border-beam.tsx b/src/components/magicui/border-beam.tsx index ad9a82f..27e3680 100644 --- a/src/components/magicui/border-beam.tsx +++ b/src/components/magicui/border-beam.tsx @@ -1,6 +1,6 @@ 'use client'; -import React from 'react'; +import React, { useEffect, useRef, useState } from 'react'; import { cn } from '@/lib/utils'; interface BorderBeamProps { @@ -14,18 +14,54 @@ interface BorderBeamProps { delay?: number; } +/** + * Magic UI - Border Beam + * Animated traveling light border beam. + * Optimized with IntersectionObserver to sleep when out of view, + * and falls back to a clean static gradient on mobile/touch to eliminate GPU heating. + * Reference: https://magicui.design/docs/components/border-beam + */ export function BorderBeam({ className, size = 250, duration = 12, borderWidth = 1.5, anchor = 90, - colorFrom = '#3b82f6', - colorTo = '#8b5cf6', + colorFrom = 'var(--color-accent)', + colorTo = 'var(--color-accent-hi)', delay = 0, }: BorderBeamProps) { + const containerRef = useRef(null); + const [isVisible, setIsVisible] = useState(false); + const [isTouchDevice, setIsTouchDevice] = useState(false); + + useEffect(() => { + // Detect mobile touch devices to eliminate GPU-churning conic masks + if (typeof window !== 'undefined') { + const isTouch = + window.innerWidth < 1024 || + navigator.maxTouchPoints > 0 || + 'ontouchstart' in window; + setIsTouchDevice(isTouch); + } + + const container = containerRef.current; + if (!container) return; + + const observer = new IntersectionObserver( + ([entry]) => { + setIsVisible(entry.isIntersecting); + }, + { threshold: 0.05 } + ); + observer.observe(container); + + return () => observer.disconnect(); + }, []); + return (
@@ -46,21 +82,28 @@ export function BorderBeam({ className="absolute inset-0 rounded-[inherit]" style={{ padding: `${borderWidth}px`, - mask: 'linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)', - WebkitMask: 'linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)', + mask: 'linear-gradient(currentColor 0 0) content-box, linear-gradient(currentColor 0 0)', + WebkitMask: 'linear-gradient(currentColor 0 0) content-box, linear-gradient(currentColor 0 0)', maskComposite: 'exclude', WebkitMaskComposite: 'xor', }} >
); } + +export default BorderBeam; diff --git a/src/components/magicui/dia-text-reveal.tsx b/src/components/magicui/dia-text-reveal.tsx new file mode 100644 index 0000000..ec50d1f --- /dev/null +++ b/src/components/magicui/dia-text-reveal.tsx @@ -0,0 +1,276 @@ +'use client'; + +import React, { useEffect, useRef, useState, type ReactNode } from 'react'; +import { + animate, + motion, + useInView, + useMotionValue, + useReducedMotion, + useTransform, + type HTMLMotionProps, +} from 'framer-motion'; +import { cn } from '@/lib/utils'; + +const DEFAULT_COLORS = ['#c679c4', '#fa3d1d', '#ffb005', '#e1e1fe', '#0358f7']; +const BAND_HALF = 17; +const SWEEP_START = -BAND_HALF; +const SWEEP_END = 100 + BAND_HALF; + +const sweepEase = (t: number) => + t < 0.5 ? 4 * t ** 3 : 1 - (-2 * t + 2) ** 3 / 2; + +function buildGradient(pos: number, colors: string[], textColor: string) { + const bandStart = pos - BAND_HALF; + const bandEnd = pos + BAND_HALF; + + if (bandStart >= 100) { + return `linear-gradient(90deg, ${textColor}, ${textColor})`; + } + const n = colors.length; + const parts: string[] = []; + + if (bandStart > 0) { + parts.push(`${textColor} 0%`, `${textColor} ${bandStart.toFixed(2)}%`); + } + + colors.forEach((c, i) => { + const pct = n === 1 ? pos : bandStart + (i / (n - 1)) * BAND_HALF * 2; + parts.push(`${c} ${pct.toFixed(2)}%`); + }); + + if (bandEnd < 100) { + parts.push(`transparent ${bandEnd.toFixed(2)}%`, `transparent 100%`); + } + + return `linear-gradient(90deg, ${parts.join(', ')})`; +} + +function measureWidths(el: HTMLElement, texts: string[]) { + if (!el.parentElement) return texts.map(() => 0); + const ghost = el.cloneNode() as HTMLElement; + Object.assign(ghost.style, { + position: 'absolute', + visibility: 'hidden', + pointerEvents: 'none', + width: 'auto', + whiteSpace: 'nowrap', + }); + el.parentElement.appendChild(ghost); + const widths = texts.map((t) => { + ghost.textContent = t; + return ghost.getBoundingClientRect().width; + }); + ghost.remove(); + return widths; +} + +export interface DiaTextRevealProps extends Omit< + HTMLMotionProps<'span'>, + 'ref' | 'children' | 'style' | 'animate' | 'transition' | 'color' +> { + text?: string | string[]; + children?: ReactNode; + colors?: string[]; + textColor?: string; + duration?: number; + delay?: number; + repeat?: boolean; + repeatDelay?: number; + startOnView?: boolean; + once?: boolean; + className?: string; + fixedWidth?: boolean; + hoverShiny?: boolean; +} + +/** + * Magic UI - Dia Text Reveal + * - At first: Horizontal radiant gradient sweep reveals text as it enters viewport or mounts. + * - On hover: Magic UI Animated Shiny Text specular light reflection. + * Reference: https://magicui.design/docs/components/dia-text-reveal + * Reference: https://magicui.design/docs/components/animated-shiny-text + */ +export function DiaTextReveal({ + text, + children, + colors = DEFAULT_COLORS, + textColor = 'var(--color-ink)', + duration = 1.3, + delay = 0.05, + repeat = false, + repeatDelay = 0.5, + startOnView = true, + once = true, + className, + fixedWidth = false, + hoverShiny = true, + ...props +}: DiaTextRevealProps) { + const resolvedText = React.useMemo(() => { + if (text != null) { + return Array.isArray(text) ? text : [text]; + } + if (typeof children === 'string') { + return [children]; + } + if (Array.isArray(children)) { + const flat = children.map((c) => (typeof c === 'string' ? c : '')).join(''); + return [flat || '']; + } + if (children != null) { + return [String(children)]; + } + return ['']; + }, [text, children]); + + const texts = resolvedText; + const isMulti = texts.length > 1; + const prefersReducedMotion = useReducedMotion(); + + const spanRef = useRef(null); + const optsRef = useRef({ + colors, + textColor, + duration, + delay, + repeat, + repeatDelay, + texts, + }); + optsRef.current = { + colors, + textColor, + duration, + delay, + repeat, + repeatDelay, + texts, + }; + + const indexRef = useRef(0); + const hasPlayedRef = useRef(false); + const timerRef = useRef>(undefined); + const playRef = useRef<() => void>(null!); + const stopRef = useRef<(() => void) | null>(null); + + const [activeIndex, setActiveIndex] = useState(0); + const [measuredWidths, setMeasuredWidths] = useState([]); + const [isRevealed, setIsRevealed] = useState(false); + + const sweepPos = useMotionValue(SWEEP_START); + + const backgroundImage = useTransform(sweepPos, (pos) => + buildGradient(pos, optsRef.current.colors, optsRef.current.textColor) + ); + + const isInView = useInView(spanRef, { once, amount: 0.1 }); + + useEffect(() => { + const el = spanRef.current; + if (!el || !isMulti) return; + setMeasuredWidths(measureWidths(el, texts)); + }, [texts.join('\0'), isMulti]); + + playRef.current = () => { + const { duration: dur, delay: dly, repeat: rpt, repeatDelay: rptDly, texts: txts } = optsRef.current; + + setIsRevealed(false); + sweepPos.set(SWEEP_START); + + const controls = animate(sweepPos, SWEEP_END, { + duration: dur, + delay: dly, + ease: sweepEase, + onComplete() { + setIsRevealed(true); + if (!rpt) return; + timerRef.current = setTimeout(() => { + const next = (indexRef.current + 1) % txts.length; + indexRef.current = next; + setActiveIndex(next); + playRef.current(); + }, rptDly * 1000); + }, + }); + + stopRef.current = () => controls.stop(); + }; + + // Viewport trigger: plays once when scrolled into view (or immediately if in initial viewport) + useEffect(() => { + if (prefersReducedMotion) { + sweepPos.set(SWEEP_END); + setIsRevealed(true); + return; + } + + if (startOnView && !isInView) return; + if (once && hasPlayedRef.current) return; + hasPlayedRef.current = true; + playRef.current(); + + // Safety fallback: if animation interrupted, ensure text reveals + const safetyTimer = setTimeout(() => { + setIsRevealed(true); + }, (optsRef.current.duration + optsRef.current.delay + 0.4) * 1000); + + return () => { + stopRef.current?.(); + clearTimeout(timerRef.current); + clearTimeout(safetyTimer); + }; + }, [isInView, startOnView, once, prefersReducedMotion]); + + const fixedW = + isMulti && fixedWidth && measuredWidths.length > 0 + ? Math.max(...measuredWidths) + : undefined; + + const animatedW = + isMulti && !fixedWidth && measuredWidths[activeIndex] != null + ? measuredWidths[activeIndex] + : undefined; + + return ( + + {texts[activeIndex]} + + ); +} + +export default DiaTextReveal; diff --git a/src/components/magicui/interactive-hover-button.tsx b/src/components/magicui/interactive-hover-button.tsx new file mode 100644 index 0000000..b84bf97 --- /dev/null +++ b/src/components/magicui/interactive-hover-button.tsx @@ -0,0 +1,75 @@ +'use client'; + +import React from 'react'; +import { ArrowRight } from 'lucide-react'; +import { cn } from '@/lib/utils'; + +interface InteractiveHoverButtonProps + extends React.ButtonHTMLAttributes { + text?: string; + href?: string; +} + +/** + * Magic UI - Interactive Hover Button + * Tactile pill button with smooth accent fill on desktop hover and instant haptic feedback on mobile. + * Reference: https://magicui.design/docs/components/interactive-hover-button + */ +export const InteractiveHoverButton = React.forwardRef< + HTMLButtonElement, + InteractiveHoverButtonProps +>(({ text = 'Explore Studio', href, className, children, ...props }, ref) => { + const label = text || children; + + const content = ( + <> + {/* Background fill layer: smooth full-pill expansion on desktop hover without any blue-and-white cutoffs */} +