Remove unused ConsoleAsr and PagePixelLayer components from layout.tsx to streamline the codebase and improve performance.
All checks were successful
Deploy / deploy (push) Successful in 2m40s
All checks were successful
Deploy / deploy (push) Successful in 2m40s
This commit is contained in:
@@ -8,8 +8,6 @@ import { HeaderGate } from "@/components/header-gate";
|
|||||||
import { ProgressiveBlur } from "@/components/ui/skiper-ui/skiper41";
|
import { ProgressiveBlur } from "@/components/ui/skiper-ui/skiper41";
|
||||||
import { DevPanel } from "@/components/dev/dev-panel";
|
import { DevPanel } from "@/components/dev/dev-panel";
|
||||||
import { ScrollFlow } from "@/components/scroll-flow";
|
import { ScrollFlow } from "@/components/scroll-flow";
|
||||||
import { PagePixelLayer } from "@/components/page-pixel-layer";
|
|
||||||
import { ConsoleAsr } from "@/components/console-asr";
|
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
|
|
||||||
const calSans = Cal_Sans({
|
const calSans = Cal_Sans({
|
||||||
@@ -57,8 +55,6 @@ export default function RootLayout({
|
|||||||
className={`${calSans.variable} ${clarityCity.variable} ${geistMono.variable} ${bricolage.variable} h-full antialiased`}
|
className={`${calSans.variable} ${clarityCity.variable} ${geistMono.variable} ${bricolage.variable} h-full antialiased`}
|
||||||
>
|
>
|
||||||
<body className="min-h-full flex flex-col bg-slate-50">
|
<body className="min-h-full flex flex-col bg-slate-50">
|
||||||
<ConsoleAsr />
|
|
||||||
<PagePixelLayer />
|
|
||||||
{/* Site geneli progressive blur — üst ve alt */}
|
{/* Site geneli progressive blur — üst ve alt */}
|
||||||
<div className="pointer-events-none fixed inset-x-0 top-0 z-40 h-28">
|
<div className="pointer-events-none fixed inset-x-0 top-0 z-40 h-28">
|
||||||
<ProgressiveBlur
|
<ProgressiveBlur
|
||||||
|
|||||||
@@ -1,46 +0,0 @@
|
|||||||
"use client";
|
|
||||||
|
|
||||||
import { usePathname } from "next/navigation";
|
|
||||||
import { PixelCorner } from "@/components/pixel-decor";
|
|
||||||
|
|
||||||
const pixelClass = "size-10 [&_rect]:[fill-opacity:0.55]";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Ana sayfanın kendi zengin piksel kompozisyonunu tekrar etmeden, iç
|
|
||||||
* sayfalara ortak bir piksel çerçevesi taşır. Katman içeriklerin üstünde
|
|
||||||
* kaldığı için sayfaların opak zeminlerinde de görünür; kenarlara
|
|
||||||
* yerleştiğinden etkileşimleri ve okunabilirliği engellemez.
|
|
||||||
*/
|
|
||||||
export function PagePixelLayer() {
|
|
||||||
const pathname = usePathname();
|
|
||||||
|
|
||||||
if (pathname === "/") return null;
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div
|
|
||||||
aria-hidden
|
|
||||||
className="pointer-events-none fixed inset-0 z-30 overflow-hidden print:hidden"
|
|
||||||
>
|
|
||||||
<PixelCorner
|
|
||||||
className={`absolute -left-3 top-28 -rotate-90 ${pixelClass}`}
|
|
||||||
/>
|
|
||||||
<PixelCorner
|
|
||||||
className={`absolute -right-3 top-28 ${pixelClass}`}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<PixelCorner
|
|
||||||
className={`absolute -left-4 top-[46%] -rotate-90 text-orange-500 max-sm:hidden ${pixelClass}`}
|
|
||||||
/>
|
|
||||||
<PixelCorner
|
|
||||||
className={`absolute -right-4 top-[58%] rotate-90 max-sm:hidden ${pixelClass}`}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<PixelCorner
|
|
||||||
className={`absolute -bottom-3 left-6 rotate-180 ${pixelClass}`}
|
|
||||||
/>
|
|
||||||
<PixelCorner
|
|
||||||
className={`absolute -bottom-3 right-6 rotate-90 text-orange-500 ${pixelClass}`}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user