PageSourceSearch

https://www.rasta-ai.com/_next/static/chunks/app/blog/page-4d1eaf6554d008c3.js

js rasta-ai.com collected 2026-09-24 14:51:22 UTC 13,157 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3831],{548:(e,t,s)=>{"use strict";s.d(t,{W:()=>n});var a=s(4482),r=s(38);let l=a.A.create({}),n=async(e,t,s,a,n,i)=>{try{return await l({method:e,url:t,data:s||void 0,headers:a||void 0,params:n||void 0,responseType:i||void 0})}catch(e){var o;throw(null==e||null==(o=e.response)?void 0:o.status)===408&&(r.Ay.error("Session Expired! Please login again."),setTimeout(()=>{localStorage.clear(),window.location.reload()},200)),e}}},1873:(e,t,s)=>{"use strict";s.d(t,{default:()=>g});var a=s(7451),r=s(7307),l=s(6802),n=s(4943),i=s(7607),o=s(3595),c=s(38),d=s(5559);let x="relative border border-white/25 bg-[radial-gradient(ellipse_at_top,rgba(255,255,255,0.05),transparent_70%),linear-gradient(180deg,#1b1b1b_0%,#131313_100%)] shadow-[0_16px_50px_rgba(0,0,0,0.7),0_0_16px_rgba(255,255,255,0.06),inset_0_1px_0_rgba(255,255,255,0.22)] backdrop-blur-md transition duration-300 hover:-translate-y-1 hover:border-white/50 hover:shadow-[0_22px_60px_rgba(255,101,11,0.22),0_0_24px_rgba(255,255,255,0.15)]",m="bg-gradient-to-r from-[#9e3100] via-[#ff650b] to-[#ffffff] bg-clip-text text-transparent";function h(e,t){let s=(null==e?void 0:e.trim())||"Discover the latest from the Rasta.Ai team.";return"".concat(s.slice(0,t)).concat(s.length>t?"...":"")}function u(e){return new Date(e).toLocaleDateString("en-GB")}function p(e){let{post:t,className:s}=e;return t.CoverImg?(0,a.jsx)("img",{src:t.CoverImg,alt:t.Title,className:s}):(0,a.jsx)("div",{className:"".concat(s," bg-[url('/home/cover_bg.png')] bg-cover bg-center")})}function g(){let[e,t]=(0,r.useState)([]),[s,g]=(0,r.useState)(!0),[b,f]=(0,r.useState)(""),_=(0,o.useRouter)();(0,r.useEffect)(()=>{(async()=>{try{let e=await (0,i.gb)(1,10,"",null,!0);(null==e?void 0:e.data)&&t(e.data.data)}catch(e){console.error("Error fetching blogs:",e)}finally{g(!1)}})()},[]);let v=async()=>{if(!b.trim())return void c.Ay.error("Please enter your email address.");try{let e=await (0,i.og)(b);c.Ay.success(e.message),f("")}catch(e){console.error("Error subscribing to blog:",e),c.Ay.error("Failed to subscribe.")}};if(s)return(0,a.jsx)(d.X,{});let j=e[0];return(0,a.jsxs)("main",{className:"min-h-screen overflow-hidden bg-[#111111] text-white",children:[(0,a.jsx)("section",{className:"border-b border-white/[0.05] px-4 pb-10 pt-36 sm:px-6 lg:px-8",children:(0,a.jsxs)("div",{className:"relative mx-auto flex min-h-[360px] max-w-[1450px] items-center justify-center overflow-hidden rounded-[32px] md:min-h-[520px]",children:[(0,a.jsx)("img",{src:"/blogs/Roads_cover.png",alt:"Road infrastructure",className:"absolute inset-0 h-full w-full object-cover"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-black/55"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_28%_12%,rgba(224,100,24,.25),transparent_35%)]"}),(0,a.jsxs)("div",{className:"relative z-10 mx-auto max-w-6xl px-6 text-center",children:[(0,a.jsxs)("h1",{className:"font-exo2 text-[40px] font-extrabold leading-tight text-white sm:text-5xl md:text-7xl",children:["Rasta",(0,a.jsx)("span",{className:"text-[#ff650b]",children:".Ai"})," Blogs"]}),(0,a.jsx)("p",{className:"mx-auto mt-12 max-w-6xl text-xl font-semibold leading-relaxed text-white md:text-3xl",children:"Insights, innovations, and industry expertise from the world of AI-powered road monitoring and infrastructure management."})]})]})}),j&&(0,a.jsxs)("section",{className:"mx-auto w-full pt-12 sm:pt-16",children:[(0,a.jsx)("h2",{className:"text-center font-exo2 text-3xl font-extrabold md:text-5xl ".concat(m),children:"Featured Article"}),(0,a.jsx)("article",{className:"".concat(x," mt-6 overflow-hidden rounded-[28px] p-6 sm:p-8 lg:p-9"),children:(0,a.jsxs)("div",{className:"grid gap-8 lg:grid-cols-[1.15fr_1fr] lg:items-center",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"relative overflow-hidden rounded-[22px] shadow-2xl",children:(0,a.jsx)(p,{post:j,className:"h-[260px] w-full rounded-[22px] object-cover transition duration-500 hover:scale-105 sm:h-[320px] lg:h-[360px]"})}),(0,a.jsxs)("div",{className:"mt-5 flex items-center gap-2 text-xs font-medium text-zinc-400 sm:text-sm",children:[(0,a.jsx)(l.A,{className:"h-4 w-4 text-zinc-400 stroke-[1.75]"}),(0,a.jsx)("span",{children:"Team Rasta.Ai"})]})]}),(0,a.jsxs)("div",{className:"flex h-full flex-col justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-4 text-xs font-medium text-zinc-400",children:[(0,a.jsx)("span",{className:"rounded-full border border-[#ff650b]/60 bg-[#ff650b]/15 px-3.5 py-1 text-xs font-semibold text-[#ff650b]",children:j.Type}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,a.jsx)(n.A,{className:"h-4 w-4 text-zinc-400 stroke-[1.75]"}),u(j.CreatedOn)]})]}),(0,a.jsx)("h3",{className:"mt-6 font-exo2 text-xl font-extrabold leading-snug text-white sm:text-2xl lg:text-[28px]",children:j.Title.includes("Rasta.Ai")||j.Title.includes("Rasta.Ai")?(0,a.jsxs)(a.Fragment,{children:[j.Title.split("Rasta.Ai")[0],"Rasta",(0,a.jsx)("span",{className:"text-[#ff650b]",children:".Ai"}),j.Title.split("Rasta.Ai")[1]]}):j.Title}),(0,a.jsx)("p",{className:"mt-5 text-xs leading-relaxed text-zinc-400 sm:text-sm lg:text-base",children:h(j.Description,210)})]}),(0,a.jsx)("div",{className:"mt-8 flex justify-end",children:(0,a.jsx)("button",{onClick:()=>_.push("/blog/".concat(j._id)),className:"h-11 rounded-full border border-[#e05609]/70 bg-[linear-gradient(180deg,#5a2207_0%,#331302_100%)] px-8 text-xs font-semibold text-white shadow-[0_0_24px_rgba(224,86,9,0.4)] transition hover:brightness-110",children:"Read More"})})]})]})})]}),(0,a.jsxs)("section",{className:"relative mx-auto w-full mt-10 pt-10 sm:mt-16 sm:pt-14",children:[(0,a.jsx)("div",{className:"absolute left-0 top-0 h-px w-full bg-[linear-gradient(90deg,transparent,#ff650b_30%,#ff650b_70%,transparent)]"}),(0,a.jsx)("h2",{className:"text-center font-exo2 text-3xl font-extrabold md:text-5xl ".concat(m),children:"Latest Articles"}),(0,a.jsx)("p",{className:"mx-auto mt-3 max-w-3xl text-center text-[10px] text-zinc-400 sm:text-xs",children:"Stay updated with the latest developments in AI road monitoring, industry insights, and technology innovations."}),0===e.length?(0,a.jsx)("p",{className:"py-16 text-center text-sm text-zinc-400",children:"No Blogs posted yet"}):(0,a.jsx)("div",{className:"mt-9 grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:e.map(e=>(0,a.jsxs)("article",{className:"".concat(x," group flex flex-col justify-between overflow-hidden rounded-[24px]"),children:[(0,a.jsxs)("div",{className:"relative w-full overflow-hidden",children:[(0,a.jsx)(p,{post:e,className:"h-52 w-full object-cover transition duration-500 group-hover:scale-105 sm:h-56"}),(0,a.jsx)("span",{className:"absolute left-3 top-3 rounded-full border border-[#ff650b]/30 bg-[#3d1a0e]/85 px-3 py-1 text-[10px] font-semibold text-[#ff8d48] backdrop-blur-sm",children:e.Type})]}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col justify-between p-5 sm:p-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] text-zinc-400",children:[(0,a.jsx)(n.A,{className:"h-3.5 w-3.5 text-[#ff650b]"}),u(e.CreatedOn)]}),(0,a.jsx)("h3",{className:"mt-3 line-clamp-2 font-exo2 text-base font-extrabold leading-snug text-white sm:text-lg",children:e.Title}),(0,a.jsx)("p",{className:"mt-3 line-clamp-3 text-xs leading-relaxed text-zinc-400",children:h(e.Description,140)})]}),(0,a.jsxs)("div",{className:"mt-6 flex items-center justify-between gap-2 pt-2",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1.5 text-[10px] text-zinc-400",children:[(0,a.jsx)(l.A,{className:"h-3.5 w-3.5 text-[#ff650b]"}),"Team Rasta.Ai"]}),(0,a.jsx)("button",{onClick:()=>_.push("/blog/".concat(e._id)),className:"h-11 rounded-full border border-[#e05609]/70 bg-[linear-gradient(180deg,#5a2207_0%,#331302_100%)] px-8 text-xs font-semibold text-white shadow-[0_0_24px_rgba(224,86,9,0.4)] transition hover:brightness-110",children:"Read More"})]})]})]},e._id))})]}),(0,a.jsxs)("section",{className:"relative mx-auto w-full pb-20 pt-14 text-center sm:pb-24 sm:pt-16",children:[(0,a.jsx)("div",{className:"absolute left-0 bottom-0 h-px w-full bg-[linear-gradient(90deg,transparent,#ff650b_30%,#ff650b_70%,transparent)]"}),(0,a.jsx)("h2",{className:"font-exo2 text-3xl font-extrabold sm:text-5xl ".concat(m),children:"Stay Updated"}),(0,a.jsx)("p",{className:"mx-auto mt-4 max-w-5xl text-xs text-zinc-300 sm:text-sm",children:"Reach out to us through any of the following channels. Our team is here to help you transform your road infrastru
1cture management."}),(0,a.jsxs)("div",{className:"mx-auto mt-12 flex max-w-[540px] items-center gap-5",children:[(0,a.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,a.jsx)("label",{htmlFor:"blog-email",className:"absolute -top-3 left-4 z-10 rounded-sm  bg-[#262626] border-white px-2.5 py-0.5 text-[11px] font-normal text-zinc-200",children:"Email Address"}),(0,a.jsx)("input",{id:"blog-email",type:"email","aria-label":"Email Address",value:b,onChange:e=>f(e.target.value),className:"h-13 w-full rounded-2xl border border-white/40 bg-[radial-gradient(ellipse_at_top,rgba(255,255,255,0.06),transparent_75%),linear-gradient(180deg,#181818_0%,#121212_100%)] px-5 py-3 text-xs text-white shadow-[0_0_22px_rgba(255,255,255,0.25),0_12px_28px_rgba(0,0,0,0.8),inset_0_0_16px_rgba(255,255,255,0.06),inset_0_1px_0_rgba(255,255,255,0.25)] outline-none transition duration-300 focus:border-white focus:shadow-[0_0_32px_rgba(255,255,255,0.45),inset_0_0_20px_rgba(255,255,255,0.1),inset_0_1px_0_rgba(255,255,255,0.35)]"})]}),(0,a.jsx)("button",{type:"button",onClick:v,className:"h-13 w-[140px] shrink-0 rounded-full border border-[#e05609]/70 bg-[linear-gradient(180deg,#5a2207_0%,#331302_100%)] px-6 py-3 text-xs font-semibold text-white shadow-[0_0_24px_rgba(224,86,9,0.4)] transition hover:brightness-110",children:"Subscribe"})]})]})]})}},1889:(e,t,s)=>{Promise.resolve().then(s.bind(s,1873))},3418:(e,t,s)=>{"use strict";s.d(t,{G:()=>l,m:()=>r});var a=s(3573);let r={GET_ALL_JOB_POSTS:"".concat(a.C,"job/get-all-jobs-for-landing-page"),APPLY_FOR_JOB:"".concat(a.C,"job/send-application")},l={GET_ALL_BLOGS:"".concat(a.C,"blog/getpublishedblogs"),GET_ONE_BLOG:"".concat(a.C,"blog/getsingleblog"),SUBSCRIBE:"".concat(a.C,"blog/subscribe")}},3573:(e,t,s)=>{"use strict";s.d(t,{C:()=>a});let a="https://rastaaiunika.com/"},3595:(e,t,s)=>{"use strict";var a=s(5976);s.o(a,"useParams")&&s.d(t,{useParams:function(){return a.useParams}}),s.o(a,"usePathname")&&s.d(t,{usePathname:function(){return a.usePathname}}),s.o(a,"useRouter")&&s.d(t,{useRouter:function(){return a.useRouter}})},4943:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(8155).A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},5559:(e,t,s)=>{"use strict";s.d(t,{X:()=>r});var a=s(7451);function r(){return(0,a.jsxs)("main",{className:"relative flex min-h-screen items-center justify-center overflow-hidden bg-[#111111] px-5 pt-24 text-white",children:[(0,a.jsx)("img",{"data-media-loader-ignore":!0,src:"/blogs/Roads_cover.png",alt:"","aria-hidden":"true",className:"absolute inset-0 h-full w-full scale-105 object-cover opacity-55 blur-sm"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-md"}),(0,a.jsxs)("div",{role:"status","aria-live":"polite",className:"relative z-10 flex h-24 w-32 items-center justify-center rounded-2xl border border-white/10 bg-black/20 shadow-[0_0_40px_rgba(255,101,11,0.2)] backdrop-blur-sm",children:[(0,a.jsxs)("div",{className:"media-loading-dots",children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]}),(0,a.jsx)("span",{className:"sr-only",children:"Loading blogs"})]})]})}},6802:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(8155).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},7607:(e,t,s)=>{"use strict";s.d(t,{TS:()=>n,gb:()=>l,og:()=>i});var a=s(548),r=s(3418);let l=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n=!(arguments.length>4)||void 0===arguments[4]||arguments[4];try{let i={pageindex:e.toString(),pagelength:t.toString(),searchtext:s,img:n?"1":"0"};return l&&(i.blogtype=l),(await (0,a.W)("GET",r.G.GET_ALL_BLOGS,null,i,null,"json")).data}catch(e){throw console.error("Error fetching blogs:",e),e}},n=async e=>{try{return(await (0,a.W)("GET","".concat(r.G.GET_ONE_BLOG,"/").concat(e),null,null,null,"json")).data}catch(e){throw console.error("Error fetching blogs:",e),e}},i=async e=>{try{return(await (0,a.W)("POST",r.G.SUBSCRIBE,{email:e}
1,null,null,"json")).data}catch(e){throw console.error("Error Subscribing:",e),e}}}},e=>{e.O(0,[38,168,8088,3731,7358],()=>e(e.s=1889)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.