File tree Expand file tree Collapse file tree 2 files changed +7
-49
lines changed Expand file tree Collapse file tree 2 files changed +7
-49
lines changed Original file line number Diff line number Diff line change 11"use client" ;
22
33import React , { useEffect , useState } from "react" ;
4- import HomeButton from "./HomeButton" ;
54import Image from "next/image" ;
65import { usePathname , useRouter } from "next/navigation" ;
76import { useAuth } from "../contexts/AuthContext" ;
@@ -60,39 +59,21 @@ const Header = () => {
6059 < header className = "sticky top-0 z-40 bg-slate-900/95 backdrop-blur supports-[backdrop-filter]:bg-slate-900/60 border-b border-slate-700" >
6160 < div className = "mx-auto max-w-7xl" >
6261 < div className = "flex h-16 items-center justify-between px-4 sm:px-6 lg:px-8" >
63- { /* Left section - Home button or logo */ }
62+ { /* Left section - Logo */ }
6463 < div className = "flex items-center" >
65- { pathname !== "/" ? (
66- < HomeButton
67- handleReturnToMainPage = { ( ) => {
68- router . push ( "/" ) ;
69- } }
70- />
71- ) : (
72- < div className = "flex items-center" >
73- < Image
74- src = "/logo.svg"
75- alt = "Ditectrev Logo"
76- className = "h-8 w-auto"
77- height = { 32 }
78- width = { 120 }
79- />
80- </ div >
81- ) }
82- </ div >
83-
84- { /* Center section - Logo on non-home pages */ }
85- { pathname !== "/" && (
86- < div className = "flex items-center absolute left-1/2 transform -translate-x-1/2 md:relative md:left-auto md:transform-none" >
64+ < button
65+ onClick = { ( ) => router . push ( "/" ) }
66+ className = "flex items-center cursor-pointer"
67+ >
8768 < Image
8869 src = "/logo.svg"
8970 alt = "Ditectrev Logo"
9071 className = "h-8 w-auto"
9172 height = { 32 }
9273 width = { 120 }
9374 />
94- </ div >
95- ) }
75+ </ button >
76+ </ div >
9677
9778 { /* Right section - Navigation and Auth */ }
9879 < div className = "flex items-center space-x-4" >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments