From eaedcfda12e4e69dfd4e729b85672975dbe8bf07 Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 20 Mar 2026 04:48:57 +0000 Subject: [PATCH] Update src/app/blog/page.tsx --- src/app/blog/page.tsx | 131 +++++++++++++----------------------------- 1 file changed, 39 insertions(+), 92 deletions(-) diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx index ace7bf1..2836091 100644 --- a/src/app/blog/page.tsx +++ b/src/app/blog/page.tsx @@ -4,15 +4,12 @@ import Link from "next/link"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline"; import HeroBillboardGallery from "@/components/sections/hero/HeroBillboardGallery"; -import BlogCardOne from "@/components/sections/blog/BlogCardOne"; +import BlogCardThree from "@/components/sections/blog/BlogCardThree"; import ContactText from "@/components/sections/contact/ContactText"; import FooterBase from "@/components/sections/footer/FooterBase"; -import { BookOpen } from "lucide-react"; -import { useState } from "react"; +import { BookOpen, Zap } from "lucide-react"; export default function BlogPage() { - const [selectedCategory, setSelectedCategory] = useState("all"); - const navItems = [ { name: "Home", id: "home" }, { name: "About", id: "about" }, @@ -61,33 +58,6 @@ export default function BlogPage() { }, ]; - const blogs = [ - { - id: "blog-1", category: "industrial-automation", title: "The Future of Industrial Automation in Southeast Asia", excerpt: "Explore emerging trends and technologies shaping the automation landscape across Thailand and the region.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BC5DoKtnbMRErIYJgmPK5zjs5w/industrial-robot-arm-performing-precise--1773981130354-3aca37a1.png?_wi=1", imageAlt: "Future of industrial automation", authorName: "Somchai Thaichai", authorAvatar: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BC5DoKtnbMRErIYJgmPK5zjs5w/professional-headshot-of-thai-male-execu-1773981130512-3b9ae1e1.png", date: "January 15, 2025"}, - { - id: "blog-2", category: "robotics", title: "Collaborative Robots: Transforming Manufacturing Safety", excerpt: "Learn how collaborative robots (cobots) are revolutionizing workplace safety while boosting productivity in modern factories.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BC5DoKtnbMRErIYJgmPK5zjs5w/advanced-collaborative-robot-with-articu-1773981131004-a16eab70.png?_wi=1", imageAlt: "Collaborative robots", authorName: "Niran Suksomtree", authorAvatar: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BC5DoKtnbMRErIYJgmPK5zjs5w/professional-headshot-of-thai-male-facto-1773981130089-2c759151.png", date: "January 12, 2025"}, - { - id: "blog-3", category: "packaging", title: "Maximizing Efficiency: Advanced Packaging Solutions for Food Industry", excerpt: "Discover how state-of-the-art packaging automation reduces waste, improves quality, and accelerates production timelines.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BC5DoKtnbMRErIYJgmPK5zjs5w/state-of-the-art-automatic-packaging-sys-1773981131749-3c44c882.png?_wi=1", imageAlt: "Packaging solutions", authorName: "Wanida Kachuay", authorAvatar: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BC5DoKtnbMRErIYJgmPK5zjs5w/professional-headshot-of-thai-female-pro-1773981130978-eb2d4e1c.png", date: "January 10, 2025"}, - { - id: "blog-4", category: "smart-solutions", title: "Smart Gate Technology: Modern Security for Residential & Commercial Properties", excerpt: "Understand the latest innovations in automated gate systems and how they enhance security and convenience for properties.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BC5DoKtnbMRErIYJgmPK5zjs5w/modern-premium-automatic-sliding-gate-wi-1773981131408-069d06de.png?_wi=1", imageAlt: "Smart gate technology", authorName: "Pattarapol Moonkhan", authorAvatar: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BC5DoKtnbMRErIYJgmPK5zjs5w/professional-headshot-of-thai-male-busin-1773981131172-a7325777.png", date: "January 8, 2025"}, - { - id: "blog-5", category: "industrial-automation", title: "ROI in Industrial Automation: What You Need to Know", excerpt: "A comprehensive guide to calculating return on investment and understanding the long-term benefits of automation projects.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BC5DoKtnbMRErIYJgmPK5zjs5w/industrial-automation-control-system-wit-1773981131808-cf06236c.png?_wi=1", imageAlt: "ROI in automation", authorName: "Somchai Thaichai", authorAvatar: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BC5DoKtnbMRErIYJgmPK5zjs5w/professional-headshot-of-thai-male-execu-1773981130512-3b9ae1e1.png", date: "January 5, 2025"}, - { - id: "blog-6", category: "robotics", title: "Custom Engineering Solutions: Tailoring Automation to Your Needs", excerpt: "Explore how bespoke automation solutions can address unique operational challenges and drive competitive advantages.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BC5DoKtnbMRErIYJgmPK5zjs5w/custom-engineered-automation-solution-be-1773981131850-3c480c9d.png?_wi=1", imageAlt: "Custom engineering solutions", authorName: "Niran Suksomtree", authorAvatar: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BC5DoKtnbMRErIYJgmPK5zjs5w/professional-headshot-of-thai-male-facto-1773981130089-2c759151.png", date: "January 2, 2025"}, - ]; - - const categories = [ - { id: "all", label: "All Articles" }, - { id: "industrial-automation", label: "Industrial Automation" }, - { id: "robotics", label: "Robotics" }, - { id: "packaging", label: "Packaging" }, - { id: "smart-solutions", label: "Smart Solutions" }, - ]; - - const filteredBlogs = selectedCategory === "all" - ? blogs - : blogs.filter(b => b.category === selectedCategory); - return ( -
-
-
-

Filter Articles by Category

-
- {categories.map((cat) => ( - - ))} -
-
- -
- {filteredBlogs.map((blog) => ( -
- {blog.imageAlt} -
-

{blog.category.replace("-", " ")}

-

{blog.title}

-

{blog.excerpt}

-
- {blog.authorName} -
-

{blog.authorName}

-

{blog.date}

-
-
- - Read More → - -
-
- ))} -
-
+
+
@@ -208,4 +155,4 @@ export default function BlogPage() {
); -} \ No newline at end of file +}