feat(ui): add liquid glass lens cursor and ultra-smooth Lenis scrolling

This commit is contained in:
2026-11-05 11:18:35 +05:30
parent 7b5f21061a
commit b7238e7e1b
4 changed files with 261 additions and 47 deletions
+23
View File
@@ -26,6 +26,29 @@
scroll-behavior: smooth;
}
/* Lenis Ultra-Smooth Scrolling Performance Integration */
html.lenis,
html.lenis body {
height: auto;
scroll-behavior: auto !important;
}
.lenis.lenis-smooth {
scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
overscroll-behavior: contain;
}
.lenis.lenis-stopped {
overflow: clip;
}
.lenis.lenis-smooth iframe {
pointer-events: none;
}
body {
color: #0F172A;
background-color: #FAF8F5;
+8 -5
View File
@@ -5,6 +5,7 @@ import { getSiteConfig } from '@/lib/config/loader';
import { Navbar } from '@/components/ui/Navbar';
import { Footer } from '@/components/ui/Footer';
import { SmoothCursor } from '@/components/magicui/smooth-cursor';
import { SmoothScrollProvider } from '@/components/ui/SmoothScrollProvider';
const poppinsFont = Poppins({
subsets: ['latin'],
@@ -94,11 +95,13 @@ 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 font-sans">
<SmoothCursor />
<a href="#main-content" className="skip-link">Skip to main content</a>
<Navbar config={config} currentLocale="en" />
<main id="main-content" className="flex-1">{children}</main>
<Footer config={config} currentLocale="en" />
<SmoothScrollProvider>
<SmoothCursor />
<a href="#main-content" className="skip-link">Skip to main content</a>
<Navbar config={config} currentLocale="en" />
<main id="main-content" className="flex-1">{children}</main>
<Footer config={config} currentLocale="en" />
</SmoothScrollProvider>
</body>
</html>
);