(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{28403:function(e,t,s){Promise.resolve().then(s.bind(s,91692))},91692:function(e,t,s){"use strict";s.r(t);var a=s(57437),n=s(46550),l=s(57751),i=s(71424),c=s(5368),o=s(2265),r=s(99869);t.default=()=>{let[e,t]=o.useState(n.ZP.language||"en"),[s,m]=o.useState(!1),[x,d]=o.useState([]);o.useEffect(()=>{m(!0);let e=window.localStorage.getItem("i18nextLng")||"en";n.ZP.changeLanguage(e),t(e);let s=e=>t(e);return n.ZP.on("languageChanged",s),()=>n.ZP.off("languageChanged",s)},[]),o.useEffect(()=>{(async()=>{try{let e=await fetch("/api/posts.json"),t=await e.json();d(t)}catch(e){console.error("Error fetching posts:",e)}})()},[]);let u=t=>n.ZP.t(t,{lng:e,ns:"common"});return s?(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(c.default,{name:"section-home",children:(0,a.jsx)(l.DH,{})}),(0,a.jsx)(c.default,{name:"section-about",className:"about-section pt-24 lg:pt-28 xl:pt-32",children:(0,a.jsxs)("div",{className:"container mx-auto",children:[(0,a.jsx)(i.OT,{animated:!1,title:u("aboutme"),watermark:u("about")}),(0,a.jsx)(l.ez,{})]})}),(0,a.jsx)(c.default,{name:"section-skills",className:"skills-section pt-24 lg:pt-28 xl:pt-32",children:(0,a.jsxs)("div",{className:"container mx-auto",children:[(0,a.jsx)(i.OT,{animated:!1,title:u("myskills"),watermark:u("skills")}),(0,a.jsx)(l.Ui,{})]})}),(0,a.jsx)(c.default,{name:"section-service",className:"services-section pt-24 lg:pt-28 xl:pt-32",children:(0,a.jsxs)("div",{className:"container mx-auto",children:[(0,a.jsx)(i.OT,{animated:!1,title:u("myservices"),watermark:u("services")}),(0,a.jsx)(l.$y,{})]})}),(0,a.jsx)(c.default,{name:"section-resume",className:"resume-section pt-24 lg:pt-28 xl:pt-32",children:(0,a.jsxs)("div",{className:"container mx-auto",children:[(0,a.jsx)(i.OT,{animated:!1,title:u("myresume"),watermark:u("resume")}),(0,a.jsx)(l.o2,{})]})}),(0,a.jsx)(c.default,{name:"section-portfolios",className:"portfolios-section pt-24 lg:pt-28 xl:pt-32",children:(0,a.jsxs)("div",{className:"container mx-auto",children:[(0,a.jsx)(i.OT,{animated:!1,title:u("myworks"),watermark:u("portfolio")}),(0,a.jsx)(l.LP,{})]})}),(0,a.jsx)(c.default,{name:"section-reviews",className:"reviews-section pt-24 lg:pt-28 xl:pt-32",children:(0,a.jsxs)("div",{className:"container mx-auto",children:[(0,a.jsx)(i.OT,{animated:!1,title:u("clientreviews"),watermark:u("reviews")}),(0,a.jsx)(l.m2,{})]})}),(0,a.jsx)(c.default,{name:"section-blog",className:"news-section pt-24 lg:pt-28 xl:pt-32",children:(0,a.jsxs)("div",{className:"container mx-auto",children:[(0,a.jsx)(i.OT,{animated:!1,title:u("latestblogs"),watermark:u("blogs")}),(0,a.jsx)(r.Z,{posts:x})]})}),(0,a.jsx)(c.default,{name:"section-contact",className:"contact-section pt-24 lg:pt-28 xl:pt-32",children:(0,a.jsxs)("div",{className:"container mx-auto",children:[(0,a.jsx)(i.OT,{animated:!1,title:u("contactus"),watermark:u("contact")}),(0,a.jsx)(l.U0,{})]})}),(0,a.jsx)("span",{className:"block pb-24 lg:pb-28 xl:pb-32"})]}):null}}},function(e){e.O(0,[929,306,972,965,366,878,471,165,52,206,282,971,117,744],function(){return e(e.s=28403)}),_N_E=e.O()}]);