|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/sbaedu/test.sbaedu.com/static/js/ |
Upload File : |
"use strict";(self.webpackChunktechwind=self.webpackChunktechwind||[]).push([[92],{5324:(e,t,a)=>{a.d(t,{N:()=>i,R:()=>l});var s=a(3402),r=a(1822);s.Z.defaults.baseURL=r.gA;const l=async e=>{try{return await s.Z.get("/blogs?page="+e,{headers:{apikey:r.vo,domain:r.nw}})}catch(t){return t||{status:500,data:{message:"An unexpected error occurred."}}}},i=async e=>{try{return await s.Z.get("/blog/"+e,{headers:{apikey:r.vo,domain:r.nw}})}catch(t){return t||{status:500,data:{message:"An unexpected error occurred."}}}}},9052:(e,t,a)=>{a.d(t,{Z:()=>d});var s=a(9867),r=a(4436),l=a(5644),i=a(333),n=a(2834);const d=e=>{let{title:t,description:a}=e;const d=(0,r.v9)((e=>e.websiteReducer)),[o,c]=(0,s.useState)();return(0,s.useEffect)((()=>{d&&d.data&&d.data.data&&c(d.data.data)}),[d]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("section",{className:"relative table w-full py-16 lg:py-16 bg-[url('../../assets/images/course/cta.jpg')] bg-no-repeat bg-center bg-cover",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black opacity-75"}),(0,n.jsx)("div",{className:"container relative",children:(0,n.jsxs)("div",{className:"grid grid-cols-1 pb-8 text-center mt-10",children:[(0,n.jsx)("h3",{className:"md:text-4xl text-3xl md:leading-normal leading-normal font-medium text-white",children:t.blog_title}),(0,n.jsx)("h5",{className:"text-white/50 text-lg font-medium",children:a.short_desc})]})}),(0,n.jsx)("div",{className:"absolute text-center z-10 bottom-5 start-0 end-0 mx-3",children:(0,n.jsxs)("ul",{className:"tracking-[0.5px] mb-0 inline-flex items-center space-x-1",children:[(0,n.jsx)("li",{className:"inline-block uppercase text-[13px] font-bold duration-500 ease-in-out text-white/50 hover:text-white",children:(0,n.jsx)(l.rU,{to:"/",children:o?o.site_name:""})}),(0,n.jsx)("li",{className:"inline-block text-base text-white/50 mx-0.5 ltr:rotate-0 rtl:rotate-180",children:(0,n.jsx)(i.AeIR,{className:"text-xl"})}),(0,n.jsx)("li",{className:"inline-block uppercase text-[13px] font-bold duration-500 ease-in-out text-white","aria-current":"page",children:t.blog_title})]})})]})})}},6092:(e,t,a)=>{a.r(t),a.d(t,{default:()=>x});var s=a(9867),r=a(5644),l=a(4234),i=a(2909),n=a(5324),d=a(9052),o=a(333),c=a(2834);function x(){const[e,t]=(0,s.useState)(),[a,x]=(0,s.useState)(),[g,h]=(0,s.useState)(1),[m,u]=(0,s.useState)(!1);(0,s.useEffect)((()=>{b()}),[]);const b=async e=>{const a=await(0,n.R)(g);200===a.status?1===a.data.status&&(t(a.data.data.data),x(a.data.data.links),console.log(a.data.data)):0===a.response.data.status&&t("error")},v=e=>e?e.replace(/<[^>]*>?/gm,""):"",p=e=>{let{data:t}=e;return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(r.rU,{to:"/blog-details/"+t.slug,children:(0,c.jsxs)("div",{className:"blog relative rounded-md shadow dark:shadow-gray-800 overflow-hidden",children:[(0,c.jsx)("img",{src:t.image?t.image:"images/course/course2.jpeg",alt:"blog",width:"100%",className:""}),(0,c.jsxs)("div",{className:"content p-6",children:[(0,c.jsx)("a",{className:"title h5 text-lg font-medium hover:text-indigo-600 duration-500 ease-in-out",children:t?v(t.blog_title):null}),(0,c.jsx)("p",{className:"text-slate-400 mt-3",children:t?v(t.short_desc):null}),(0,c.jsx)("div",{className:"mt-4",children:(0,c.jsx)(r.rU,{to:"/blog-details/"+t.slug,className:"relative inline-block mb-2 tracking-wide align-middle text-base text-center border-none after:content-[''] after:absolute after:h-px after:w-0 hover:after:w-full after:end-0 hover:after:end-auto after:bottom-0 after:start-0 after:duration-500 font-normal hover:text-indigo-600 after:bg-indigo-600 duration-500 ease-in-out",children:"Read More..."})})]})]})})})};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(l.Z,{navClass:"nav-sticky"}),(0,c.jsx)(d.Z,{title:{blog_title:"Blogs"},description:{short_desc:"Please see our latest blogs"}}),(0,c.jsxs)("section",{className:"relative md:py-24 py-16",children:[(0,c.jsx)("div",{className:"container relative ",children:(0,c.jsx)("div",{className:"grid md:grid-cols-12 grid-cols-1 gap-[30px]",children:(0,c.jsxs)("div",{className:"lg:col-span-12 md:col-span-6",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("h6",{className:"text-indigo-600 text-sm font-bold uppercase mb-2",children:"Blogs"}),(0,c.jsx)("h3",{className:"md:text-3xl md:leading-normal text-2xl leading-normal font-semibold mb-4 md:mb-0",children:"Explore Insights on Latest Updates"}),(0,c.jsx)("p",{className:"text-slate-400 max-w-xl mt-2",children:"It hints at a blend of informative insights, updates, and industry trends that our audience can delve into."})]}),(0,c.jsx)("div",{className:"grid lg:grid-cols-3 grid-cols-1 gap-[30px] py-16",children:e?e.map(((e,t)=>(0,c.jsx)(p,{data:e},t))):(0,c.jsx)("h1",{children:"Not found !"})})]})})}),(0,c.jsx)("div",{className:"grid md:grid-cols-12 grid-cols-1 mt-8",children:(0,c.jsx)("div",{className:"md:col-span-12 text-center",children:(0,c.jsx)("nav",{"aria-label":"Page navigation example",children:(0,c.jsx)("ul",{className:"inline-flex items-center -space-x-px",children:a?a.map(((e,t)=>(0,c.jsxs)("div",{children:[" ","« Previous"===e.label?(0,c.jsx)("li",{children:(0,c.jsx)("button",{onClick:t=>((e,t,a)=>{if(t){const e=t.split("=")[1];h(e)}})(0,e.url,e.label),className:"size-[40px] inline-flex justify-center items-center text-slate-400 bg-white dark:bg-slate-900 rounded-s-lg hover:text-white border border-gray-100 dark:border-gray-700 hover:border-indigo-600 dark:hover:border-indigo-600 hover:bg-indigo-600 dark:hover:bg-indigo-600",children:(0,c.jsx)(o.RL9C,{className:"text-[20px] rtl:rotate-180 rtl:-mt-1"})})}):null,"« Previous"!==e.label&&"Next »"!==e.label?(0,c.jsx)("li",{children:(0,c.jsx)("button",{onClick:t=>{return a=e.url,s=e.label,void(a&&h(s));var a,s},className:"size-[40px] inline-flex justify-center items-center text-slate-400 hover:text-white dark:bg-slate-900 border border-gray-100 dark:border-gray-700 hover:border-indigo-600 dark:hover:border-indigo-600 hover:bg-indigo-600 dark:hover:bg-indigo-600",style:{backgroundColor:e.active?"#4F5DEB":"white"},children:e.label})}):null,"Next »"===e.label?(0,c.jsx)("li",{children:(0,c.jsx)("button",{onClick:t=>((e,t,a)=>{if(t){const e=t.split("=")[1];h(e)}})(0,e.url,e.label),className:"size-[40px] inline-flex justify-center items-center text-slate-400 bg-white dark:bg-slate-900 rounded-e-lg hover:text-white border border-gray-100 dark:border-gray-700 hover:border-indigo-600 dark:hover:border-indigo-600 hover:bg-indigo-600 dark:hover:bg-indigo-600",children:(0,c.jsx)(o.AeIR,{className:"text-xl rtl:rotate-180 rtl:-mt-1"})})}):null]},t))):""})})})})]}),(0,c.jsx)(i.Z,{})]})}}}]);
//# sourceMappingURL=92.07355db1.chunk.js.map