This commit is contained in:
f4ilji
2024-10-04 12:48:19 +05:00
parent 21a6e9073b
commit cebc584a14
303 changed files with 8224 additions and 2563 deletions
@@ -0,0 +1 @@
import{_ as l}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as a,c as i,b as t,t as n,f as c}from"./app-C722ecVx.js";const d={name:"ClientPost",data(){return{}},methods:{textLimit(s,o){if(s.length>o){let e;return e=s.substring(0,o),e+"..."}return s}},props:{post:{type:Array}}},h={class:"group cursor-pointer"},u={class:"overflow-hidden rounded-md max-h-[250px] bg-gray-100 transition-all hover:scale-105 dark:bg-gray-800"},g=["href"],m=["src"],_={class:""},p={key:0,class:"flex gap-3"},x=["href"],f={class:"inline-block text-xs font-medium tracking-wider uppercase mt-5 text-blue-600"},y={key:1,class:"flex gap-3"},v={class:"text-lg font-semibold leading-snug tracking-tight mt-2 dark:text-white"},k=["href"],b={class:"duration-200 group-hover:text-gray-500"},w={class:""},C={class:"mt-2 line-clamp-3 text-sm text-gray-500 dark:text-gray-400"},B=["href"],L={class:"mt-3 flex items-center space-x-3 text-gray-500 dark:text-gray-400"},q={class:"flex items-center gap-3"},z={key:0,class:"truncate text-sm"},N={class:"truncate text-sm"};function P(s,o,e,T,V,r){return a(),i("div",h,[t("div",u,[t("a",{class:"relative block aspect-square",href:s.route("client.post.show",e.post.slug)},[t("img",{alt:"Thumbnail",loading:"lazy",decoding:"async","data-nimg":"fill",class:"object-cover transition-all",style:{position:"absolute",height:"100%",width:"100%",inset:"0px",color:"transparent"},sizes:"(max-width: 768px) 30vw, 33vw",src:e.post.preview?"/storage/"+e.post.preview:"/img/thumbnail-1.png"},null,8,m)],8,g)]),t("div",_,[t("div",null,[e.post.category?(a(),i("div",p,[t("a",{href:s.route("client.post.index",{"category[]":e.post.category.slug})},[t("span",f,n(e.post.category?e.post.category.title:"Новости"),1)],8,x)])):(a(),i("div",y,o[0]||(o[0]=[t("span",null,[t("span",{class:"inline-block text-xs font-medium tracking-wider uppercase mt-5 text-blue-600"}," Новости ")],-1)]))),t("h2",v,[t("a",{href:s.route("client.post.show",e.post.slug)},[t("span",b,n(e.post.title),1)],8,k)]),t("div",w,[t("p",C,[t("a",{href:s.route("client.post.show",e.post.slug)},"It is a cliche philosophical question, but it touches on something fundamental about how humans relate to the world around them. ",8,B)])]),t("div",L,[t("span",null,[t("div",q,[e.post?(a(),i("span",z,n(r.textLimit(e.post.authors[0],20)),1)):c("",!0)])]),o[1]||(o[1]=t("span",{class:"text-xs text-gray-300 dark:text-gray-600"},"•",-1)),t("span",N,n(e.post.created_post),1)])])])])}const D=l(d,[["render",P]]);export{D as C};