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:
@@ -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