-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-archive-js-e2a58ca162d1f883d8ab.js
10 lines (10 loc) · 3.44 KB
/
component---src-pages-archive-js-e2a58ca162d1f883d8ab.js
1
2
3
4
5
6
7
8
9
10
"use strict";(self.webpackChunkv2=self.webpackChunkv2||[]).push([[527],{5790:function(e,t,a){a.r(t);var l=a(7294),n=a(4593),r=a(8135),i=a(448),o=a(2448),c=a(8655),s=a(2788),m=a(1428);const{colors:h,fonts:d,fontSizes:p}=m.theme,u=(0,s.default)(m.or).withConfig({displayName:"archive__StyledMainContainer",componentId:"sc-u5epm8-0"})([""]),f=s.default.div.withConfig({displayName:"archive__StyledTableContainer",componentId:"sc-u5epm8-1"})(["margin:100px -20px;",";"],m.BC.tablet`
margin: 100px -10px;
`),E=s.default.table.withConfig({displayName:"archive__StyledTable",componentId:"sc-u5epm8-2"})(["width:100%;border-collapse:collapse;.hide-on-mobile{",";}tbody tr{transition:",";&:hover,&:focus{background-color:",";}}th,td{cursor:default;line-height:1.5;padding:10px 20px;",";}th{text-align:left;}td{&.year{width:10%;",";}&.title{padding-top:15px;color:",";font-size:",";font-weight:700;}&.company{width:15%;padding-top:15px;font-size:",";}&.tech{font-size:",";font-family:",";.separator{margin:0 5px;}span{display:inline-block;}}&.links{span{display:flex;align-items:center;a{",";}a + a{margin-left:10px;}svg{width:20px;height:20px;}}}}"],m.BC.tablet`
display: none;
`,m.theme.transition,h.lightNavy,m.BC.tablet`
padding: 10px;
`,m.BC.tablet`
font-size: ${p.sm};
`,h.lightestSlate,p.xl,p.lg,p.xs,d.SFMono,m.tA.flexCenter);t.default=e=>{let{location:t,data:a}=e;const s=a.allMarkdownRemark.edges,m=(0,l.useRef)(null),h=(0,l.useRef)(null),d=(0,l.useRef)([]);return(0,l.useEffect)((()=>{r.Z.reveal(m.current,(0,i.srConfig)()),r.Z.reveal(h.current,(0,i.srConfig)()),d.current.forEach(((e,t)=>r.Z.reveal(e,(0,i.srConfig)(10*t))))}),[]),l.createElement(o.Ar,{location:t},l.createElement(n.q,null,l.createElement("title",null,"Archive | Subha Chandra"),l.createElement("link",{rel:"canonical",href:"https://subhachandra.github.ioarchive"})),l.createElement(u,null,l.createElement("header",{ref:m},l.createElement("h1",{className:"big-title"},"Archive"),l.createElement("p",{className:"subtitle"},"A big list of things I’ve worked on")),l.createElement(f,{ref:h},l.createElement(E,null,l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",null,"Year"),l.createElement("th",null,"Title"),l.createElement("th",{className:"hide-on-mobile"},"Made at"),l.createElement("th",{className:"hide-on-mobile"},"Built with"),l.createElement("th",null,"Link"))),l.createElement("tbody",null,s.length>0&&s.map(((e,t)=>{let{node:a}=e;const{date:n,github:r,external:i,title:o,tech:s,company:m}=a.frontmatter;return l.createElement("tr",{key:t,ref:e=>d.current[t]=e},l.createElement("td",{className:"overline year"},`${new Date(n).getFullYear()}`),l.createElement("td",{className:"title"},o),l.createElement("td",{className:"company hide-on-mobile"},m?l.createElement("span",null,m):l.createElement("span",null,"—")),l.createElement("td",{className:"tech hide-on-mobile"},s.length>0&&s.map(((e,t)=>l.createElement("span",{key:t},e,"",t!==s.length-1&&l.createElement("span",{className:"separator"},"·"))))),l.createElement("td",{className:"links"},l.createElement("span",null,i&&l.createElement("a",{href:i,target:"_blank",rel:"nofollow noopener noreferrer","aria-label":"External Link"},l.createElement(c.SK,{name:"External"})),r&&l.createElement("a",{href:r,target:"_blank",rel:"nofollow noopener noreferrer","aria-label":"GitHub Link"},l.createElement(c.SK,{name:"GitHub"})))))})))))))}}}]);
//# sourceMappingURL=component---src-pages-archive-js-e2a58ca162d1f883d8ab.js.map