PageSourceSearch

https://www.lecafedelecommerce.fr/_nuxt/B9eKQP0-.js

js lecafedelecommerce.fr collected 2026-09-25 03:02:02 UTC 4,788 bytes, 1 lines download raw bytes

1import{d as w,u as x,R as y,S as b,b as p,c as r,e,l as f,f as l,g as h,w as v,F as k,r as C,_ as A,i as L,o as i,t as d,h as u}from"./Ga8GHpHb.js";const j={class:"bg-gray-50 min-h-screen py-24 sm:py-32"},D={class:"mx-auto max-w-7xl px-6 lg:px-8"},E={key:0,class:"mb-16 relative z-10"},T={class:"relative w-full lg:w-1/2 aspect-[16/9] lg:aspect-auto overflow-hidden"},B=["src","alt"],N={class:"flex flex-col justify-center p-8 lg:w-1/2 lg:p-12"},V={class:"flex items-center gap-x-4 text-xs font-bold uppercase tracking-wider text-primary mb-4"},F=["datetime"],R={class:"mt-3 text-3xl font-display font-bold leading-tight text-dark group-hover:text-gray-700 transition-colors"},S={class:"mt-5 text-base leading-relaxed text-gray-600 line-clamp-3"},H={key:1,class:"mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-12 lg:mx-0 lg:max-w-none lg:grid-cols-3"},$={class:"relative aspect-[16/9] sm:aspect-[2/1] lg:aspect-[3/2] overflow-hidden"},z=["src","alt"],M={class:"p-6 flex flex-col flex-1"},q={class:"flex items-center gap-x-4 text-xs text-gray-500 mb-3"},G=["datetime"],I={class:"text-xl font-display font-bold leading-snug text-dark group-hover:text-primary transition-colors mb-3"},J={class:"mt-2 line-clamp-3 text-sm leading-6 text-gray-600 flex-1"},K={key:2,class:"text-center py-20"},Q=w({__name:"index",setup(O){x({title:"Actualités - Le Café de l'E-Commerce"}),x({meta:[{name:"description",content:"Toute l'actualité du e-commerce : tendances, analyses et décryptages par Le Café de l'E-Commerce."},{property:"og:title",content:"Actualités - Le Café de l'E-Commerce"},{property:"og:description",content:"Toute l'actualité du e-commerce par Le Café de l'E-Commerce."}]});const _=L("news"),m=n=>new Date(n).toLocaleDateString("fr-FR",{day:"numeric",month:"long",year:"numeric"}),a=y([]);b(_,n=>{if(!n||n.length===0){a.value=[];return}a.value=[...n].sort((t,c)=>{const s=new Date(c.publishedAt).getTime()-new Date(t.publishedAt).getTime();return s===0?t.slug.localeCompare(c.slug):s})},{immediate:!0});const o=p(()=>a.value.length>0?a.value[0]:null),g=p(()=>a.value.length>1?a.value.slice(1):[]);return(n,t)=>{const c=A;return i(),r("div",j,[e("div",D,[t[8]||(t[8]=e("div",{class:"mx-auto max-w-2xl text-center mb-16"},[e("h2",{class:"text-4xl lg:text-5xl font-display font-bold tracking-tight text-dark mb-4"},"Actualités"),e("p",{class:"text-lg leading-8 text-gray-600"}," Les dernières tendances, analyses et nouvelles du monde du e-commerce. ")],-1)),l(o)?(i(),r("div",E,[h(c,{to:`/news/${l(o).slug}`,class:"group relative isolate flex flex-col gap-8 lg:flex-row overflow-hidden rounded-3xl bg-white shadow-xl transition-all hover:shadow-2xl"},{default:v(()=>[e("div",T,[e("img",{src:l(o).image,alt:l(o).title,class:"absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-105"},null,8,B),t[0]||(t[0]=e("div",{class:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent lg:hidden"},null,-1))]),e("div",N,[e("div",V,[e("time",{datetime:l(o).publishedAt},d(m(l(o).publishedAt)),9,F),t[1]||(t[1]=e("span",{class:"w-1 h-1 rounded-full bg-gray-300"},null,-1)),t[2]||(t[2]=e("span",null,"À la une",-1))]),e("h3",R,d(l(o).title),1),e("p",S,d(l(o).excerpt),1),t[3]||(t[3]=e("div",{class:"mt-8 flex items-center gap-2 text-sm font-semibold text-dark"},[u(" Lire l'article "),e("span",{"aria-hidden":"true",class:"transition-transform group-hover:translate-x-1"},"→")],-1))])]),_:1},8,["to"])])):f("",!0),l(g).length>0?(i(),r("div",H,[(i(!0),r(k,null,C(l(g),s=>(i(),r("article",{key:s.slug,class:"group relative flex flex-col justify-between bg-white rounded-2xl shadow-sm transition-all hover:shadow-lg hover:-translate-y-1 overflow-hidden h-full"},[e("div",$,[e("img",{src:s.image,alt:s.title,class:"absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-110"},null,8,z),t[4]||(t[4]=e("div",{class:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10 pointer-events-none"},null,-1))]),e("div",M,[e("div",q,[e("time",{datetime:s.publishedAt},d(m(s.publishedAt)),9,G)]),e("h3",I,[h(c,{to:`/news/${s.slug}`},{default:v(()=>[t[5]||(t[5]=e("span",{class:"absolute inset-0"},null,-1)),u(" "+d(s.title),1)]),_:2},1032,["to"])]),e("p",J,d(s.excerpt),1),t[6]||(t[6]=e("div",{class:"mt-6 flex items-center text-sm font-medium text-primary"},[u(" Lire la suite "),e("svg",{class:"ml-2 w-4 h-4 transition-transform group-hover:translate-x-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"})])],-1))])]))),128))])):l(o)?f("",!0):(i(),r("div",K,[...t[7]||(t[7]=[e("p",{class:"text-gray-500"},"Aucune actualité pour le moment.",-1)])]))])])}}});
1export{Q 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.