1import{r as t,j as e,as as d,N as p,aH as i,B as m}from"./app-Ds4QqyXg.js";import{h as g}from"./colorful-campfires.jpg.asset-wcUreJwY.js";import{h as u}from"./astrophotography-hero.jpg.asset-CPNLPuwH.js";const o=[{title:"Sunscreen Science",date:"April 2, 2024",image:"https://slrntkheavvzpfzhuicw.supabase.co/storage/v1/object/public/site-images/discoveryplace.org/wp-content/uploads/2024/04/Sunscreen-Science-531x270.jpeg",alt:"Sunscreen on orange background with SPF question mark",link:"/about/discovery-on-demand/sunscreen-science"},{title:"Learning Canine CPR with CasPeR",date:"March 27, 2024",image:"https://slrntkheavvzpfzhuicw.supabase.co/storage/v1/object/public/site-images/discoveryplace.org/wp-content/uploads/2024/03/CasPeR-canine-CPR-531x270.png",alt:"CasPeR canine CPR training model",link:"/about/discovery-on-demand/canine-cpr"},{title:"Artist Takeover: The Impact of a Medical Illustrator",date:"December 21, 2023",image:"https://slrntkheavvzpfzhuicw.supabase.co/storage/v1/object/public/site-images/discoveryplace.org/wp-content/uploads/2023/12/Anne-Olson-531x270.jpg",alt:"Medical illustrator Anne Olson in black and white",link:"/about/discovery-on-demand/medical-illustrator"},{title:"Telescope Tales",date:"December 6, 2023",image:"https://slrntkheavvzpfzhuicw.supabase.co/storage/v1/object/public/site-images/discoveryplace.org/wp-content/uploads/2023/12/Hubble-531x270.jpeg",alt:"Hubble telescope",link:"/about/discovery-on-demand/telescope-tales"},{title:"Pancreatic Cancer Awareness Month",date:"November 16, 2023",image:"https://slrntkheavvzpfzhuicw.supabase.co/storage/v1/object/public/site-images/discoveryplace.org/wp-content/uploads/2023/11/Featured-Image-cropped-531x270.jpeg",alt:"Pancreatic cancer awareness",link:"/about/discovery-on-demand/pancreatic-cancer"},{title:"Master Mixology: Shaken Vs. Stirred",date:"October 21, 2023",image:"https://slrntkheavvzpfzhuicw.supabase.co/storage/v1/object/public/site-images/discoveryplace.org/wp-content/uploads/2023/10/Shaken-Stirred-Discovery-On-Demand_featured-image-1-531x270.jpeg",alt:"Shaken vs stirred mixology",link:"/about/discovery-on-demand/master-mixology"},{title:"Scorched Science: Colorful Campfires",date:"June 14, 2023",image:g.url,alt:"Campfire with colorful flames",link:"/about/discovery-on-demand/colorful-campfires"},{title:"DIY Catapult",date:"",image:"https://dscplace.wpengine.com/wp-content/uploads/2023/05/catapult.jpg",alt:"DIY catapult made from craft materials",link:"/about/discovery-on-demand/diy-catapult"},{title:"Capture the Night Sky with Your Smartphone",date:"",image:u.url,alt:"Night sky photographed with a smartphone",link:"/about/discovery-on-demand/night-sky-smartphone"},{title:"Bonus: Why Is Iceland Green and Greenland Icy?",date:"",image:"https://dscplace.wpengine.com/wp-content/uploads/2023/05/Iceland-1024x683.jpg",alt:"Iceland and Greenland comparison",link:"/about/discovery-on-demand/iceland-greenland"},{title:"Master Mixology: Drinks That Glow",date:"",image:"https://dscplace.wpengine.com/wp-content/uploads/2023/04/Master-Mixology-Glowing-Drinks-heroimage-1024x667.jpg",alt:"Glowing cocktails under blacklight",link:"/about/discovery-on-demand/drinks-that-glow"},{title:"Burning Calories: Tin Can Calorimetry",date:"",image:"https://dscplace.wpengine.com/wp-content/uploads/2023/04/Calorimetry-DonD-hero-image-1024x642.jpg",alt:"Tin can calorimetry experiment",link:"/about/discovery-on-demand/tin-can-calorimetry"},{title:"Getting Nutty: How Squirrels Prepare for Winter",date:"",image:"https://dscplace.wpengine.com/wp-content/uploads/2023/04/Eastern-Gray-Squirrel-1024x683.jpg",alt:"Squirrel storing nuts for winter",link:"/about/discovery-on-demand/squirrels-winter"},{title:"DIY Lung Model",date:"",image:"https://dscplace.wpengine.com/wp-content/uploads/2023/05/lung-cutout.jpg",alt:"DIY lung model made from a bottle and balloons",link:"/about/discovery-on-demand/diy-lung-model"},{title:"Celery Science",date:"",image:"https://dscplace.wpengine.com/wp-content/uploads/2023/04/Celery-Science-Card-892x1024.jpg",alt:"Celery stalks in cups of colored water",link:"/about/discovery-on-demand/celery-science"}],y=()=>{const[l,h]=t.useState("grid");t.useState("all");const[r,c]=t.useState(!1),s=9,n=r?o:o.slice(0,s);return e.jsxs(d,{children:[e.jsxs("section",{className:"relative overflow-hidden",style:{height:"50vh",minHeight:340,background:"#000"},children:[e.jsx("img",{fetchPriority:"high",decoding:"async",src:"https://slrntkheavvzpfzhuicw.supabase.co/storage/v1/object/public/site-images/dscplace.wpengine.com/wp-content/uploads/2023/03/Stay_at_Home_Science-scaled.jpg",alt:"Child exploring science with colorful liquids",className:"absolute inset-0 w-full h-full object-cover",style:{opacity:.5}}),e.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, hsl(210 50% 8%) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%)"}}),e.jsxs("div",{className:"relative z-10 container mx-auto px-4 max-w-7xl h-full flex flex-col pt-[200px]",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center",style:{background:"hsl(193 99% 39% / 0.2)"},children:e.jsx(p,{className:"w-5 h-5 text-primary"})}),e.jsx("span",{className:"text-xs font-heading font-bold uppercase tracking-[0.25em] text-primary",children:"Digital Learning Center"})]}),e.jsx("h1",{className:"hero-heading mb-3",children:"Discovery On Demand"}),e.jsx("p",{className:"text-lg md:text-xl text-white/70 max-w-xl font-body",children:"Explore science articles, experiments and behind-the-scenes stories from Discovery Place."})]})]}),e.jsx("section",{id:"articles",className:"py-16 md:py-20 scroll-mt-[176px] bg-background",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"font-heading text-3xl md:text-4xl font-bold text-foreground",children:"Featured Articles"}),e.jsx("p",{className:"mt-3 text-muted-foreground font-body text-lg max-w-lg mx-auto",children:"Explore our Discovery On Demand content"})]}),l==="grid"?e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:n.map(a=>
1e.jsxs(i,{to:a.link,className:"group rounded-2xl overflow-hidden bg-card border border-border border-t-4 border-t-primary hover:border-primary/40 hover:shadow-lg hover:shadow-primary/10 hover:-translate-y-1 transition-all duration-300",children:[e.jsxs("div",{className:"relative aspect-[531/270] overflow-hidden",children:[e.jsx("img",{src:a.image,alt:a.alt,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy",decoding:"async"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent"})]}),e.jsxs("div",{className:"p-5",children:[e.jsx("h3",{className:"font-heading font-bold text-lg text-foreground group-hover:text-primary transition-colors leading-snug",children:a.title}),e.jsx("span",{className:"inline-block mt-3 text-sm font-heading font-semibold text-primary uppercase tracking-wider",children:"Read Article â"})]})]},a.title))}):e.jsx("div",{className:"space-y-4",children:n.map(a=>e.jsxs(i,{to:a.link,className:"group flex gap-5 rounded-2xl overflow-hidden bg-card border border-border border-t-4 border-t-primary hover:border-primary/40 hover:shadow-lg hover:shadow-primary/10 transition-all duration-300 p-4",children:[e.jsx("div",{className:"relative w-48 shrink-0 rounded-xl overflow-hidden",children:e.jsx("img",{src:a.image,alt:a.alt,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy",decoding:"async"})}),e.jsxs("div",{className:"flex flex-col justify-center",children:[e.jsx("h3",{className:"font-heading font-bold text-lg text-foreground group-hover:text-primary transition-colors leading-snug",children:a.title}),e.jsx("span",{className:"inline-block mt-2 text-sm font-heading font-semibold text-primary uppercase tracking-wider",children:"Read Article â"})]})]},a.title))}),!r&&o.length>s&&e.jsx("div",{className:"text-center mt-12",children:e.jsx(m,{variant:"outline",onClick:()=>c(!0),className:"font-heading font-semibold rounded-full px-8 border-border text-foreground hover:border-primary hover:text-primary",children:"Show More Articles"})})]})})]})};export{y 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.