Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Revert "improved-performance"" #372

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/(default)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Features from "@/components/features";
import Features from "@/components/features/Features";
import Hero from "@/components/hero";
import Showcase from "@/components/showcase";
import { constructMetadata } from "@/lib/utils";
Expand Down
21 changes: 0 additions & 21 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,27 +175,6 @@
@apply rounded-md border border-slate-300 bg-slate-200 px-1 py-0.5 before:content-none after:content-none dark:border-slate-700 dark:bg-slate-950;
}

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-smooth iframe {
pointer-events: none;
}

@layer utilities {
.showcase-gradient-light {
background-image: linear-gradient(
Expand Down
39 changes: 17 additions & 22 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import dynamic from "next/dynamic";
import { Analytics } from "@vercel/analytics/react";
import { SpeedInsights } from "@vercel/speed-insights/next";
import { ThemeProvider } from "next-themes";
import { ReactLenis } from "@/utils/lenis";

const PostHogPageView = dynamic(() => import("./PostHogPageView"), {
ssr: false,
Expand All @@ -23,28 +22,24 @@ export default function RootLayout({
return (
<html lang="en" className={`${GeistSans.variable} ${GeistMono.variable}`}>
<PHProvider>
<ReactLenis root>
<body
className={`bg-background font-sans tracking-tight antialiased`}
<body className={`bg-background font-sans tracking-tight antialiased`}>
<ThemeProvider
attribute="class"
enableSystem
disableTransitionOnChange
enableColorScheme
>
<ThemeProvider
attribute="class"
enableSystem
disableTransitionOnChange
enableColorScheme
>
<PostHogPageView />
<div className="flex min-h-screen flex-col overflow-hidden">
<Header />
{children}
<Toaster position="bottom-right" richColors />
<Analytics />
<SpeedInsights />
</div>
</ThemeProvider>
<Analytics />
</body>
</ReactLenis>
<PostHogPageView />
<div className="flex min-h-screen flex-col overflow-hidden">
<Header />
{children}
<Toaster position="bottom-right" richColors />
<Analytics />
<SpeedInsights />
</div>
</ThemeProvider>
<Analytics />
</body>
</PHProvider>
</html>
);
Expand Down
221 changes: 0 additions & 221 deletions components/features.tsx

This file was deleted.

Loading