Replace entire repo content with code from /root/shahikitchen-google/

This commit is contained in:
root
2026-07-03 02:51:15 +00:00
parent c8b7dc95e4
commit 8ccf033329
79 changed files with 7611 additions and 439 deletions
+22 -4
View File
@@ -1,12 +1,30 @@
import { HEADER_TOTAL_HEIGHT } from '@/components/LanguageSwitcher';
'use client';
/** Reserves vertical space for the fixed language bar + navbar (116px). */
import { useEffect, useState } from 'react';
import { getHeaderTotalHeight } from '@/components/LanguageSwitcher';
import { useCustomerAuth } from '@/presentation/providers/customer-auth-provider';
/** Reserves vertical space for the fixed language bar + navbar. */
export default function HeaderSpacer() {
const { isAuthenticated, isMenuManager, isLoading } = useCustomerAuth();
const [isMobile, setIsMobile] = useState(false);
useEffect(() => {
const update = () => setIsMobile(window.innerWidth < 640);
update();
window.addEventListener('resize', update);
return () => window.removeEventListener('resize', update);
}, []);
const height = isLoading
? getHeaderTotalHeight(true, isMobile, true)
: getHeaderTotalHeight(isAuthenticated, isMobile, isMenuManager);
return (
<div
aria-hidden
className="shrink-0"
style={{ height: HEADER_TOTAL_HEIGHT }}
className="shrink-0 transition-[height] duration-200"
style={{ height }}
/>
);
}