HifiPlanet-Website/hifi/assets/GalleryBrandPage-C72vNm7R.js
Claude 9a09e7e48f
Direktsuche nach Fahrzeug auf der Fahrzeug-Uebersicht
Suchfeld ueber den Marken-Kacheln: findet Marken und Modelle beim Tippen
(z. B. "golf 7", "vw golf", "bmw 3er"), Pfeiltasten + Enter, Link zum
Kontakt ohne Treffer. Neuer oeffentlicher Endpunkt GET /vehicle-search.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0174bfXbDqAn2M7TjkdqGCrn
2026-10-20 13:24:14 +00:00

1 line
2.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{g,r as n,u as m,a as u,c as p,b as h,j as a,N as b,e as f,L as d,d as y,f as j}from"./index-ChDBksRH.js";function N(){const{brandSlug:s}=g(),[e,i]=n.useState(null),[l,x]=n.useState(null),{t:r}=m(),{gallery_card_text_x:o,gallery_card_text_y:c}=u();return n.useEffect(()=>{p.get(`/gallery-brands/${s}/projects`).then(i).catch(t=>x(t))},[s]),h({title:e?r("galleryBrandPage.metaTitle")(e.brand.name):r("galleryBrandPage.metaTitleFallback"),description:e?r("galleryBrandPage.metaDescription")(e.brand.name):void 0,path:`/galerie/${s}`}),l?l.status===404?a.jsx(b,{}):a.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:f(l,r)}):e?a.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[a.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[a.jsx(d,{to:"/galerie",className:"hover:text-brand-500",children:r("galleryBrandPage.breadcrumbGallery")})," / ",e.brand.name]}),a.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[e.brand.name," – ",r("galleryBrandPage.titleSuffix")]}),e.projects.length===0&&a.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:r("galleryBrandPage.empty")}),a.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:e.projects.map(t=>a.jsxs(d,{to:`/galerie/${s}/${t.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[t.cover_image_path?a.jsx("img",{src:t.cover_image_path,alt:t.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):a.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),a.jsx(y,{entity:"gallery_projects",id:t.id,field:"name",lang:"de",value:t.name,className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:j(o,c,{x:0,y:100})})]},t.id))})]}):a.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:r("galleryBrandPage.loading")})}export{N as default};