From bc0b610e7283b2370d1cdee28ab05b25ff4a2182 Mon Sep 17 00:00:00 2001
From: luccast <2213102+luccast@users.noreply.github.com>
Date: Mon, 26 Jan 2026 08:08:52 -0500
Subject: [PATCH] Remove Header component and update layout for full-screen
display
- Deleted the Header component to simplify the application structure.
- Adjusted layout in the RootDocument and Home components to utilize full-screen height, enhancing the visual experience.
- Ensured consistent styling across components by updating height calculations.
---
src/components/Header.tsx | 144 --------------------------------------
src/routes/__root.tsx | 4 +-
src/routes/index.tsx | 4 +-
3 files changed, 3 insertions(+), 149 deletions(-)
delete mode 100644 src/components/Header.tsx
diff --git a/src/components/Header.tsx b/src/components/Header.tsx
deleted file mode 100644
index 757f14c..0000000
--- a/src/components/Header.tsx
+++ /dev/null
@@ -1,144 +0,0 @@
-import { useState } from 'react'
-import { Link } from '@tanstack/react-router'
-import { motion, AnimatePresence } from 'framer-motion'
-import { Activity, Home, Menu, X } from 'lucide-react'
-import { CrabIdleAnimation } from '~/components/ani'
-
-export function Header() {
- const [isOpen, setIsOpen] = useState(false)
-
- return (
- <>
-
- {/* Subtle gradient overlay */}
-
-
-
-
-
-
-
-
-
- CRABWALK
-
-
-
- {/* Decorative claw brackets */}
-
- ❮
- v3.0
- ❯
-
-
-
- {/* Sidebar navigation */}
-
- {isOpen && (
- <>
- {/* Overlay */}
- setIsOpen(false)}
- className="fixed inset-0 bg-black/60 backdrop-blur-sm z-40"
- />
-
- {/* Sidebar panel */}
-
- {/* Scanline texture */}
-
-
- {/* Header */}
-
-
-
-
- NAVIGATION
-
-
-
-
-
- {/* Navigation links */}
-
-
- {/* Footer */}
-
-
-
-
- crabwalk online
-
-
-
-
- >
- )}
-
- >
- )
-}
diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx
index 1127262..d95db7a 100644
--- a/src/routes/__root.tsx
+++ b/src/routes/__root.tsx
@@ -3,7 +3,6 @@ import { HeadContent, Scripts, createRootRoute, Link } from '@tanstack/react-rou
import { TanStackRouterDevtools } from '@tanstack/react-router-devtools'
import { motion } from 'framer-motion'
import appCss from '../styles.css?url'
-import { Header } from '../components/Header'
import { QueryProvider } from '../integrations/query/provider'
import { queryDevtoolsPlugin } from '../integrations/query/devtools'
import { CrabIdleAnimation } from '../components/ani'
@@ -32,7 +31,7 @@ export const Route = createRootRoute({
function NotFound() {
return (
-
+
{/* Background glow */}
@@ -77,7 +76,6 @@ function RootDocument({ children }: { children: React.ReactNode }) {
-
{children}
{devtoolsPlugins.map((plugin, i) => (
diff --git a/src/routes/index.tsx b/src/routes/index.tsx
index 0a2a0ac..9527a71 100644
--- a/src/routes/index.tsx
+++ b/src/routes/index.tsx
@@ -59,7 +59,7 @@ function Home() {
}, [isHovering])
return (
-
+
{/* Decorative background elements */}
@@ -70,7 +70,7 @@ function Home() {
{/* Main content */}
-
+
{/* Interactive animated crab with glow */}