# Conflicts: # hifi/assets/AccountSettings-3Az7PIEf.js # hifi/assets/AccountSettings-C7P_TaTL.js # hifi/assets/AccountSettings-CfY49TlQ.js # hifi/assets/AdminUsers-C1zi3a_m.js # hifi/assets/Brands-V9s4vz2i.js # hifi/assets/ContactRequests-BcF_HxL3.js # hifi/assets/Dashboard-m6lX2kWI.js # hifi/assets/DatabaseSettings-pQejbEjR.js # hifi/assets/Downloads-DCZm2dP9.js # hifi/assets/EmailSettings-B_RqPmc9.js # hifi/assets/EmailSettings-DixrL0D8.js # hifi/assets/EmailSettings-VadOa5J3.js # hifi/assets/ExportImportSettings-Bkwm__tE.js # hifi/assets/Faqs-CDIDxeRo.js # hifi/assets/GalleryBrands-CeGo7QXi.js # hifi/assets/GalleryPhotos-NPKQDZMi.js # hifi/assets/GalleryProjects-CfB-fA4x.js # hifi/assets/HomeSections-BzNKNMho.js # hifi/assets/ImageUploadField-B8P2oQZ9.js # hifi/assets/ImageUploadField-DyLcJG5-.js # hifi/assets/ImageUploadField-oqjVVSSG.js # hifi/assets/LegalSettings-BnY85Lz7.js # hifi/assets/LegalSettings-CRgpL0dP.js # hifi/assets/LegalSettings-DGN-Kl_a.js # hifi/assets/Login-CFL8bhtC.js # hifi/assets/Login-Dc1nFqtx.js # hifi/assets/Login-pbnF9xt-.js # hifi/assets/MaintenanceSettings-CFGyPBuq.js # hifi/assets/MaintenanceSettings-DhcTJBUJ.js # hifi/assets/MaintenanceSettings-DsGBefLo.js # hifi/assets/Models-CyjYxQOO.js # hifi/assets/Packages-6JjKaOj1.js # hifi/assets/Partners-BRwobp6H.js # hifi/assets/PermissionGroups-CW64DGq9.js # hifi/assets/PermissionGroups-DI5xJ6TD.js # hifi/assets/PermissionGroups-_i9KMBTo.js # hifi/assets/ResetSettings-Bm64tgsK.js # hifi/assets/RichTextEditor-DJwdsoJ6.js # hifi/assets/RichTextEditor-DTscIhNf.js # hifi/assets/RichTextEditor-DcSNZ4jD.js # hifi/assets/Services-BTvu0ymy.js # hifi/assets/SettingsLayout-C5JQlIqD.js # hifi/assets/SetupWizard-BHY_FJd_.js # hifi/assets/SetupWizard-Cu-s4Wuc.js # hifi/assets/SetupWizard-DcHkEIZ7.js # hifi/assets/TextStyleWidget-BZdrb1Dr.js # hifi/assets/TextStyleWidget-CkwixV2h.js # hifi/assets/TextStyleWidget-Czb7ujSZ.js # hifi/assets/UpdateSettings-Ce5oqncR.js # hifi/assets/WebsiteSettings-B7CzBT2R.js # hifi/assets/eye-CZFeBsZS.js # hifi/assets/eye-YlN_9rkm.js # hifi/assets/eye-jJN30JHV.js # hifi/assets/iconRegistry-BJRytynd.js # hifi/assets/iconRegistry-C8CVLtUq.js # hifi/assets/iconRegistry-DUWamfSa.js # hifi/assets/index-QV-Szw5n.js # hifi/assets/trash-2-CQGOvKRj.js # hifi/assets/trash-2-CwY7wd8m.js # hifi/assets/trash-2-fu7u5OTF.js # hifi/index.html
1 line
2.1 KiB
JavaScript
1 line
2.1 KiB
JavaScript
import{f as m,r as n,u as g,a as u,c as p,b as h,j as a,N as b,e as f,L as d,d as y}from"./index-Tg8iNBwT.js";function v(){const{brandSlug:s}=m(),[e,i]=n.useState(null),[l,o]=n.useState(null),{t}=g(),{gallery_card_text_x:x,gallery_card_text_y:c}=u();return n.useEffect(()=>{p.get(`/gallery-brands/${s}/projects`).then(i).catch(r=>o(r))},[s]),h({title:e?t("galleryBrandPage.metaTitle")(e.brand.name):t("galleryBrandPage.metaTitleFallback"),description:e?t("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,t)}):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:t("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," – ",t("galleryBrandPage.titleSuffix")]}),e.projects.length===0&&a.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:t("galleryBrandPage.empty")}),a.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:e.projects.map(r=>a.jsxs(d,{to:`/galerie/${s}/${r.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[r.cover_image_path?a.jsx("img",{src:r.cover_image_path,alt:r.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("span",{className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:y(x,c,{x:0,y:100}),children:r.name})]},r.id))})]}):a.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:t("galleryBrandPage.loading")})}export{v as default};
|