-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-archive-js-48a4037b1ab1f46fbe43.js
2 lines (2 loc) · 3.74 KB
/
component---src-pages-archive-js-48a4037b1ab1f46fbe43.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{nRki:function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),r=a.n(n),l=a("Wbzz"),i=a("qhky"),c=a("vOnD"),d=a("20nU"),o=a("nLfd"),m=a("Kvkj"),s=a("g67X"),h=c.d.div.withConfig({displayName:"archive__StyledTableContainer",componentId:"sc-2cxdc9-0"})(["margin:100px -20px;@media (max-width:768px){margin:50px -10px;}table{width:100%;border-collapse:collapse;.hide-on-mobile{@media (max-width:768px){display:none;}}tbody tr{&:hover,&:focus{background-color:var(--light-navy);}}th,td{padding:10px;text-align:left;&:first-child{padding-left:20px;@media (max-width:768px){padding-left:10px;}}&:last-child{padding-right:20px;@media (max-width:768px){padding-right:10px;}}svg{width:20px;height:20px;}}tr{cursor:default;td:first-child{border-top-left-radius:var(--border-radius);border-bottom-left-radius:var(--border-radius);}td:last-child{border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);}}td{&.year{padding-right:20px;@media (max-width:768px){padding-right:10px;font-size:var(--fz-sm);}}&.title{padding-top:15px;padding-right:20px;color:var(--lightest-slate);font-size:var(--fz-xl);font-weight:600;line-height:1.25;}&.company{font-size:var(--fz-lg);white-space:nowrap;}&.tech{font-size:var(--fz-xxs);font-family:var(--font-mono);line-height:1.5;.separator{margin:0 5px;}span{display:inline-block;}}&.links{min-width:100px;div{display:flex;align-items:center;a{",";flex-shrink:0;}a + a{margin-left:10px;}}}}}"],(function(e){return e.theme.mixins.flexCenter}));t.default=function(e){var t=e.location,a=e.data.allMarkdownRemark.edges,c=Object(n.useRef)(null),p=Object(n.useRef)(null),u=Object(n.useRef)([]);return Object(n.useEffect)((function(){o.a.reveal(c.current,Object(d.srConfig)()),o.a.reveal(p.current,Object(d.srConfig)(200,0)),u.current.forEach((function(e,t){return o.a.reveal(e,Object(d.srConfig)(10*t))}))}),[]),r.a.createElement(m.i,{location:t},r.a.createElement(i.a,{title:"Archive"}),r.a.createElement("main",null,r.a.createElement("header",{ref:c},r.a.createElement("h1",{className:"big-heading"},"Archive"),r.a.createElement("p",{className:"subtitle"},"A big list of things I’ve worked on")),r.a.createElement(h,{ref:p},r.a.createElement("table",null,r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("th",null,"Year"),r.a.createElement("th",null,"Title"),r.a.createElement("th",{className:"hide-on-mobile"},"Made at"),r.a.createElement("th",{className:"hide-on-mobile"},"Built with"),r.a.createElement("th",null,"Link"))),r.a.createElement("tbody",null,a.length>0&&a.map((function(e,t){var a=e.node.frontmatter,n=a.date,i=a.github,c=a.external,d=a.title,o=a.tech,m=a.slug,h=a.company;return r.a.createElement("tr",{key:t,ref:function(e){return u.current[t]=e}},r.a.createElement("td",{className:"overline year"},""+new Date(n).getFullYear()),r.a.createElement(l.Link,{to:"/project/"+m},r.a.createElement("td",{className:"title"},d)),r.a.createElement("td",{className:"company hide-on-mobile"},h?r.a.createElement("span",null,h):r.a.createElement("span",null,"—")),r.a.createElement("td",{className:"tech hide-on-mobile"},o.length>0&&o.map((function(e,t){return r.a.createElement("span",{key:t},e,"",t!==o.length-1&&r.a.createElement("span",{className:"separator"},"·"))}))),r.a.createElement("td",{className:"links"},r.a.createElement("div",null,c&&r.a.createElement("a",{href:c,"aria-label":"External Link"},r.a.createElement(s.a,{name:"External"})),i&&r.a.createElement("a",{href:i,"aria-label":"GitHub Link"},r.a.createElement(s.a,{name:"GitHub"})))))}))))),r.a.createElement("center",null,r.a.createElement(l.Link,{to:"/project"},r.a.createElement("h1",{className:"subtitle"},"All Projects")))))}}}]);
//# sourceMappingURL=component---src-pages-archive-js-48a4037b1ab1f46fbe43.js.map