-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-404-js-bc599d9095f01c0eff80.js
2 lines (2 loc) · 6.82 KB
/
component---src-pages-404-js-bc599d9095f01c0eff80.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{Bl7J:function(e,a,t){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=t("dI71"),i=t("q1tI"),s=t.n(i),c=(t("wcMv"),t("Wbzz")),o=function(e){return s.a.createElement("header",{id:"header",className:"alt"},s.a.createElement(c.Link,{to:"/",className:"logo"},s.a.createElement("strong",null,"<Akshay/>")," ",s.a.createElement("span",null,"{Joshi}")),s.a.createElement("nav",null,s.a.createElement("a",{className:"menu-link",onClick:e.onToggleMenu,href:"javascript:;"},"Menu")))},r=function(e){return s.a.createElement("nav",{id:"menu"},s.a.createElement("div",{className:"inner"},s.a.createElement("ul",{className:"links"},s.a.createElement("li",null,s.a.createElement(c.Link,{onClick:e.onToggleMenu,to:"/"},"Home")),s.a.createElement("li",null,s.a.createElement(c.Link,{onClick:e.onToggleMenu,to:"/about"},"About")))),s.a.createElement("a",{className:"close",onClick:e.onToggleMenu,href:"javascript:;"},"Close"))},m=t("YwZP"),u=function(e){function a(a){var t;return(t=e.call(this,a)||this).handleSubmit=function(e){e.preventDefault();var a={text:"\nFrom : "+t.state.name+"\nEmail : "+t.state.email+"\nMessage : "+t.state.message+"\n"};fetch("https://hooks.zapier.com/hooks/catch/5745862/o22rij6/",{method:"POST",crossDomain:!0,mode:"cors",body:JSON.stringify(a)}).then((function(e){t.setState({name:"",email:"",message:"",notify:!0}),setTimeout((function(){t.setState({notify:!1})}),5e3)}))},t.state={name:null,email:null,message:null,notify:!1},t.handleChange=t.handleChange.bind(n(t)),t}Object(l.a)(a,e);var t=a.prototype;return t.handleChange=function(e){var a;this.setState(((a={})[e.target.name]=e.target.value,a))},t.render=function(){return s.a.createElement("section",{id:"contact"},s.a.createElement("div",{className:"inner"},s.a.createElement("section",null,this.state.notify&&s.a.createElement("div",{className:"alert alert-success"},"Your message sent successfully. We will get back to you as soon as possible."),s.a.createElement("form",{method:"post",action:"#",onSubmit:this.handleSubmit},s.a.createElement("div",{className:"field half first"},s.a.createElement("label",{htmlFor:"name"},"Name"),s.a.createElement("input",{type:"text",name:"name",id:"name",value:this.state.name,onChange:this.handleChange,required:!0})),s.a.createElement("div",{className:"field half"},s.a.createElement("label",{htmlFor:"email"},"Email"),s.a.createElement("input",{type:"email",name:"email",id:"email",value:this.state.email,onChange:this.handleChange,required:!0})),s.a.createElement("div",{className:"field"},s.a.createElement("label",{htmlFor:"message"},"Message"),s.a.createElement("textarea",{name:"message",id:"message",rows:"6",value:this.state.message,onChange:this.handleChange,required:!0})),s.a.createElement("ul",{className:"actions"},s.a.createElement("li",null,s.a.createElement("input",{type:"submit",value:"Send Message",className:"special"})),s.a.createElement("li",null,s.a.createElement("input",{type:"reset",value:"Clear"}))))),s.a.createElement("section",{className:"split"},s.a.createElement("section",null,s.a.createElement("div",{className:"contact-method"},s.a.createElement("span",{className:"icon alt fa-envelope"}),s.a.createElement("h3",null,"Email"),s.a.createElement(m.Link,{to:"//javascript;",onClick:function(){return window.open("//mailto:[email protected]","_blank")}},"[email protected]"))),s.a.createElement("section",null,s.a.createElement("div",{className:"contact-method"},s.a.createElement("span",{className:"icon alt fa-phone"}),s.a.createElement("h3",null,"Phone"),s.a.createElement(m.Link,{to:"//javascript;",onClick:function(){return window.open("//wa.me/+918600454907","_blank")}},"(+91) 86004 54907"))))))},a}(s.a.Component),h=function(e){return s.a.createElement("footer",{id:"footer"},s.a.createElement("div",{className:"inner"},s.a.createElement("ul",{className:"icons"},s.a.createElement("li",null,s.a.createElement(m.Link,{className:"icon alt fa-facebook",to:"//javascript;",onClick:function(){return window.open("//www.facebook.com/akshay.joshi4","_blank")}},s.a.createElement("span",{className:"label"},"Facebook"))),s.a.createElement("li",null,s.a.createElement(m.Link,{className:"icon alt fa-linkedin",to:"//javascript;",onClick:function(){return window.open("//www.linkedin.com/in/akshaypjoshi/","_blank")}},s.a.createElement("span",{className:"label"},"LinkedIn"))),s.a.createElement("li",null,s.a.createElement(m.Link,{className:"icon alt fa-github",to:"//javascript;",onClick:function(){return window.open("//github.com/akshaypjoshi","_blank")}},s.a.createElement("span",{className:"label"},"GitHub"))),s.a.createElement("li",null,s.a.createElement(m.Link,{className:"icon alt fa-stack-overflow",to:"//javascript;",onClick:function(){return window.open("//stackoverflow.com/users/7589318/akshaypjoshi","_blank")}},s.a.createElement("span",{className:"label"},"Stack Overflow"))),s.a.createElement("li",null,s.a.createElement(m.Link,{className:"icon alt fa-twitter",to:"//javascript;",onClick:function(){return window.open("//twitter.com/akshaypjoshi","_blank")}},s.a.createElement("span",{className:"label"},"Twitter"))),s.a.createElement("li",null,s.a.createElement(m.Link,{className:"icon alt fa-instagram",to:"//javascript;",onClick:function(){return window.open("//www.instagram.com/akshaypjoshi/","_blank")}},s.a.createElement("span",{className:"label"},"Instagram")))),s.a.createElement("ul",{className:"copyright"},s.a.createElement("li",null,"© akshaypjoshi"))))},d=function(e){function a(a){var t;return(t=e.call(this,a)||this).state={isMenuVisible:!1,loading:"is-loading"},t.handleToggleMenu=t.handleToggleMenu.bind(n(t)),t}Object(l.a)(a,e);var t=a.prototype;return t.componentDidMount=function(){var e=this;this.timeoutId=setTimeout((function(){e.setState({loading:""})}),100)},t.componentWillUnmount=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.handleToggleMenu=function(){this.setState({isMenuVisible:!this.state.isMenuVisible})},t.render=function(){var e=this.props.children;return s.a.createElement("div",{className:"body "+this.state.loading+" "+(this.state.isMenuVisible?"is-menu-visible":"")},s.a.createElement("div",{id:"wrapper"},s.a.createElement(o,{onToggleMenu:this.handleToggleMenu}),e,s.a.createElement(u,null),s.a.createElement(h,null)),s.a.createElement(r,{onToggleMenu:this.handleToggleMenu}))},a}(s.a.Component);a.a=d},w2l6:function(e,a,t){"use strict";t.r(a);var n=t("q1tI"),l=t.n(n),i=t("Bl7J");a.default=function(){return l.a.createElement(i.a,null,l.a.createElement("div",{id:"main",className:"alt"},l.a.createElement("section",{id:"one"},l.a.createElement("div",{className:"inner"},l.a.createElement("h1",null,"NOT FOUND"),l.a.createElement("p",null,"You just hit a route that doesn't exist... the sadness.")))))}},wcMv:function(e,a,t){}}]);
//# sourceMappingURL=component---src-pages-404-js-bc599d9095f01c0eff80.js.map