PageSourceSearch

https://folksy.com/build/_shared/chunk-YZ5NDT7T.js

js folksy.com collected 2026-09-24 08:47:41 UTC 6,614 bytes, 1 lines download raw bytes

1import{a as m}from"/build/_shared/chunk-M4L5WTFN.js";import{b as k}from"/build/_shared/chunk-G7JOKBZZ.js";import{a as L}from"/build/_shared/chunk-DP3MTLBU.js";import{b as j,c as N}from"/build/_shared/chunk-7DS4SBON.js";import{d as n,g as f,h,i as x,k as b,l as w}from"/build/_shared/chunk-H4UJXLRU.js";f();h();x();w();b();var a=n(L()),y=n(j());var e=n(N()),$=({title:u,slug:g,description:C,giftGuides:i=[],variant:I="grid",basePath:c="/gift-guides",linkSuffix:d="",onGuideClick:l})=>{let p=(0,y.useRef)(null),v=t=>{let o=p.current;if(!o)return;let r=o.offsetWidth*.8;o.scrollBy({left:t==="left"?-r:r,behavior:"smooth"})};return i.length?(0,e.jsxs)("section",{className:"gift-guides-collection py-6 px-3 md:py-10 md:px-8",children:[(0,e.jsxs)("div",{className:"mb-6 md:mb-8 text-center",children:[(0,e.jsx)("div",{className:"inline-block bg-gradient-to-r from-pink-100 to-purple-100 text-pink-800 text-xs font-semibold uppercase px-3 py-1 rounded-full mb-2 tracking-wide",children:"Gift Guide Collection"}),(0,e.jsx)(k,{className:"text-2xl md:text-3xl lg:text-4xl font-extrabold text-neutral-900 mb-3 md:mb-4 px-2",children:g?(0,e.jsx)("a",{href:`${c}/${g.current}${d}`,className:"focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-pink-400 hover:underline underline-offset-4",children:u}):u})]}),I==="carousel"?(0,e.jsxs)("div",{className:"relative md:px-16",children:[(0,e.jsx)("button",{onClick:()=>v("left"),className:"hidden md:block absolute left-0 top-1/2 -translate-y-1/2 z-10 bg-white p-3 rounded-full shadow-lg hover:bg-pink-50 transition-colors","aria-label":"Scroll Left",children:(0,e.jsx)(a.ChevronLeftIcon,{className:"h-6 w-6 text-neutral-600"})}),(0,e.jsx)("button",{onClick:()=>v("right"),className:"hidden md:block absolute right-0 top-1/2 -translate-y-1/2 z-10 bg-white p-3 rounded-full shadow-lg hover:bg-pink-50 transition-colors","aria-label":"Scroll Right",children:(0,e.jsx)(a.ChevronRightIcon,{className:"h-6 w-6 text-neutral-600"})}),(0,e.jsx)("div",{ref:p,className:"flex overflow-x-auto gap-4 md:gap-6 scroll-smooth py-4 snap-x snap-mandatory md:no-scrollbar -mx-3 px-3 md:mx-0 md:px-0",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:i.map((t,o)=>{let r=t.title||t.slug,s=t.coverImage?m(t.coverImage).width(400).height(300).url():t.coverImageFromItems?`https://imagedelivery.net/0ObHXyjKhN5YJrtuYFSvjQ/${t.coverImageFromItems}/public`:null;return(0,e.jsx)("div",{className:"flex-shrink-0 w-[80vw] sm:w-72 md:w-80 snap-start relative",children:(0,e.jsxs)("a",{href:`${c}/${t.slug}${d}`,onClick:()=>l==null?void 0:l(t,o),className:"block bg-white rounded-2xl shadow-lg overflow-hidden border border-neutral-150 hover:shadow-xl transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-pink-400 group",children:[s?(0,e.jsxs)("div",{className:"relative h-48 overflow-hidden",children:[(0,e.jsx)("img",{src:s,alt:r,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),(0,e.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 to-transparent"})]}):(0,e.jsx)("div",{className:"h-48 bg-gradient-to-br from-pink-100 to-purple-100 flex items-center justify-center",children:(0,e.jsx)("div",{className:"w-16 h-16 bg-gradient-to-r from-pink-400 to-purple-400 rounded-2xl flex items-center justify-center",children:(0,e.jsx)("svg",{className:"w-8 h-8 text-white",fill:"currentColor",viewBox:"0 0 20 20",children:(0,e.jsx)("path",{fillRule:"evenodd",d:"M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z",clipRule:"evenodd"})})})}),(0,e.jsxs)("div",{className:"p-4 md:p-6",children:[(0,e.jsx)("h3",{className:"text-lg md:text-xl font-bold text-neutral-900 mb-2 group-hover:text-pink-600 transition-colors",children:r}),(0,e.jsxs)("div",{className:"inline-flex items-center text-pink-600 text-sm font-medium group-hover:text-pink-700",children:["Browse Collection",(0,e.jsx)("svg",{className:"ml-1 w-4 h-4 group-hover:translate-x-1 transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})},t.slug||o)})})]}):(0,e.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6 lg:gap-8",children:i.map((t,o)=>{let r=t.title||t.slug,s=t.coverImage?m(t.coverImage).width(400).height(300).url():t.coverImageFromItems?`https://imagedelivery.net/0ObHXyjKhN5YJrtuYFSvjQ/${t.coverImageFromItems}/public`:null;return(0,e.jsxs)("a",{href:`${c}/${t.slug}${d}`,onClick:()=>l==null?void 0:l(t,o),className:"block bg-white rounded-2xl shadow-lg overflow-hidden border border-neutral-150 hover:shadow-xl transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-pink-400 group",children:[s?(0,e.jsxs)("div",{className:"relative h-48 overflow-hidden",children:[(0,e.jsx)("img",{src:s,alt:r,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),(0,e.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 to-transparent"})]}):(0,e.jsx)("div",{className:"h-48 bg-gradient-to-br from-pink-100 to-purple-100 flex items-center justify-center",children:(0,e.jsx)("div",{className:"w-16 h-16 bg-gradient-to-r from-pink-400 to-purple-400 rounded-2xl flex items-center justify-center",children:(0,e.jsx)("svg",{className:"w-8 h-8 text-white",f
1ill:"currentColor",viewBox:"0 0 20 20",children:(0,e.jsx)("path",{fillRule:"evenodd",d:"M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z",clipRule:"evenodd"})})})}),(0,e.jsxs)("div",{className:"p-4 md:p-6",children:[(0,e.jsx)("h3",{className:"text-lg md:text-xl font-bold text-neutral-900 mb-2 group-hover:text-pink-600 transition-colors",children:r}),(0,e.jsxs)("div",{className:"inline-flex items-center text-pink-600 text-sm font-medium group-hover:text-pink-700",children:["Browse Collection",(0,e.jsx)("svg",{className:"ml-1 w-4 h-4 group-hover:translate-x-1 transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]},t.slug||o)})})]}):(0,e.jsx)("section",{className:"gift-guides-collection py-6 px-3 md:py-10 md:px-8",children:(0,e.jsx)("div",{className:"text-center py-12 md:py-16 bg-neutral-100 rounded-lg shadow-inner",children:(0,e.jsx)("p",{className:"text-neutral-500",children:"No gift guides found for this collection."})})})},Y=$;export{Y as a};

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.