first commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import{_ as r}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o,c as a,b as t,t as i,f as l}from"./app-DmJ8GS-7.js";const d={name:"ClientPost",data(){return{}},methods:{textLimit(s,n){if(s.length>n){let e;return e=s.substring(0,n),e+"..."}return s}},props:{post:{type:Array}}},h={class:"group cursor-pointer"},_={class:"overflow-hidden rounded-md max-h-[250px] bg-gray-100 transition-all hover:scale-105 dark:bg-gray-800"},u=["href"],g=["src"],m={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=t("span",null,[t("span",{class:"inline-block text-xs font-medium tracking-wider uppercase mt-5 text-blue-600"}," Новости ")],-1),k=[v],b={class:"text-lg font-semibold leading-snug tracking-tight mt-2 dark:text-white"},w=["href"],C={class:"duration-200 group-hover:text-gray-500"},B={class:""},L={class:"mt-2 line-clamp-3 text-sm text-gray-500 dark:text-gray-400"},q=["href"],z={class:"mt-3 flex items-center space-x-3 text-gray-500 dark:text-gray-400"},N={class:"flex items-center gap-3"},P={key:0,class:"truncate text-sm"},T=t("span",{class:"text-xs text-gray-300 dark:text-gray-600"},"•",-1),V={class:"truncate text-sm"};function j(s,n,e,A,D,c){return o(),a("div",h,[t("div",_,[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,g)],8,u)]),t("div",m,[t("div",null,[e.post.category?(o(),a("div",p,[t("a",{href:s.route("client.post.index",{"category[]":e.post.category.slug})},[t("span",f,i(e.post.category?e.post.category.title:"Новости"),1)],8,x)])):(o(),a("div",y,k)),t("h2",b,[t("a",{href:s.route("client.post.show",e.post.slug)},[t("span",C,i(e.post.title),1)],8,w)]),t("div",B,[t("p",L,[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,q)])]),t("div",z,[t("span",null,[t("div",N,[e.post?(o(),a("span",P,i(c.textLimit(e.post.authors[0],20)),1)):l("",!0)])]),T,t("span",V,i(e.post.created_post),1)])])])])}const S=r(d,[["render",j]]);export{S as C};
|
||||
Reference in New Issue
Block a user