feat: make Mapbox-grade Landing Page the default home portal with standalone landing.html page

This commit is contained in:
Hamza-Ayed
2026-09-19 12:55:15 +03:00
parent 126c94df63
commit e819186201
3 changed files with 1135 additions and 4 deletions
+7 -4
View File
@@ -35,7 +35,7 @@ const NAV = [
]
function MasterHeader({ hash }: { hash: string }) {
const currentHash = hash || '#map'
const currentHash = hash || '#portal'
const [isFullscreen, setIsFullscreen] = useState(false);
const toggleFullscreen = () => {
@@ -261,7 +261,10 @@ function Root() {
if (p.includes('tourism') || p.includes('heritage') || p.includes('tourist') || window.location.href.includes('سياح')) {
return '#tourism';
}
return window.location.hash || '#map';
if (p.includes('tactical') || p.includes('military')) {
return '#tactical';
}
return window.location.hash || '#portal';
};
const [hash, setHash] = useState(getInitialHash);
@@ -278,14 +281,14 @@ function Root() {
return () => window.removeEventListener('hashchange', on);
}, []);
const isPortal = hash === '#portal' || hash === '#landing' || hash === '#home';
const isPortal = hash === '#portal' || hash === '#landing' || hash === '#home' || !hash;
const isTourism = hash === '#tourism' || hash === '#heritage' || hash === '#tourist';
const isTactical = hash === '#tactical' || hash === '#military' || hash === '#siro';
const isTerrain3D = hash === '#terrain3d' || hash === '#3d' || hash === '#terrain';
const isExecutive = hash === '#showcase' || hash === '#pitch';
const isCompare = hash === '#compare';
const isReview = hash === '#review';
const isMap = hash === '#map' || (!isPortal && !isTourism && !isTactical && !isTerrain3D && !isExecutive && !isCompare && !isReview);
const isMap = hash === '#map';
return (
<ErrorBoundary>