@@ -4,21 +4,35 @@ import ChatButton from '~/components/chat/ChatButton'
44import ChatModal from '~/components/chat/ChatModal'
55import useServiceInstalledStatus from '~/hooks/useServiceInstalledStatus'
66import { SERVICE_NAMES } from '../../constants/service_names'
7+ import { Link } from '@inertiajs/react'
8+ import { IconArrowLeft } from '@tabler/icons-react'
9+ import classNames from 'classnames'
710
811export default function AppLayout ( { children } : { children : React . ReactNode } ) {
912 const [ isChatOpen , setIsChatOpen ] = useState ( false )
1013 const aiAssistantInstalled = useServiceInstalledStatus ( SERVICE_NAMES . OLLAMA )
1114
1215 return (
1316 < div className = "min-h-screen flex flex-col" >
17+ {
18+ window . location . pathname !== '/home' && (
19+ < Link href = "/home" className = "absolute top-60 md:top-48 left-4 flex items-center" >
20+ < IconArrowLeft className = "mr-2" size = { 24 } />
21+ < p className = "text-lg text-gray-600" > Back to Home</ p >
22+ </ Link >
23+ ) }
1424 < div
1525 className = "p-2 flex gap-2 flex-col items-center justify-center cursor-pointer"
1626 onClick = { ( ) => ( window . location . href = '/home' ) }
1727 >
1828 < img src = "/project_nomad_logo.png" alt = "Project Nomad Logo" className = "h-40 w-40" />
1929 < h1 className = "text-5xl font-bold text-desert-green" > Command Center</ h1 >
2030 </ div >
21- < hr className = "text-desert-green font-semibold h-[1.5px] bg-desert-green border-none" />
31+ < hr className = {
32+ classNames (
33+ "text-desert-green font-semibold h-[1.5px] bg-desert-green border-none" ,
34+ window . location . pathname !== '/home' ? "mt-12 md:mt-0" : "mt-0"
35+ ) } />
2236 < div className = "flex-1 w-full bg-desert" > { children } </ div >
2337 < Footer />
2438
0 commit comments