-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---node-modules-narative-gatsby-theme-novela-src-templates-articles-template-tsx-0d51ef2eca4255144100.js
2 lines (2 loc) · 5.12 KB
/
component---node-modules-narative-gatsby-theme-novela-src-templates-articles-template-tsx-0d51ef2eca4255144100.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{R1uw:function(t,e,a){"use strict";a.r(e);var n=a("wTIg"),r=a("q1tI"),i=a("noox"),o=a("WsIH"),s=a("dH/O"),c=a("/j2g"),l=a("MUpH"),d=a("Wbzz"),u=a("joFz"),b=a("qKvR");var p,g,h,j,x,f,O,w,m=function(t){var e=t.author;return Object(b.jsx)(v,null,Object(b.jsx)(y,{as:e.authorsPage?d.Link:"div",to:e.slug,"data-a11y":"false","aria-label":"Author's bio"},Object(b.jsx)(z,null,Object(b.jsx)(k,{src:e.avatar.medium}))),Object(b.jsx)(S,{dangerouslySetInnerHTML:{__html:e.bio}}))},v=Object(n.a)("div",{target:"eig4wgl0"})({name:"3j1lrl",styles:"display:flex;align-items:center;position:relative;left:-10px;"}),y=Object(n.a)("div",{target:"eig4wgl1"})("display:block;position:relative;height:40px;width:40px;border-radius:50%;background:rgba(0,0,0,0.25);margin-right:16px;margin:10px 26px 10px 10px;&::after{content:'';position:absolute;left:-5px;top:-5px;width:50px;height:50px;border-radius:50%;border:1px solid rgba(0,0,0,0.25);}&[data-a11y='true']:focus::after{content:'';position:absolute;left:-5px;top:-5px;width:50px;height:50px;border:2px solid ",(function(t){return t.theme.colors.accent}),";}"),k=Object(n.a)(u.c,{target:"eig4wgl2"})({name:"uodor8",styles:"border-radius:50%;"}),z=Object(n.a)("div",{target:"eig4wgl3"})({name:"wibiw4",styles:"height:40px;width:40px;border-radius:50%;background:rgba(0,0,0,0.25);margin-right:16px;overflow:hidden;"}),S=Object(n.a)("p",{target:"eig4wgl4"})("max-width:430px;font-size:14px;line-height:1.45;color:",(function(t){return t.theme.colors.grey}),";a{color:",(function(t){return t.theme.colors.grey}),";text-decoration:underline;}"),H=a("pylL"),L=a("sjHn"),T=a("ZtNh"),C=function(t){var e=t.authors,a=Object(r.useContext)(T.a),n=a.gridLayout,o=void 0===n?"tiles":n,s=a.hasSetGridLayout,c=a.setGridLayout,l=Object(d.useStaticQuery)("3372861117").site.edges[0].node.siteMetadata.hero,u=s&&"tiles"===o,p=e.find((function(t){return t.featured}));if(!p)throw new Error("\n No featured Author found.\n Please ensure you have at least featured Author.\n ");return Object(b.jsx)(i.a,{relative:!0,id:"Articles__Hero"},Object(b.jsx)(I,{style:{maxWidth:l.maxWidth+"px"}},Object(b.jsx)(M,{dangerouslySetInnerHTML:{__html:l.heading}})),Object(b.jsx)(R,null,Object(b.jsx)(m,{author:p}),Object(b.jsx)(_,null,Object(b.jsx)(A,{onClick:function(){return c("tiles")},active:u,"data-a11y":"false",title:"Show articles in Tile grid","aria-label":"Show articles in Tile grid"},Object(b.jsx)(H.a.Tiles,null)),Object(b.jsx)(A,{onClick:function(){return c("rows")},active:!u,"data-a11y":"false",title:"Show articles in Row grid","aria-label":"Show articles in Row grid"},Object(b.jsx)(H.a.Rows,null)))))},R=Object(n.a)("div",{target:"evd3z0e0"})("display:flex;align-items:center;justify-content:space-between;margin-bottom:100px;",L.a.desktop(p||(p=Object(l.a)(["\n margin-bottom: 80px;\n "]))),";",L.a.tablet(g||(g=Object(l.a)(["\n margin-bottom: 60px;\n "]))),";",L.a.phablet(h||(h=Object(l.a)(["\n display: none;\n "]))),";"),_=Object(n.a)("div",{target:"evd3z0e1"})("display:flex;align-items:center;",L.a.tablet(j||(j=Object(l.a)(["\n display: none;\n "]))),";"),I=Object(n.a)("div",{target:"evd3z0e2"})("margin:100px 0;",L.a.desktop(x||(x=Object(l.a)(["\n width: 80%;\n "])))," ",L.a.tablet(f||(f=Object(l.a)(["\n width: 100%;\n "]))),""),M=Object(n.a)("h1",{target:"evd3z0e3"})("font-style:normal;font-weight:600;font-size:52px;line-height:1.15;color:",(function(t){return t.theme.colors.primary}),";a{color:",(function(t){return t.theme.colors.accent}),";}",L.a.desktop(O||(O=Object(l.a)(["\n font-size: 38px\n "])))," ",L.a.phablet(w||(w=Object(l.a)(["\n font-size: 32px;\n "]))),""),A=Object(n.a)("button",{target:"evd3z0e4"})("position:relative;display:flex;align-items:center;justify-content:center;height:36px;width:36px;border-radius:50%;background:transparent;transition:background 0.25s;&:not(:last-child){margin-right:30px;}&:hover{background:",(function(t){return t.theme.colors.hover}),";}&[data-a11y='true']:focus::after{content:'';position:absolute;left:-10%;top:-10%;width:120%;height:120%;border:2px solid ",(function(t){return t.theme.colors.accent}),";background:rgba(255,255,255,0.01);border-radius:50%;}svg{opacity:",(function(t){return t.active?1:.25}),";transition:opacity 0.2s;path{fill:",(function(t){return t.theme.colors.primary}),";}}"),W=a("6Ras"),q=(e.default=function(t){var e=t.location,a=t.pageContext,n=a.group,r=a.additionalContext.authors;return Object(b.jsx)(s.a,null,Object(b.jsx)(o.a,{pathname:e.pathname}),Object(b.jsx)(C,{authors:r}),Object(b.jsx)(i.a,{narrow:!0},Object(b.jsx)(W.a,{articles:n}),Object(b.jsx)(G,{show:a.pageCount>1},Object(b.jsx)(c.a,a))),Object(b.jsx)(q,null))},Object(n.a)("div",{target:"e1bswbkw0"})("position:absolute;bottom:0;left:0;width:100%;height:590px;z-index:0;pointer-events:none;background:",(function(t){return t.theme.colors.gradient}),";transition:",(function(t){return t.theme.colorModeTransition}),";")),G=Object(n.a)("div",{target:"e1bswbkw1"})((function(t){return t.show&&"margin-top: 95px;"}),"")}}]);
//# sourceMappingURL=component---node-modules-narative-gatsby-theme-novela-src-templates-articles-template-tsx-0d51ef2eca4255144100.js.map