-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
1 lines (1 loc) · 13.2 KB
/
app.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{172:function(t,e){},173:function(t,e,s){"use strict";var i=s(4),n=s(50).filter,r=s(51),a=s(36),l=r("filter"),o=a("filter");i({target:"Array",proto:!0,forced:!l||!o},{filter:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},174:function(t,e,s){"use strict";var i=s(4),n=s(35),r=s(22),a=s(3),l=s(52),o=[],c=o.sort,p=a((function(){o.sort(void 0)})),d=a((function(){o.sort(null)})),u=l("sort");i({target:"Array",proto:!0,forced:p||!d||!u},{sort:function(t){return void 0===t?c.call(r(this)):c.call(r(this),n(t))}})},175:function(t,e,s){var i=s(4),n=s(176);i({global:!0,forced:parseInt!=n},{parseInt:n})},176:function(t,e,s){var i=s(1),n=s(76).trim,r=s(77),a=i.parseInt,l=/^[+-]?0[Xx]/,o=8!==a(r+"08")||22!==a(r+"0x16");t.exports=o?function(t,e){var s=n(String(t));return a(s,e>>>0||(l.test(s)?16:10))}:a},177:function(t,e){t.exports={sm:640,md:992,lg:1280,xl:1440}},178:function(t,e,s){"use strict";var i=s(172),n=s.n(i);e.default=n.a},179:function(t,e,s){"use strict";s.r(e);s(173),s(174);var i=s(0),n=s(48),r=i.a.extend({props:{items:{type:Array,required:!0}}}),a=s(14),l=Object(a.a)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",[t._l(t.items,(function(e,s){return[t._t("item",null,{item:Object.assign({},e,{key:s})})]}))],2)}),[],!1,null,null,null).exports;var o={functional:!0,render(t,e){const{_c:s,_v:i,data:n,children:r=[]}=e,{class:a,staticClass:l,style:o,staticStyle:c,attrs:p={},...d}=n;return s("svg",{class:[a,l],style:[o,c],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 46.4 46.4"},p),...d},r.concat([s("title",[i("Star icon")]),s("path",{attrs:{d:"M21.6 2c.3-.6.9-1 1.6-1 .7 0 1.3.4 1.6 1l5.8 11.7c.3.5.8.9 1.4 1l12.8 1.9c.7.1 1.2.6 1.4 1.2.2.6 0 1.4-.5 1.8l-9.3 9.1c-.4.4-.6 1-.5 1.6l2.2 12.9c.1.7-.2 1.4-.7 1.8-.6.4-1.3.5-1.9.1L24 39c-.5-.3-1.1-.3-1.7 0l-11.5 6.1c-.6.3-1.3.3-1.9-.1-.6-.4-.8-1.1-.7-1.8l2.2-12.9c.1-.6-.1-1.2-.5-1.6l-9.4-9c-.5-.5-.7-1.2-.5-1.8.2-.6.8-1.1 1.4-1.2l12.9-1.9c.6-.1 1.1-.5 1.4-1L21.6 2z"}})]))}},c=i.a.extend({props:{project:{type:Object,required:!0}},components:{StarIcon:o},methods:{formattedCount:function(t){return new Intl.NumberFormat("en-US").format(t)},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}}),p=Object(a.a)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("article",{staticClass:"bg-dusk transition md:group-hover:opacity-50 md:hover:opacity-important md:hover:scale-11/10x",attrs:{itemscope:"",itemtype:"http://schema.org/CreativeWork"}},[s("a",{staticClass:"block p-40",attrs:{href:t.project.link,target:"_blank",rel:"noopener"}},[s("p",{staticClass:"text-xs font-bold tracking-widest uppercase text-zenith"},[t._v("\n "+t._s(t.project.language)+"\n ")]),s("h3",{staticClass:"mt-8 text-lg font-semibold leading-tight text-zenith",attrs:{itemprop:"name"}},[t._v("\n "+t._s(t.capitalize(t.project.title))+"\n ")]),s("p",{staticClass:"mt-8"},[t._v(t._s(t.project.description))]),s("div",{staticClass:"flex items-center mt-16"},[s("div",{staticClass:"w-16 h-16 p-2 mr-4"},[s("star-icon",{staticClass:"w-full h-full -mt-px fill-current",attrs:{"aria-hidden":"true"}})],1),s("span",{staticClass:"mt-2 text-xs font-semibold leading-none tracking-wider"},[t._v("\n "+t._s(t.formattedCount(t.project.stars))+"\n "),s("span",{staticClass:"sr-only"},[t._v("stars")])])])])])}),[],!1,null,null,null).exports,d=i.a.extend({components:{GenericList:l,ProjectCard:p},props:{items:{type:Array,required:!0}}}),u=Object(a.a)(d,(function(){var t=this.$createElement,e=this._self._c||t;return e("generic-list",{staticClass:"-my-8 group",attrs:{items:this.items},scopedSlots:this._u([{key:"item",fn:function(t){var s=t.item.node;return[e("project-card",{staticClass:"my-8",attrs:{project:s}})]}}])})}),[],!1,null,null,null).exports,m=(s(175),s(177));function v(t){var e=Date.UTC.apply(Date,t.split("-").map((function(t,e){var s=function(t){return parseInt(t,10)}(t);return 1===e?--s:s}))),s=new Date(e);return new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"numeric"}).format(s)}var h=s(114),f=i.a.extend({components:{ExternalLinkIcon:h.a},props:{talk:{type:Object,required:!0}},methods:{formattedDate:v}}),g=Object(a.a)(f,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("article",{attrs:{itemscope:"",itemtype:"http://schema.org/CreativeWork"}},[s("div",{staticClass:"flex flex-col justify-between w-full h-full p-40 min-h-inherit bg-dusk md:group-hover:opacity-50 md:hover:scale-11/10x md:hover:opacity-important transition"},[s("header",[s("h4",{staticClass:"text-xs font-bold tracking-widest uppercase text-zenith",attrs:{itemprop:"name"}},[t._v("\n "+t._s(t.talk.event)+"\n ")]),s("div",{staticClass:"flex flex-col mt-8"},[t.talk.location?s("p",{attrs:{itemprop:"location",itemscope:"",itemtype:"http://schema.org/Place"}},[s("span",{attrs:{itemprop:"address",itemscope:"",itemtype:"http://schema.org/PostalAddress"}},[s("span",{attrs:{itemprop:"addressLocality"}},[t._v("\n "+t._s(t.talk.location.city)+"\n ")]),t._v("\n —\n "),s("span",{attrs:{itemprop:"addressCountry"}},[t._v(t._s(t.talk.location.country))])])]):t.talk.isOnline?s("p",[t._v("Online")]):t._e(),s("time",{staticClass:"inline-block",attrs:{itemprop:"startDate",datetime:t.talk.date,content:t.talk.date}},[t._v(t._s(t.formattedDate(t.talk.date)))])])]),s("div",{staticClass:"flex flex-col mt-24"},[s("h3",{staticClass:"text-lg font-semibold leading-tight text-zenith",attrs:{itemprop:"name"}},[t._v("\n "+t._s(t.talk.title)+"\n ")]),t.talk.links.length?s("footer",{staticClass:"mt-16"},[s("ul",{staticClass:"flex -mx-8"},t._l(t.talk.links,(function(e){var i=e.label,n=e.link;return s("li",{key:i,staticClass:"mx-8"},[s("a",{staticClass:"flex items-center mt-px text-zenith",attrs:{href:n,target:"_blank",rel:"noopener"}},[s("span",[t._v(t._s(i))]),s("span",{staticClass:"block w-16 p-2 ml-4 text-dawn"},[s("external-link-icon",{staticClass:"flex-none stroke-current",attrs:{"aria-hidden":"true"}})],1)])])})),0)]):t._e()])])])}),[],!1,null,null,null).exports,y=i.a.extend({components:{TalkCard:g,GenericList:l},props:{items:{type:Array,required:!0}},data:function(){return{scrollPosition:parseInt(window.scrollY),ticking:!1,shouldParallax:!1}},computed:{scroll:function(){return.05*this.scrollPosition}},created:function(){var t=this;window.addEventListener("scroll",this.onScroll),n.bus.$on("resize:window",(function(e){var s=e<=m.md;t.shouldParallax=!s}))},beforeDestroy:function(){window.removeEventListener("scroll",this.onScroll)},methods:{onScroll:function(){var t=this;this.ticking||(window.requestAnimationFrame((function(){t.scrollPosition=parseInt(window.scrollY),t.ticking=!1})),this.ticking=!0)}}}),x=Object(a.a)(y,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("generic-list",{staticClass:"flex flex-wrap -my-4 md:-m-4 group",attrs:{items:t.items},scopedSlots:t._u([{key:"item",fn:function(e){var i=e.item,n=i.node,r=i.key;return[s("talk-card",{staticClass:"flex-none w-full my-4 md:m-4 md:w-240 md:min-h-240 lg:w-320 lg:min-h-320",style:{transform:r%2==0&&t.shouldParallax?"translateY(-"+t.scroll+"px)":""},attrs:{talk:n}})]}}])})}),[],!1,null,null,null).exports;var w,b={functional:!0,render(t,e){const{_c:s,_v:i,data:n,children:r=[]}=e,{class:a,staticClass:l,style:o,staticStyle:c,attrs:p={},...d}=n;return s("svg",{class:[a,l],style:[o,c],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},p),...d},r.concat([s("title",[i("Play icon")]),s("path",{attrs:{d:"M5 3l14 9-14 9V3z"}})]))}},_={functional:!0,render(t,e){const{_c:s,_v:i,data:n,children:r=[]}=e,{class:a,staticClass:l,style:o,staticStyle:c,attrs:p={},...d}=n;return s("svg",{class:[a,l],style:[o,c],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},p),...d},r.concat([s("title",[i("Quill icon")]),s("path",{attrs:{d:"M20.24 12.24a6 6 0 00-8.49-8.49L5 10.5V19h8.5zM16 8L2 22M17.5 15H9"}})]))}},k={functional:!0,render(t,e){const{_c:s,_v:i,data:n,children:r=[]}=e,{class:a,staticClass:l,style:o,staticStyle:c,attrs:p={},...d}=n;return s("svg",{class:[a,l],style:[o,c],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},p),...d},r.concat([s("title",[i("Volume icon")]),s("path",{attrs:{d:"M11 5L6 9H2v6h4l5 4V5zM19.07 4.93a10 10 0 010 14.14M15.54 8.46a5 5 0 010 7.07"}})]))}};!function(t){t.Video="video",t.Podcast="podcast",t.Blog="blog"}(w||(w={}));var C=i.a.extend({components:{PlayIcon:b,QuillIcon:_,VolumeIcon:k},props:{interview:{type:Object,required:!0}},methods:{formattedDate:v,getIcon:function(t){return{blog:_,podcast:k,video:b}[t]},merge:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce((function(t,e){return t.concat.apply(t,e)}),[])}}}),j=Object(a.a)(C,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("article",{attrs:{itemscope:"",itemtype:"http://schema.org/CreativeWork"}},[s("a",{staticClass:"flex md:items-center md:group-hover:opacity-50 md:hover:opacity-important transition group-2",attrs:{href:t.interview.link,target:"_blank",rel:"noopener"}},[s("div",{staticClass:"flex items-center justify-center flex-none mr-24 rounded-full md:mr-40 w-80 h-80 md:w-120 md:h-120 bg-dusk text-zenith md:group-2-hover:scale-11/10x transition"},[s(t.getIcon(t.interview.type),{tag:"component",staticClass:"h-24 stroke-current md:h-32",class:{"ml-4":"video"===t.interview.type},attrs:{"aria-hidden":"true"}})],1),s("div",[s("h3",{staticClass:"text-lg font-semibold leading-snug md:leading-tight text-zenith",attrs:{itemprop:"name"}},[t._v("\n "+t._s(t.interview.title)+"\n ")]),s("p",{staticClass:"mt-8 mb-2"},[s("span",{attrs:{itemprop:"publisher"}},[t._v(t._s(t.interview.platform))]),t._v(" — with\n "),s("span",{attrs:{itemprop:"author"}},[t._v("\n "+t._s(t.merge(t.interview.hosts,t.interview.guests).join(", "))+"\n ")])]),s("time",{staticClass:"inline-block mt-8 text-xs font-bold tracking-widest uppercase text-zenith",attrs:{itemprop:"datePublished",datetime:t.interview.time,content:t.interview.time}},[t._v(t._s(t.formattedDate(t.interview.date))+"\n ")])])])])}),[],!1,null,null,null).exports,z=i.a.extend({components:{GenericList:l,InterviewCard:j},props:{items:{type:Array,required:!0}}}),S=Object(a.a)(z,(function(){var t=this.$createElement,e=this._self._c||t;return e("generic-list",{staticClass:"-my-48 group",attrs:{items:this.items},scopedSlots:this._u([{key:"item",fn:function(t){var s=t.item.node;return[e("interview-card",{staticClass:"my-48",attrs:{interview:s}})]}}])})}),[],!1,null,null,null).exports,O=i.a.extend({components:{AllProjects:u,AllTalks:x,AllInterviews:S},data:function(){return{visibleSections:[],shouldShowDesignerLine:!1}},methods:{onVisibilityChange:function(t){var e=this;return{callback:function(s){s?e.visibleSections.push(t):e.visibleSections=e.visibleSections.filter((function(e){return e!==t})),e.visibleSections.sort(),n.bus.$emit("update:scrollspy",e.visibleSections[0])},intersection:{threshold:.3},throttle:300}},showDesignerLine:function(t){this.shouldShowDesignerLine=t}}}),L=s(178),I=Object(a.a)(O,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("Layout",[s("ClientOnly",[s("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.onVisibilityChange(0),expression:"onVisibilityChange(0)"}],staticClass:"md:pt-88 md:-mt-96",attrs:{id:"projects"}},[s("h2",{staticClass:"sticky top-0 z-40 pt-24 text-sm font-bold tracking-widest uppercase md:sr-only text-zenith"},[t._v("\n Projects\n ")]),s("all-projects",{staticClass:"pt-32 pb-40 md:py-0",attrs:{items:t.$page.repositories.edges}})],1),s("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.onVisibilityChange(1),expression:"onVisibilityChange(1)"}],staticClass:"md:pt-88",attrs:{id:"talks"}},[s("h2",{staticClass:"sticky top-0 z-40 pt-24 text-sm font-bold tracking-widest uppercase md:sr-only text-zenith"},[t._v("\n Talks\n ")]),s("all-talks",{staticClass:"pt-32 pb-40 md:py-0",attrs:{items:t.$page.talks.edges}})],1),s("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.onVisibilityChange(2),expression:"onVisibilityChange(2)"}],staticClass:"mb-48 md:pt-8",attrs:{id:"interviews"}},[s("h2",{staticClass:"sticky top-0 z-40 pt-24 text-sm font-bold tracking-widest uppercase md:sr-only text-zenith"},[t._v("\n Interviews\n ")]),s("all-interviews",{staticClass:"pt-80 md:pt-0 md:mt-72",attrs:{items:t.$page.interviews.edges}})],1),s("p",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.showDesignerLine,expression:"showDesignerLine"}],staticClass:"text-sm mt-104 ml-104 md:ml-160 transition",class:[t.shouldShowDesignerLine?"opacity-75":"opacity-0 shift-y-16"]},[t._v("\n Design by\n "),s("a",{staticClass:"text-sunrise hover:text-zenith transition hover:underline",attrs:{href:"https://dribbble.com/NicolasMzrd",target:"_blank",rel:"noopener"}},[t._v("Nicolas Meuzard")]),t._v(".\n ")])])],1)}),[],!1,null,null,null);"function"==typeof L.default&&Object(L.default)(I);e.default=I.exports}}]);