forked from koff75/myGatsbyBlog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---packages-blog-pages-src-pages-contact-jsx-fd87646f51188cb330a0.js
2 lines (2 loc) · 5.68 KB
/
component---packages-blog-pages-src-pages-contact-jsx-fd87646f51188cb330a0.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{We4V:function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));c("mXGw");var n=c("1Gva"),a=c("aD51"),r={count:{fontSize:4},subheader:{fontWeight:"body",color:"omegaDark"},runninghead:{fontWeight:"body",color:"omegaDark",mb:0}},o=function(e){var t=e.header,c=e.subheader,o=e.running,i=e.totalCount;return Object(a.c)("div",null,Object(a.c)(n.h,{variant:"h1",as:"h1"},t," ",i&&Object(a.c)(n.a,{variant:"tag-white",sx:r.count}," ",i)),c&&Object(a.c)(n.p,{variant:"h3",sx:r.subheader},c),o&&Object(a.c)(n.p,{variant:"h4",sx:r.runninghead},o))}},akiP:function(e,t,c){"use strict";c.r(t);var n=c("mXGw"),a=c.n(n),r=c("fGC6"),o=c("We4V"),i=c("wEEh"),b=c("ycXb"),l=c("1Gva"),u=c("aD51"),s=function(e){var t=e.handleSubmit,c=e.submitting,n=e.success;return Object(u.c)("form",{onSubmit:t},n&&Object(u.c)(l.m,{variant:"success"},"Thank you for contacting us. We'll get back to you soon!"),Object(u.c)(l.b,{variant:"forms.row"},Object(u.c)(l.b,{variant:"forms.column"},Object(u.c)(l.k,{htmlFor:"contact-form-name"},"Name"),Object(u.c)(l.j,{type:"text",id:"contact-form-name",name:"name",required:!0})),Object(u.c)(l.b,{variant:"forms.column"},Object(u.c)(l.k,{htmlFor:"contact-form-company"},"Company Name"),Object(u.c)(l.j,{type:"text",id:"contact-form-company",name:"company"}))),Object(u.c)(l.b,{variant:"forms.row"},Object(u.c)(l.b,{variant:"forms.column"},Object(u.c)(l.k,{htmlFor:"contact-form-email"},"Email"),Object(u.c)(l.j,{type:"email",placeholder:"[email protected]",id:"contact-form-email",name:"email",required:!0})),Object(u.c)(l.b,{variant:"forms.column"},Object(u.c)(l.k,{htmlFor:"contact-form-phone"},"Phone Number"),Object(u.c)(l.j,{type:"tel",placeholder:"(xxx) xxx-xxxx",id:"contact-form-phone",name:"phone"}))),Object(u.c)(l.b,{variant:"forms.row"},Object(u.c)(l.k,{htmlFor:"contact-form-subject"},"Subject"),Object(u.c)(l.j,{type:"text",id:"contact-form-subject",name:"subject",required:!0})),Object(u.c)(l.b,{variant:"forms.row"},Object(u.c)(l.k,{htmlFor:"contact-form-message"},"Your Message"),Object(u.c)(l.q,{name:"message",id:"contact-form-message"})),Object(u.c)(l.c,{variant:n||c?"disabled":"primary",disabled:n||c,type:"submit",required:!0},"Submit ",c&&Object(u.c)(l.o,{size:"20"})))};function m(e,t){var c;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(c=function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var c=Object.prototype.toString.call(e).slice(8,-1);"Object"===c&&e.constructor&&(c=e.constructor.name);if("Map"===c||"Set"===c)return Array.from(e);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return j(e,t)}(e))||t&&e&&"number"==typeof e.length){c&&(e=c);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(c=e[Symbol.iterator]()).next.bind(c)}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var c=0,n=new Array(t);c<t;c++)n[c]=e[c];return n}var p=function(){var e=Object(n.useState)(!1),t=e[0],c=e[1],a=Object(n.useState)(!1),r=a[0],o=a[1],i=Object(n.useState)({}),b=i[0],l=i[1],u=Object(n.useState)(!1),s=u[0],j=u[1],p=Object(n.useCallback)((function(){setTimeout((function(){console.log(b),j(!0),c(!1)}),2e3)}),[b]);return Object(n.useEffect)((function(){r&&p()}),[r,p]),{handleSubmit:function(e){e.preventDefault(),c(!0);for(var t,n={},a=m(new FormData(e.target).entries());!(t=a()).done;){var r=t.value;n[r[0]]=r[1]}l(n),o(!0)},submitting:t,submitted:r,success:s}},O=function(){var e=p(),t=e.handleSubmit,c=e.submitting,n=e.success;return Object(u.c)(l.d,{variant:"paper"},Object(u.c)(s,{handleSubmit:t,submitting:c,success:n}))},f=c("A4YR"),h=c("lAxG"),d=c("PcQk"),v=function(){var e=Object(d.a)(),t=e.phone,c=e.address,n=e.email;return Object(u.c)(h.a,{aside:!0,title:"My contact"},Object(u.c)(l.d,{variant:"paper"},Object(u.c)(l.p,{variant:"p"},"Interested in working together?"),Object(u.c)(l.p,{variant:"p"},"Please contact me by mail or by phone"),t&&Object(u.c)(l.p,null,Object(u.c)(l.i,{variant:"simple",role:"presentation"},Object(u.c)(f.n,null)),t),n&&Object(u.c)(l.p,null,Object(u.c)(l.i,{variant:"simple",role:"presentation"},Object(u.c)(f.e,null)),n),c&&Object(u.c)(l.p,null,Object(u.c)(l.i,{variant:"simple",role:"presentation"},Object(u.c)(f.l,null)),c)))},y=c("Fcif"),g=function(e){return Object(u.c)(h.a,Object(y.a)({aside:!0,title:"Website technical info"},e),Object(u.c)(l.d,{variant:"paper"},Object(u.c)(l.p,{variant:"p"},"To build this website, I use these technologies:"),Object(u.c)(l.p,{variant:"p"},"Hostinger (shared host platform)"),Object(u.c)(l.p,{variant:"p"},"Namecheap (DNS & SSL)"),Object(u.c)(l.p,{variant:"p"},"Github (for saving my code & webhooks for CI/CD)"),Object(u.c)(l.p,{variant:"p"},"GatsbyJS (for the codebase in ReactJS)"),Object(u.c)(l.p,{variant:"p"},"Tailwind CSS (for the stylesheet)"),"Contentful (for the articles, host images & headless CMS)",Object(u.c)(l.p,{variant:"p"},"Mailchimp (for the newsletter), Algolia (search system), Disqus (commenting system)."),Object(u.c)(l.p,{variant:"p"},"Yarn, webpack, etc. ----- Seach Engine Optimized, Social Media Optimized, Google Analytics & PWA.")))};t.default=function(){return Object(u.c)(a.a.Fragment,null,Object(u.c)(b.a,{title:"Contact"}),Object(u.c)(i.a,null),Object(u.c)(r.e,null,Object(u.c)(r.b,null,Object(u.c)(o.a,{header:"Let's Connect",subheader:"Keep us in touch! Please fill your information :)"}),Object(u.c)(i.a,null),Object(u.c)(O,null)),Object(u.c)(r.d,null,Object(u.c)(g,null),Object(u.c)(i.a,null),Object(u.c)(v,null))))}}}]);
//# sourceMappingURL=component---packages-blog-pages-src-pages-contact-jsx-fd87646f51188cb330a0.js.map