2 lines
2.5 KiB
JavaScript
2 lines
2.5 KiB
JavaScript
import{a as b}from"./chunk-MWOEXFYD.js";import{f as E}from"./chunk-ZEULGWAI.js";import"./chunk-MBEC6LK4.js";import{Ba as d,Eb as a,Fa as r,Fb as s,M as p,Pb as x,Ta as u,Tb as m,Ub as g,Xb as h,Ya as c,jb as l,kb as i,lb as n,mb as f,qc as y,rc as _,sb as v,uc as w,vc as S}from"./chunk-TVKQFRWX.js";import"./chunk-DAQOROHW.js";var R=t=>["/actualites",t];function A(t,o){if(t&1&&f(0,"img",15),t&2){let e=v().$implicit;l("src",e.featuredImage,d)("alt",e.title)}}function F(t,o){if(t&1&&(i(0,"article",8),c(1,A,1,2,"img",9),i(2,"div",10)(3,"time",11),a(4),m(5,"date"),n(),i(6,"h2",12),a(7),n(),i(8,"p",13),a(9),n(),i(10,"a",14),a(11,"Lire l\u2019article \u2192"),n()()()),t&2){let e=o.$implicit;r(),l("ngIf",e.featuredImage),r(3),s(h(5,5,e.date,"d MMMM y","","fr")),r(3),s(e.title),r(2),s(e.excerpt||"Consultez cette actualit\xE9 pour en savoir plus sur les activit\xE9s du RSU."),r(),l("routerLink",x(10,R,e.id))}}function M(t,o){if(t&1&&(i(0,"div",1)(1,"div",6),c(2,F,12,12,"article",7),n()()),t&2){let e=o.ngIf;r(2),l("ngForOf",e.articles)}}var C=class t{contentService=p(b);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=u({type:t,selectors:[["app-rsu-articles"]],decls:9,vars:3,consts:[[1,"bg-primary-800","py-14","text-white"],[1,"container-custom"],[1,"text-4xl","font-bold","text-white","md:text-5xl"],[1,"mt-4","max-w-2xl","text-white/75"],[1,"section","bg-slate-50"],["class","container-custom",4,"ngIf"],[1,"grid","gap-7","md:grid-cols-2","lg:grid-cols-3"],["class","overflow-hidden rounded-2xl bg-white shadow-card transition hover:-translate-y-1 hover:shadow-soft-lg",4,"ngFor","ngForOf"],[1,"overflow-hidden","rounded-2xl","bg-white","shadow-card","transition","hover:-translate-y-1","hover:shadow-soft-lg"],["class","h-56 w-full object-cover",3,"src","alt",4,"ngIf"],[1,"p-6"],[1,"text-xs","font-semibold","uppercase","tracking-wider","text-primary-700"],[1,"mt-3","line-clamp-3","text-xl","font-bold"],[1,"mt-3","line-clamp-3","text-sm","leading-6","text-slate-600"],[1,"mt-5","inline-flex","font-semibold","text-primary-700","hover:text-primary-800",3,"routerLink"],[1,"h-56","w-full","object-cover",3,"src","alt"]],template:function(e,I){e&1&&(i(0,"section",0)(1,"div",1)(2,"h1",2),a(3,"Actualit\xE9s du RSU"),n(),i(4,"p",3),a(5,"Suivez les activit\xE9s et les avanc\xE9es du Registre Social Unique."),n()()(),i(6,"section",4),c(7,M,3,1,"div",5),m(8,"async"),n()),e&2&&(r(7),l("ngIf",g(8,1,I.contentService.content$)))},dependencies:[y,_,E,w,S],encapsulation:2})};export{C as RsuArticlesComponent};
|