Files
portfolio-next/archive/2021/static/js/main.b2a5bb11.chunk.js
T

2 lines
4.1 KiB
JavaScript

(this["webpackJsonpprojects-page"]=this["webpackJsonpprojects-page"]||[]).push([[0],{70:function(e,t,n){},76:function(e,t,n){},78:function(e,t,n){"use strict";n.r(t);var c=n(6),i=n(0),a=n.n(i),r=n(9),s=n.n(r),j=function(e){e&&e instanceof Function&&n.e(3).then(n.bind(null,120)).then((function(t){var n=t.getCLS,c=t.getFID,i=t.getFCP,a=t.getLCP,r=t.getTTFB;n(e),c(e),i(e),a(e),r(e)}))},o=(n(70),n(111)),l=n(31),b=n(15),h=n(25),d=n(33),u=n(52),O=(n(76),n(53)),x=n(106),p=n(109),f=n(110),g=n(118),m=n(116),v=n(112),w=n(113),C=n(114),k=n(115),S=n(82);var y=function(){var e=Object(O.a)({palette:{type:"dark",background:{paper:"inherit"}}}),t=Object(i.useState)(!1),n=Object(d.a)(t,2),a=n[0],r=n[1],s=Object(i.useState)([]),j=Object(d.a)(s,2),y=j[0],L=j[1],P=Object(i.useState)(""),F=Object(d.a)(P,2),B=F[0],E=F[1],M=Object(i.useState)([]),I=Object(d.a)(M,2),J=I[0],T=I[1],W={keys:[{name:"title",weight:1},{name:"tags",weight:.7},{name:"description",weight:.3}]},z=function(e){return""===e?(console.log("Nothing was searched"),y):new u.a(y,W).search(e).map((function(e){return e.item}))};Object(i.useEffect)((function(){a||fetch("/info.json").then((function(e){return e.json()})).then((function(e){var t=[];Object.values(e).forEach((function(e){t.push(e)})),r(!0),L(t),T(t),console.log("Loaded data")}))}));var D=function(e){window.open(e,"_blank")},N=function(e){return Object(c.jsxs)(x.a,{disableSpacing:!0,children:[e.github?Object(c.jsx)(p.a,{onClick:function(){return D(e.github)},children:Object(c.jsx)(b.a,{icon:l.a})}):null,e.livedemo?Object(c.jsx)(p.a,{onClick:function(){return D(e.livedemo)},children:Object(c.jsx)(b.a,{icon:h.c})}):null,e.academics?Object(c.jsx)(p.a,{onClick:function(){return D(e.academics)},children:Object(c.jsx)(b.a,{icon:h.d})}):null]})};return a?Object(c.jsx)("div",{id:"appContainer",children:Object(c.jsxs)(f.a,{theme:e,children:[Object(c.jsxs)(g.a,{id:"search",children:[Object(c.jsx)("h1",{children:"My Projects"}),Object(c.jsx)(m.a,{id:"standard-basic",label:"about",onChange:function(e){E(e.target.value);var t=z(e.target.value);T(t)},value:B})]}),Object(c.jsx)(o.a,{container:!0,children:J.length>0?J.map((function(e){return Object(c.jsx)(o.a,{xs:5,item:!0,id:"projectsContainer",children:Object(c.jsxs)(v.a,{children:[Object(c.jsx)("img",{src:"/images/"+e.title+".jpg",alt:"Project"}),Object(c.jsxs)(w.a,{children:[Object(c.jsx)(C.a,{variant:"h5",gutterBottom:!0,children:e.title}),Object(c.jsx)(C.a,{children:e.description}),Object(c.jsx)(C.a,{children:Object(c.jsx)(k.a,{size:"small",color:"primary","aria-label":"large outlined primary button group",children:e.tags.map((function(e){return Object(c.jsx)(S.a,{onClick:function(){return T(z(t=e)),void E(t);var t},children:e})}))})}),N(e)]})]})})})):null})]})}):Object(c.jsx)("div",{})},L=n(49);var P=function(){return Object(c.jsxs)("div",{children:[Object(c.jsxs)(L.a,{children:[Object(c.jsx)("meta",{charSet:"utf-8"}),Object(c.jsx)("title",{children:"Lucas Winther Portfolio"})]}),Object(c.jsxs)(o.a,{container:!0,spacing:0,children:[Object(c.jsx)(o.a,{item:!0,xs:12,sm:5,id:"headerContainer",children:Object(c.jsxs)("header",{children:[Object(c.jsx)("img",{alt:"Lucas Winther",src:"images/avatar.png"}),Object(c.jsxs)("p",{children:[Object(c.jsx)("strong",{children:"My name is Lucas"}),", a ",Object(c.jsx)("br",{}),"Computer Scientist with ",Object(c.jsx)("br",{}),"passion for development."]}),Object(c.jsxs)("div",{id:"icons",children:[Object(c.jsx)("a",{href:"https://www.linkedin.com/in/lucas-winther/",children:Object(c.jsx)(b.a,{icon:l.b})}),Object(c.jsx)("a",{href:"mailto:lucas@lucaswinther.info",children:Object(c.jsx)(b.a,{icon:h.b})}),Object(c.jsx)("a",{href:"https://github.com/StereotypicalCat",children:Object(c.jsx)(b.a,{icon:l.a})}),Object(c.jsx)("a",{href:"https://blog.lucaswinther.info",children:Object(c.jsx)(b.a,{icon:h.a})})]})]})}),Object(c.jsx)(o.a,{item:!0,xs:5}),Object(c.jsx)(o.a,{item:!0,xs:12,sm:7,id:"appContainer",children:Object(c.jsx)(y,{})})]})]})};s.a.render(Object(c.jsx)(a.a.StrictMode,{children:Object(c.jsx)(P,{})}),document.getElementById("root")),j()}},[[78,1,2]]]);
//# sourceMappingURL=main.b2a5bb11.chunk.js.map