@@ -4,9 +4,11 @@ import React from 'react';
44import Link from 'next/link' ;
55import { IconBrandGithub } from "@tabler/icons-react" ;
66
7+ const baseUrl = "https://horizon.farbeyond.dev/" ; // Set your base URL here
8+
79const MobileNavLink = ( { href, children } : { href : string ; children : React . ReactNode } ) => (
810 < Link
9- href = { href }
11+ href = { href . startsWith ( "http" ) ? href : baseUrl + href . replace ( / ^ \/ / , "" ) }
1012 className = "block px-3 py-2 text-base font-medium text-neutral-300 hover:text-white hover:bg-neutral-800 rounded-md transition-colors"
1113 >
1214 { children }
@@ -21,25 +23,24 @@ export const Header = () => {
2123 < div className = "container mx-auto px-4" >
2224 < div className = "flex items-center justify-between h-16" >
2325 { /* Logo and Brand */ }
24- < Link href = "../" >
26+ < Link href = { baseUrl } >
2527 < div className = "flex items-center gap-2" >
2628 < img src = "https://github.com/Far-Beyond-Dev/Horizon-Community-Edition/blob/main/branding/horizon-server-high-resolution-logo-white-transparent.png?raw=true" className = 'w-52' > </ img >
2729 </ div >
2830 </ Link >
2931
3032 { /* Navigation Links - Desktop */ }
3133 < div className = "hidden md:flex items-center gap-8" >
32-
33- < Link href = "../community" className = "text-neutral-300 hover:text-neutral-100 transition-colors" >
34+ < Link href = { baseUrl + "community" } className = "text-neutral-300 hover:text-neutral-100 transition-colors" >
3435 Community
3536 </ Link >
36- < Link href = "../ blog" className = "text-neutral-300 hover:text-neutral-100 transition-colors" >
37+ < Link href = { baseUrl + " blog"} className = "text-neutral-300 hover:text-neutral-100 transition-colors" >
3738 Blog
3839 </ Link >
39- < Link href = "../ atlas" className = "text-neutral-300 hover:text-neutral-100 transition-colors" >
40+ < Link href = { baseUrl + " atlas"} className = "text-neutral-300 hover:text-neutral-100 transition-colors" >
4041 Atlas
4142 </ Link >
42- < Link href = "../ docs" className = "text-neutral-300 hover:text-neutral-100 transition-colors" >
43+ < Link href = { baseUrl + " docs"} className = "text-neutral-300 hover:text-neutral-100 transition-colors" >
4344 Documentation
4445 </ Link >
4546 < Link href = "https://pulsar.farbeyond.dev/" className = "text-neutral-300 hover:text-neutral-100 transition-colors" >
@@ -48,9 +49,6 @@ export const Header = () => {
4849 < span className = "text-neutral-500 cursor-not-allowed" title = "Coming soon" >
4950 SaaS (Planned)
5051 </ span >
51- { /* <span className="text-neutral-500 cursor-not-allowed" title="Coming soon">
52- News (Planned)
53- </span> */ }
5452 </ div >
5553
5654 { /* Call to Action Buttons */ }
@@ -63,7 +61,7 @@ export const Header = () => {
6361 >
6462 < IconBrandGithub className = "w-5 h-5" />
6563 </ Link >
66- < Link href = '/ docs/about' >
64+ < Link href = { baseUrl + " docs/about" } >
6765 < button className = "px-4 py-2 text-sm bg-neutral-800 hover:bg-neutral-700 text-neutral-100 rounded-lg transition-all" >
6866 Get Started
6967 </ button >
@@ -86,9 +84,9 @@ export const Header = () => {
8684 { mobileMenuOpen && (
8785 < div className = "md:hidden bg-black/95 backdrop-blur-lg" >
8886 < div className = "px-2 pt-2 pb-3 space-y-1" >
89- < MobileNavLink href = "/ community" > Community</ MobileNavLink >
90- < MobileNavLink href = "/ enterprise" > Enterprise</ MobileNavLink >
91- < MobileNavLink href = "/ docs" > Documentation</ MobileNavLink >
87+ < MobileNavLink href = "community" > Community</ MobileNavLink >
88+ < MobileNavLink href = "enterprise" > Enterprise</ MobileNavLink >
89+ < MobileNavLink href = "docs" > Documentation</ MobileNavLink >
9290 < MobileNavLink href = "https://pulsar.farbeyond.dev/" > Pulsar</ MobileNavLink >
9391 </ div >
9492 </ div >
@@ -97,4 +95,4 @@ export const Header = () => {
9795 ) ;
9896} ;
9997
100- export default Header ;
98+ export default Header ;
0 commit comments