PageSourceSearch

https://glam.ai/assets/blog-fvxrKCLE.js

js glam.ai collected 2026-10-02 15:04:13 UTC 2,254 bytes, 1 lines download raw bytes

1import{j as e,r as i}from"./vendor_radix-OWD_HMmK.js";import{c as n}from"./vendor_contentful-DwpTcoAT.js";import{L as m}from"./main-CquGK1_H.js";import{t as c,f as x,S as d}from"./subscribe-BRcGrrch.js";import{F as p}from"./index-BBQvW4OV.js";import"./vendor_better-auth-BfOIe3d_.js";import"./vendor_swiper-CtacudXp.js";import"./vendor_gsap-DGRpJ0tQ.js";import"./input-Bp5a6Ny1.js";function f(){const o=()=>{const t=document.getElementById("subscribe-form");t&&setTimeout(()=>{t.scrollIntoView({behavior:"smooth",block:"start"})},100)};return e.jsx("a",{className:"flex items-center justify-center bg-gray-700 transition-all hover:bg-white absolute left-[50%] bottom-0 translate-x-[-50%] cursor-pointer rounded-full px-6 py-4 w-[166px] h-[44px]",href:"#subscribe-form",onClick:t=>{t.preventDefault(),o()},children:e.jsx("span",{className:"gradient-text font-semibold",children:"Join Updates"})})}function D(){const[o,t]=i.useState();return i.useEffect(()=>{(async()=>{const r=await n.getEntries({content_type:"blog"});if(!r?.items)return t([]);t(r.items.sort((a,l)=>Number(new Date(l?.fields?.date||l?.sys?.createdAt||0))-Number(new Date(a?.fields?.date||a?.sys?.createdAt||0))))})()},[n]),o?e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"max-w-[1624px] max-md:mx-4 md:pr-4 xl:mx-auto mt-4",children:[e.jsx("h2",{className:"text-[32px]/[36px] md:text-[32px]/[56px]",children:"Blog"}),e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:"images/blog/banner.webp",className:"xl:h-[218px] w-auto mx-auto mb-[35px]"}),e.jsx(f,{})]}),e.jsx("div",{className:"grid md:grid-cols-3 xl:grid-cols-4 gap-x-[24px] gap-y-[44px] mb-35",children:o.map(s=>{const r=s.fields.title,a=c(r);return e.jsxs(m,{to:"/post/$slug",className:"flex flex-col p-2 pb-4 rounded-3xl bg-gray-900 cursor-pointer",params:{slug:a},children:[s.fields.mainImage?.fields?.file?e.jsx("img",{src:s.fields.mainImage.fields.file.url,className:"mb-[26px] rounded-[20px] h-[240px] w-full object-cover"}):null,e.jsx("h3",{className:"text-2xl font-semibold px-2",children:r}),e.jsx("div",{className:"flex flex-col flex-grow-1 justify-end text-base font-medium text-gray-100 mt-4 px-2",children:x(s.fields.date)})]},a)})}),e.jsx(d,{})]}),e.jsx(p,{})]}):null}export{D as component};

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.