1 line
7.4 KiB
JavaScript
1 line
7.4 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{"/8Du":function(t,e,s){"use strict";s("QWBl"),s("yq1k"),s("FZtP");var a={props:{record:{},showtags:!1,pathPrefix:"",border:{type:Boolean,default:!0}},computed:{path:function(){return this.pathPrefix?this.pathPrefix+"/"+this.record.id:this.record.path},memberships:function(){var t=[],e=this.record.memberships;return e?(e.forEach((function(e){["foundation","tech","cofounders"].includes(e.title)&&t.push(e)})),t):[]}},methods:{displaytags:function(){return this.showtags},img:function(t){return t?t.src?t.src:t:""}}},i=(s("ai9I"),s("KHd+")),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"flex flex-post px-0 sm:px-4 pb-8 mb-8",class:{"no-border":!t.border}},[s("g-link",{staticClass:"post-card-image-link",attrs:{to:t.path}},[s("g-image",{staticClass:"post-card-image",attrs:{src:t.img(t.record.image),alt:t.record.title}})],1),s("div",[s("g-link",{attrs:{to:t.path}},[s("h2",{staticClass:"post-card-title mt-3"},[t._v(t._s(t.record.title||t.record.name))]),s("p",{staticClass:"post-card-excerpt text-gray-700"},[t._v(t._s(t.record.excerpt))]),s("section",{staticClass:"flex flex-wrap post-tags container mx-auto relative py-1"},t._l(t.memberships,(function(e){return s("g-link",{key:e.id,staticClass:"text-xs bg-transparent hover:text-blue-700 py-1 px-2 mr-1 border hover:border-blue-500 border-gray-600 text-gray-700 rounded-full mb-2",attrs:{to:e.path}},[t._v(t._s(e.title))])})),1)]),s("div",{staticClass:"w-full post-card-meta pt-2"},[s("div",{staticClass:"avatars"},[s("div",{staticClass:"flex items-center"},[s("div",{staticClass:"flex justify-between items-center"},[s("ul",{staticClass:"list-none flex author-list m-0"},t._l(t.record.authors,(function(e){return s("li",{key:e.id,staticClass:"author-list-item"},[s("g-link",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.name,expression:"author.name"}],attrs:{to:e.path}},[s("g-image",{staticClass:"w-8 h-8 rounded-full bg-gray-200 border-2 border-white",attrs:{src:t.img(e.image),alt:e.name}})],1)],1)})),0)]),s("div",{staticClass:"flex flex-col text-xs leading-none uppercase"},[s("p",[s("g-link",{attrs:{to:t.path}},[s("time",{attrs:{datetime:t.record.datetime}},[t._v(t._s(t.record.humanTime))])])],1),s("p",[s("g-link",{attrs:{to:t.path}},[s("time",{attrs:{datetime:t.record.datetime}},[t._v(t._s(t.record.startDate))])]),t._v("\n "+t._s(t.record.status)+"\n ")],1)])]),t.displaytags()?s("section",{staticClass:"post-tags container mx-auto relative py-3"},t._l(t.record.tags,(function(e){return s("g-link",{key:e.id,staticClass:"text-xs bg-transparent hover:text-blue-700 py-2 px-4 mr-2 border hover:border-blue-500 border-gray-600 text-gray-700 rounded-full",attrs:{to:e.path}},[t._v(t._s(e.title))])})),1):t._e()])])],1)],1)}),[],!1,null,"feba5cb4",null);e.a=r.exports},"4Ciq":function(t,e,s){"use strict";s.r(e);s("QWBl"),s("FZtP");var a=s("/8Du"),i=s("davN"),r={components:{PostListItem:a.a,TagFilterHeader:i.a},computed:{tags:function(){var t=[{title:"All",path:"/partners"}];return this.$page.tags.edges.forEach((function(e){return t.push({title:e.node.title,path:e.node.path})})),t}},mounted:function(){console.log(this.$page)}},n=s("KHd+"),l=null,o=Object(n.a)(r,(function(){var t=this.$createElement,e=this._self._c||t;return e("Layout",[this.$page.tags.edges.length>1?e("TagFilterHeader",{attrs:{tags:this.tags,selected:"all"}}):this._e(),e("div",{staticClass:"container mt-8 sm:pxi-0 mx-auto overflow-x-hidden"},[e("div",{staticClass:"flex flex-wrap with-large pt-8 pb-8 mx-4 sm:-mx-4"},this._l(this.$page.entries.edges,(function(t){return e("PostListItem",{key:t.id,attrs:{record:t.node,pathPrefix:"/partners"}})})),1)])],1)}),[],!1,null,null,null);"function"==typeof l&&l(o);e.default=o.exports},ApE8:function(t,e,s){},Ik6I:function(t,e,s){"use strict";s("ApE8")},ai9I:function(t,e,s){"use strict";s("tz9O")},davN:function(t,e,s){"use strict";var a={props:["tags","selected"],data:function(){return{tag:"All",isOpen:!1,open:!1,active:null}},methods:{setActive:function(t){this.active=t,this.open=!this.open},close:function(t){this.$el.contains(t.target)||(this.open=!1)},resetAll:function(){this.$emit("resetAll",!0)}},mounted:function(){document.addEventListener("click",this.close)},beforeDestroy:function(){document.removeEventListener("click",this.close)}},i=(s("Ik6I"),s("KHd+")),r=Object(i.a)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"fixed top-16 left-0 z-50 mb-5 h-16 bg-gray-100 w-full"},[s("header",{staticClass:"flex items-center flex-wrap container mx-auto pt-1 pb-0 sm:px-0 transition-all transition-500"},[s("div",{staticClass:"flex items-center justify-between px-4 sm:p-0"},[t._m(0),s("div",{staticClass:"sm:block md:hidden"},[s("ul",{staticClass:"list-none inline-flex justify-center md:justify-end"},[s("li",{staticClass:"py-1 mx-5 cursor-pointer",on:{click:function(e){return t.resetAll()}}},[t._v("Reset")])])])]),s("nav",{staticClass:"inline-flex md:order-2 px-2 pt-2 pb-4 sm:flex sm:p-0 bg-transparent"},[s("ul",{staticClass:"list-none sm:flex justify-left capitalize transition-all transition-500"},[s("li",{staticClass:"pt-2 mx-5"},[s("div",{staticClass:"relative",attrs:{"x-data":"{ open: false }"}},[s("button",{staticClass:"flex flex-row items-center w-full md:w-auto md:inline md:mt-0 md:ml-4 animated-link",on:{click:function(e){return t.setActive(0)}}},[s("span",{staticClass:"capitalize"},[t._v(t._s(t.selected))]),s("svg",{staticClass:"inline w-4 h-4 mt-1 ml-1 transition-transform duration-200 transform md:-mt-1",class:{"rotate-180":0==t.active,"rotate-0":0==!t.active},attrs:{fill:"currentColor",viewBox:"0 0 20 20"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"}})])]),0==t.active?s("div",{staticClass:"absolute w-full mt-2 origin-top-right rounded-md shadow-lg md:w-48 z-30",attrs:{"x-show":"open","x-transition:enter":"transition ease-out duration-100","x-transition:enter-start":"transform opacity-0 scale-95","x-transition:enter-end":"transform opacity-100 scale-100","x-transition:leave":"transition ease-in duration-75","x-transition:leave-start":"transform opacity-100 scale-100","x-transition:leave-end":"transform opacity-0 scale-95"}},[t.open?s("div",{staticClass:"w-64 max-h-10 px-2 py-2 bg-white rounded-md shadow dark:bg-gray-700"},t._l(t.tags,(function(e){return s("a",{key:e.path,staticClass:"cursor-pointer block px-4 py-2 mt-2 text-sm font-semibold bg-transparent rounded-lg dark:bg-transparent dark:hover:bg-gray-600 dark-:focus:bg-gray-600 dark:focus:text-white dark:hover:text-white dark:text-gray-200 md:mt-0 hover:text-gray-900 focus:text-gray-900 hover:bg-gray-200 focus:bg-gray-200 focus:outline-none focus:shadow-outline",attrs:{href:e.path},on:{click:function(e){if(e.target!==e.currentTarget)return null;t.open=!1}}},[t._v(t._s(e.title))])})),0):t._e()]):t._e()])])])]),s("div",{staticClass:"hidden md:ml-auto md:inline-block md:order-last"},[s("ul",{staticClass:"list-none inline-flex justify-center md:justify-end"},[s("li",{staticClass:"py-1 mx-5 cursor-pointer",on:{click:function(e){return t.resetAll()}}},[t._v("Reset")])])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"inline-flex items-center flex-shrink-0"},[e("span",{staticClass:"flex text-xl p-3 capitalize tracking-tight"},[this._v("filter:")])])}],!1,null,"04797611",null);e.a=r.exports},tz9O:function(t,e,s){}}]); |