Skip to content

Commit b8887b9

Browse files
committed
feat: Conditionally hide header and footer on specific pages and adjust blueprint background z-index for improved layout.
1 parent dc86832 commit b8887b9

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

client/src/App.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import CruciblePage from './pages/CruciblePage';
77
import Footer from './components/Footer';
88
import JoinPage from './pages/JoinPage';
99
import PrivacyPolicyPage from './pages/PrivacyPolicy';
10-
import ScrollToTop from './components/ScrollTop';
10+
1111
import TermsAndConditionsPage from './pages/TermsAndConditions';
1212
import CodeOfConduct from './pages/CodeOfConduct';
1313

@@ -40,7 +40,6 @@ export default function App() {
4040
// Main site routes
4141
return (
4242
<div className="relative min-h-screen w-full bg-base">
43-
<ScrollToTop />
4443
<div className="blueprint-bg"></div>
4544
<Header />
4645
<main className="container mx-auto px-6 pt-32">

client/src/components/Header.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ export default function Header() {
99
// Hook from react-router-dom to get the current URL path
1010
const location = useLocation();
1111

12+
// Hide header on full-screen pages that have their own navigation
13+
const isApplyPage = location.pathname === '/join' || location.pathname === '/apply';
14+
if (isApplyPage) return null;
15+
1216
// Effect to add a scroll listener when the component mounts
1317
useEffect(() => {
1418
const handleScroll = () => {

client/src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ body::before {
5959
width: 100%;
6060
height: 100%;
6161
pointer-events: none;
62-
z-index: 9999;
62+
z-index: 1;
6363
opacity: 0.03;
6464
/* Very subtle noise */
6565
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");

client/src/pages/JoinPage.jsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
Phone, Smartphone, Monitor, Cpu, MapPin, Loader2
88
} from 'lucide-react';
99

10-
import Footer from '../components/Footer';
1110
import { supabase } from '../lib/supabase';
1211
import { useToast } from '../components/ui/Toast';
1312
import { submitStudentApplication, submitClientBrief } from '../lib/api';
@@ -224,10 +223,6 @@ export default function JoinUs() {
224223
</AnimatePresence>
225224
</div>
226225

227-
{/* Footer will now sit naturally at the bottom */}
228-
<div className="relative z-10">
229-
<Footer />
230-
</div>
231226
</div>
232227
);
233228
}

0 commit comments

Comments
 (0)