PageSourceSearch

https://fonds.lv/build/assets/TileWithGradiant-DkH4WarQ.js

js fonds.lv collected 2026-10-01 12:26:01 UTC 1,803 bytes, 5 lines download raw bytes

1import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{f as d,b as a,n as l,g as f,t as u,s as p,W as x,o as m}from"./app-BFBm0Bhp.js";const h={name:"Tile",props:{post:{type:Object,default:[]},classes:{type:String,default:"h-60 md:h-80 bg-accent"},textPositions:{type:String,default:"md:w-1/3"},buttonPosition:{type:String,default:"inset-x-0"},gradientColor:{type:String,default:"#0098FF"},showExcerpt:{type:Boolean,default:!1}},computed:{backgroundStyle(){var t;return{backgroundImage:`linear-gradient(
2                            to top left,
3                            ${this.gradientColor} 0%,
4                            transparent 70%
5                          ), url('${this.getImageUrl((t=this.post)==null?void 0:t.image)}')`,backgroundSize:"cover",backgroundPosition:"center"}}},data(){return{locale:this.$page.props.appLocale}},methods:{getImageUrl(t){return window.Laravel.baseUrl+t},truncateExcerpt(t,o=490){if(!t||t.length<=o)return t;let e=t.slice(0,o);const s=e.lastIndexOf(" ");return s>0&&(e=e.slice(0,s)),e+" ..."}}},b={class:"group"},_={class:"text-3xl md:text-4xl text-white font-metaPro text-right uppercase leading-none"},y={key:0,class:"text-md md:text-xl text-white text-right font-lora leading-none"};function S(t,o,e,s,n,r){var i,c;return m(),d("div",b,[a("div",{class:l(["w-full flex p-5 relative",e.classes]),style:x(r.backgroundStyle)},[a("div",{class:l(["mt-auto m-6 space-y-3 flex flex-col md:ml-auto md:mb-10 md:ml-auto mb-16",e.textPositions])},[a("h1",_,u((i=e.post)==null?void 0:i.name[n.locale]),1),e.showExcerpt?(m(),d("p",y,u(r.truncateExcerpt((c=e.post)==null?void 0:c.excerpt[n.locale],490)),1)):f("",!0)],2),a("div",{class:l(["absolute bottom-0",e.buttonPosition])},[p(t.$slots,"button")],2)],6)])}const v=g(h,[["render",S]]);export{v 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.