1import{r,j as e}from"./index-eQa41uUf.js";import{H as g}from"./Helmet-8reM1Y18.js";import{s as m}from"./client-DHwt0KkD.js";import{C as u,a as j,b as y,c as w,d as N}from"./carousel-Bs-fawEY.js";import{A as b}from"./ARModelViewer-B0zD0H5D.js";import"./tslib.es6-D7fs4-OO.js";import"./button-BMmX3eLs.js";import"./arrow-right-siffAhyf.js";const I=()=>{const[h,n]=r.useState([]),[d,x]=r.useState(!0),[o,i]=r.useState(null),p=s=>{n(t=>t.map(l=>l.name===s?{...l,hasError:!0}:l))},c=h.filter(s=>!s.hasError);return r.useEffect(()=>{(async()=>{try{const{data:t,error:l}=await m.storage.from("gallery-photos").list("",{limit:100,sortBy:{column:"name",order:"desc"}});if(l)throw l;if(t&&t.length>0){const f=t.filter(a=>!a.name.startsWith(".")).map(a=>({name:a.name,url:m.storage.from("gallery-photos").getPublicUrl(a.name).data.publicUrl}));n(f)}}catch(t){console.error("Error fetching gallery images:",t)}finally{x(!1)}})()},[]),e.jsxs(e.Fragment,{children:[e.jsxs(g,{children:[e.jsx("title",{children:"2025 Winter Warner Gallery Opening"}),e.jsx("meta",{name:"description",content:"Experience the 2025 Winter Warner Gallery Opening through an immersive virtual tour."}),e.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),e.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),e.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Cormorant+Garamond:wght@300;400;500;600&display=swap",rel:"stylesheet"})]}),e.jsxs("div",{className:"min-h-screen w-full relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient( 2 180deg, 3 hsl(348, 83%, 15%) 0%, 4 hsl(348, 83%, 25%) 25%, 5 hsl(348, 83%, 35%) 50%, 6 hsl(348, 70%, 45%) 75%, 7 hsl(348, 60%, 55%) 100% 8 )`}}),e.jsx("div",{className:"absolute inset-0 opacity-30",style:{background:"radial-gradient(ellipse at top, transparent 0%, hsl(348, 83%, 10%) 100%)"}}),e.jsxs("div",{className:"relative z-10",children:[e.jsxs("header",{className:"pt-8 md:pt-12 pb-6 text-center px-4",children:[e.jsx("p",{className:"text-white/70 uppercase tracking-[0.3em] text-sm mb-4",style:{fontFamily:"'Cormorant Garamond', serif"},children:"St. Andrew's School Presents"}),e.jsxs("h1",{className:"text-white text-4xl md:text-6xl lg:text-7xl font-medium leading-tight",style:{fontFamily:"'Playfair Display', serif"},children:["2025 Winter Warner",e.jsx("br",{}),e.jsx("span",{className:"italic font-normal",children:"Gallery Opening"})]}),e.jsx("div",{className:"mt-6 flex justify-center",children:e.jsx("div",{className:"w-24 h-[1px] bg-white/40"})})]}),e.jsx("section",{className:"px-4 md:px-8 lg:px-16 pb-12",children:e.jsx("div",{className:"w-full h-[60vh] md:h-[70vh] lg:h-[75vh] rounded-lg overflow-hidden shadow-2xl border border-white/10",children:e.jsx("iframe",{width:"100%",height:"100%",src:"https://realsee.ai/lq22lxeJ?theme=minimalist&unbranded=1",frameBorder:"0",title:"2025 Winter Warner Gallery Virtual Tour",allowFullScreen:!0,className:"w-full h-full"})})}),e.jsxs("section",{className:"px-4 md:px-8 lg:px-16 pb-12",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("h2",{className:"text-white text-2xl md:text-4xl font-medium mb-2",style:{fontFamily:"'Playfair Display', serif"},children:["Gallery ",e.jsx("span",{className:"italic font-normal",children:"Highlights"})]}),e.jsx("div",{className:"mt-4 flex justify-center",children:e.jsx("div",{className:"w-16 h-[1px] bg-white/40"})})]}),d?e.jsx("div",{className:"flex justify-center items-center h-64",children:e.jsx("div",{className:"text-white/60",style:{fontFamily:"'Cormorant Garamond', serif"},children:"Loading gallery..."})}):c.length>0?e.jsxs(u,{opts:{align:"start",loop:!0},className:"w-full max-w-6xl mx-auto",children:[e.jsx(j,{className:"-ml-2 md:-ml-4",children:c.map((s,t)=>e.jsx(y,{className:"pl-2 md:pl-4 basis-full md:basis-1/2 lg:basis-1/3",children:e.jsx("div",{className:"aspect-[4/3] overflow-hidden rounded-lg border border-white/10 shadow-xl cursor-pointer transition-transform hover:scale-[1.02]",onClick:()=>i(s),children:e.jsx("img",{src:s.url,alt:`Gallery photo ${t+1}`,className:"w-full h-full object-cover",onError:()=>p(s.name)})})},t))}),e.jsx(w,{className:"left-0 md:-left-12 bg-white/10 border-white/20 text-white hover:bg-white/20"}),e.jsx(N,{className:"right-0 md:-right-12 bg-white/10 border-white/20 text-white hover:bg-white/20"})]}):e.jsxs("div",{className:"flex flex-col justify-center items-center h-64 text-center",children:[e.jsx("p",{className:"text-white/60 text-lg mb-2",style:{fontFamily:"'Cormorant Garamond', serif"},children:"Gallery photos coming soon"}),e.jsx("p",{className:"text-white/40 text-sm",children:'Upload photos to the "gallery-photos" storage bucket'})]})]}),e.jsxs("section",{className:"px-4 md:px-8 lg:px-16 pb-12 pt-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("h2",{className:"text-white text-2xl md:text-4xl font-medium mb-2",style:{fontFamily:"'Playfair Display', serif"},children:["AR ",e.jsx("span",{className:"italic font-normal",children:"Experience"})]}),e.jsx("div",{className:"mt-4 flex justify-center",children:e.jsx("div",{className:"w-16 h-[1px] bg-white/40"})})]}),e.jsx("div",{className:"max-w-2xl mx-auto",children:e.jsx(b,{})})]}),o&&e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/90 p-4",onClick:()=>i(null),children:[e.jsx("button",{className:"absolute top-4 right-4 text-white/70 hover:text-white text-4xl",onClick:()=>i(null),children:"Ã"}),e.jsx("img",{src:o.url,alt:"Gallery photo enlarged",className:"max-w-full max-h-[90vh] object-contain rounded-lg",onClick:s=>s.stopPropagation()})]}),e.jsxs("section",{className:"px-4 md:px-8 lg:px-16 pb-12 pt-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("h2",{className:"text-white text-2xl md:text-4xl font-medium mb-2",style:{fontFamily:"'Playfair Display', serif"},children:["Previous ",e.jsx("span",{className:"italic font-normal",children:"Galleries"})]}),e.jsx("div",{className:"mt-4 flex justify-center",children:e.jsx("div",{className:"w-16 h-[1px] bg-white/40"})})]}),e.jsx("div",{className:"max-w-4xl mx-auto",children:e.jsx("div",{className:"w-full h-[50vh] md:h-[60vh] rounded-lg overflow-hidden shadow-2xl border border-white/10",children:e.jsx("iframe",{src:"https://realsee.ai/GjVVp7aP",width:"100%",height:"100%",frameBorder:"0",scrolling:"no",title:"Previous Gallery Virtual Tour",className:"w-full h-full"})})})]}),e.jsx("footer",{className:"py-8 text-center",children:e.jsx("p",{className:"text-white/50 text-sm tracking-wide",style:{fontFamily:"'Cormorant Garamond', serif"},children:"Experience the gallery from anywhere in the world"})})]})]})]})};export{I as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.