- Move all Astro files from dealplustech-astro/ to root - Archive Next.js code in _nextjs-backup/ - Update .gitignore for Astro project - Simplify project structure This completes the migration from Next.js to Astro. The Astro project is now at the root level.
1 line
5.3 KiB
JavaScript
1 line
5.3 KiB
JavaScript
(()=>{var e={};e.id=404,e.ids=[404],e.modules={7849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},5403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},4749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},4300:e=>{"use strict";e.exports=require("buffer")},7147:e=>{"use strict";e.exports=require("fs")},1017:e=>{"use strict";e.exports=require("path")},8177:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GlobalError:()=>i.a,__next_app__:()=>x,originalPathname:()=>p,pages:()=>d,routeModule:()=>u,tree:()=>c}),s(7791),s(6670),s(2523);var r=s(3191),a=s(8716),n=s(7922),i=s.n(n),o=s(5231),l={};for(let e in o)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>o[e]);s.d(t,l);let c=["",{children:["blog",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,7791)),"/Users/kunthawatgreethong/Gitea/dealplustech/src/app/blog/page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(s.bind(s,6670)),"/Users/kunthawatgreethong/Gitea/dealplustech/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(s.bind(s,2523)),"/Users/kunthawatgreethong/Gitea/dealplustech/src/app/not-found.tsx"]}],d=["/Users/kunthawatgreethong/Gitea/dealplustech/src/app/blog/page.tsx"],p="/blog/page",x={require:s,loadChunk:()=>Promise.resolve()},u=new r.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/blog/page",pathname:"/blog",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},9611:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,2481,23)),Promise.resolve().then(s.t.bind(s,9404,23))},7791:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>u,metadata:()=>x});var r=s(9510),a=s(7371),n=s(7710),i=s(7147),o=s.n(i),l=s(1017),c=s.n(l),d=s(3673),p=s.n(d);let x={title:"บทความ",description:"บทความความรู้เกี่ยวกับวัสดุท่อ อุปกรณ์ระบบท่อ และเทคนิคการติดตั้ง"};function u(){let e=function(){let e=c().join(process.cwd(),"src/content/blog");return o().readdirSync(e).filter(e=>e.endsWith(".md")).map(t=>{let s=c().join(e,t),r=o().readFileSync(s,"utf-8"),{data:a}=p()(r),n=a.category||(Array.isArray(a.categories)?a.categories[0]:"ทั่วไป"),i=a.image||a.featuredImage||"/images/2021/03/ppr-pipe_000C.jpg";return{slug:t.replace(".md",""),title:a.title||"ไม่มีชื่อ",excerpt:a.excerpt||"",date:a.date||new Date().toISOString(),author:a.author||"ดีลพลัสเทค",category:n,image:i}}).sort((e,t)=>new Date(t.date).getTime()-new Date(e.date).getTime())}();return r.jsx("div",{className:"pt-32 pb-16",children:(0,r.jsxs)("div",{className:"container mx-auto px-4",children:[(0,r.jsxs)("div",{className:"text-center mb-12",children:[(0,r.jsxs)("h1",{className:"text-4xl md:text-5xl font-bold text-secondary-900 mb-4",children:["บทความ",r.jsx("span",{className:"text-primary-600",children:"ความรู้"})]}),r.jsx("p",{className:"text-xl text-secondary-600 max-w-2xl mx-auto",children:"บทความความรู้เกี่ยวกับวัสดุท่อ อุปกรณ์ระบบท่อ และเทคนิคการติดตั้ง"})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map(e=>(0,r.jsxs)(a.default,{href:`/blog/${e.slug}`,className:"card group",children:[(0,r.jsxs)("div",{className:"relative aspect-video bg-secondary-100",children:[r.jsx(n.default,{src:e.image,alt:e.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-300"}),r.jsx("div",{className:"absolute top-4 left-4",children:r.jsx("span",{className:"industrial-badge",children:e.category})})]}),(0,r.jsxs)("div",{className:"p-6",children:[r.jsx("time",{className:"text-sm text-secondary-500",children:new Date(e.date).toLocaleDateString("th-TH",{year:"numeric",month:"long",day:"numeric"})}),r.jsx("h3",{className:"text-xl font-bold text-secondary-900 mt-2 group-hover:text-primary-600 transition-colors",children:e.title}),r.jsx("p",{className:"text-secondary-600 text-sm mt-2 line-clamp-2",children:e.excerpt}),(0,r.jsxs)("span",{className:"text-primary-600 font-semibold flex items-center gap-2 mt-4",children:["อ่านเพิ่มเติม",r.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]},e.slug))}),0===e.length&&r.jsx("div",{className:"text-center py-12",children:r.jsx("p",{className:"text-secondary-600",children:"ยังไม่มีบทความในขณะนี้"})})]})})}}};var t=require("../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[948,12,673,904],()=>s(8177));module.exports=r})(); |