From 5027bea66623cc6fd1b904709ba096a3078ce87a Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 19 Jun 2026 23:25:29 +0200 Subject: [PATCH] fix(ui): resolve annotator overlap, slider images, subcompany rounding and copy updates --- components/annotator-local/Annotator.tsx | 2 +- components/blocks/ReferencesSlider.tsx | 16 +- components/blocks/SubCompanyTiles.tsx | 2 +- components/layout/Header.tsx | 71 -------- components/layout/MobileBottomNav.tsx | 210 +++++++++++++++++------ content/de/home.mdx | 4 +- content/en/home.mdx | 4 +- 7 files changed, 173 insertions(+), 136 deletions(-) diff --git a/components/annotator-local/Annotator.tsx b/components/annotator-local/Annotator.tsx index a9eefb23e..c9c9e6433 100644 --- a/components/annotator-local/Annotator.tsx +++ b/components/annotator-local/Annotator.tsx @@ -239,7 +239,7 @@ export function Annotator({ assets = [], onSubmit }: AnnotatorProps) { return (
{/* 1. Global Toolbar */} -
+
- - {/* Mobile Menu Overlay */} - - {isMobileMenuOpen && ( - - - - )} - ); } diff --git a/components/layout/MobileBottomNav.tsx b/components/layout/MobileBottomNav.tsx index f9c311184..e899573b2 100644 --- a/components/layout/MobileBottomNav.tsx +++ b/components/layout/MobileBottomNav.tsx @@ -18,34 +18,48 @@ interface MobileBottomNavProps { export function MobileBottomNav({ navLinks, currentLocale }: MobileBottomNavProps) { const pathname = usePathname() || '/'; + const [isFlyoutOpen, setIsFlyoutOpen] = React.useState(false); - // Construct our bottom nav items based on the passed links + // We need to gather all links that should go into the flyout. + // The user wants 'alle navigationspunkte daraus' (from the old burger menu). + // Old menu had: Kompetenzen, Über uns (Firma, Team, Zertifikate, Standorte), Referenzen, Karriere, Messen. + + // Construct our bottom nav items const items = React.useMemo(() => { const homeUrl = `/${currentLocale}`; - - // Find the specific links from the provided navLinks (which might be translated) const competenciesUrl = navLinks[0]?.url || `/${currentLocale}/kompetenzen`; - const aboutUrl = navLinks[1]?.url || `/${currentLocale}/ueber-uns`; + const referencesUrl = navLinks[2]?.url || `/${currentLocale}/referenzen`; const contactUrl = `/${currentLocale}/${currentLocale === 'de' ? 'kontakt' : 'contact'}`; return [ { + id: 'home', label: currentLocale === 'de' ? 'Start' : 'Home', url: homeUrl, icon: , exactMatch: true }, { + id: 'kompetenzen', label: navLinks[0]?.label || (currentLocale === 'de' ? 'Kompetenzen' : 'Competencies'), url: competenciesUrl, icon: }, { - label: navLinks[1]?.label || (currentLocale === 'de' ? 'Über uns' : 'About Us'), - url: aboutUrl, - icon: + id: 'referenzen', + label: navLinks[2]?.label || (currentLocale === 'de' ? 'Referenzen' : 'References'), + url: referencesUrl, + icon: // Using Users for now, wait we need an image or star icon? }, { + id: 'menu', + label: navLinks[1]?.label || (currentLocale === 'de' ? 'Über uns' : 'About Us'), + url: '#', // Triggers flyout + icon: , + isFlyoutTrigger: true + }, + { + id: 'kontakt', label: currentLocale === 'de' ? 'Kontakt' : 'Contact', url: contactUrl, icon: @@ -53,55 +67,143 @@ export function MobileBottomNav({ navLinks, currentLocale }: MobileBottomNavProp ]; }, [currentLocale, navLinks]); - return ( -
- -
+ + + )} + + ); } diff --git a/content/de/home.mdx b/content/de/home.mdx index 22934305d..08767c3f5 100644 --- a/content/de/home.mdx +++ b/content/de/home.mdx @@ -79,8 +79,8 @@ description: "Die E-TIB GmbH ist Ihr zuverlässiger Partner für komplexe Kabelt
Mitarbeitende
-
100+
-
Kunden
+
200+
+
Projekte
diff --git a/content/en/home.mdx b/content/en/home.mdx index 2bac9471a..8522f6ad9 100644 --- a/content/en/home.mdx +++ b/content/en/home.mdx @@ -79,8 +79,8 @@ description: "E-TIB GmbH is your reliable partner for complex cable routes, hori
Employees
-
100+
-
Clients
+
200+
+
Projects