From b8c16d061023f350f15d1702637dc142ad362f05 Mon Sep 17 00:00:00 2001 From: Aman Varshney Date: Thu, 17 Apr 2025 20:58:29 +0530 Subject: [PATCH] fix new page height --- apps/web/src/app/(home)/new/page.tsx | 19 +------------------ bun.lock | 2 +- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/apps/web/src/app/(home)/new/page.tsx b/apps/web/src/app/(home)/new/page.tsx index cf93b7f..fea55d0 100644 --- a/apps/web/src/app/(home)/new/page.tsx +++ b/apps/web/src/app/(home)/new/page.tsx @@ -2,28 +2,11 @@ import { motion } from "motion/react"; import Link from "next/link"; -import { useEffect } from "react"; import StackArchitect from "../_components/StackArchitech"; export default function FullScreenStackArchitect() { - useEffect(() => { - const setVh = () => { - const vh = window.innerHeight * 0.01; - document.documentElement.style.setProperty("--vh", `${vh}px`); - }; - - setVh(); - window.addEventListener("resize", setVh); - document.body.style.overflow = "hidden"; - - return () => { - window.removeEventListener("resize", setVh); - document.body.style.overflow = ""; - }; - }, []); - return ( -
+