From 22a6b49fc3d87694b9fb926ee7ff629f3446e16c Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 24 May 2026 21:13:18 +0000 Subject: [PATCH 1/7] Update src/components/sections/blog/BlogArticle.tsx --- src/components/sections/blog/BlogArticle.tsx | 94 -------------------- 1 file changed, 94 deletions(-) diff --git a/src/components/sections/blog/BlogArticle.tsx b/src/components/sections/blog/BlogArticle.tsx index e79f707..e69de29 100644 --- a/src/components/sections/blog/BlogArticle.tsx +++ b/src/components/sections/blog/BlogArticle.tsx @@ -1,94 +0,0 @@ -import ScrollReveal from "@/components/ui/ScrollReveal"; -import ImageOrVideo from "@/components/ui/ImageOrVideo"; - -type BlogArticleProps = { - category: string; - title: string; - excerpt?: string; - content: string; - imageSrc: string; - authorName: string; - authorImageSrc: string; - date: string; - readingTime?: string; - backButton?: { text: string; href: string }; -}; - -const BlogArticle = ({ - category, - title, - excerpt, - content, - imageSrc, - authorName, - authorImageSrc, - date, - readingTime, - backButton = { text: "Back to Blog", href: "/blog" }, -}: BlogArticleProps) => { - return ( -
-
- -
-
- - {backButton.text} - - / - {category} -
- -
- -

- {title} -

- - {excerpt && ( -

- {excerpt} -

- )} - -
- -
- {authorName} - - {date} - {readingTime && ` ยท ${readingTime}`} - -
-
-
-
-
- - -
- -
-
- - -
- -
-
- ); -}; - -export default BlogArticle; -- 2.49.1 From dc0d96edef6be364dda7088a505a2840483c4451 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 24 May 2026 21:13:20 +0000 Subject: [PATCH 2/7] Update src/components/sections/footer/FooterSimpleMedia.tsx --- .../sections/footer/FooterSimpleMedia.tsx | 95 ------------------- 1 file changed, 95 deletions(-) diff --git a/src/components/sections/footer/FooterSimpleMedia.tsx b/src/components/sections/footer/FooterSimpleMedia.tsx index 5c3cac5..e69de29 100644 --- a/src/components/sections/footer/FooterSimpleMedia.tsx +++ b/src/components/sections/footer/FooterSimpleMedia.tsx @@ -1,95 +0,0 @@ -import { useButtonClick } from "@/hooks/useButtonClick"; -import ImageOrVideo from "@/components/ui/ImageOrVideo"; - -type FooterLink = { - label: string; - href?: string; - onClick?: () => void; -}; - -type FooterColumn = { - title: string; - items: FooterLink[]; -}; - -const FooterLinkItem = ({ label, href, onClick }: FooterLink) => { - const handleClick = useButtonClick(href, onClick); - - return ( - - ); -}; - -const FooterBottomLink = ({ label, href, onClick }: FooterLink) => { - const handleClick = useButtonClick(href, onClick); - - return ( - - ); -}; - -const FooterSimpleMedia = ({ - imageSrc, - videoSrc, - brand, - columns, - copyright, - links, -}: ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }) & { - brand: string; - columns: FooterColumn[]; - copyright: string; - links: FooterLink[]; -}) => { - return ( -
-
- -
- -
-
-
-

{brand}

- -
- {columns.map((column) => ( -
-

{column.title}

- {column.items.map((item) => ( - - ))} -
- ))} -
-
- -
- {copyright} -
- {links.map((link) => ( - - ))} -
-
-
-
-
- ); -}; - -export default FooterSimpleMedia; -- 2.49.1 From cfa78e08fab565d0c5f9b6c616096094cf215b0b Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 24 May 2026 21:13:20 +0000 Subject: [PATCH 3/7] Update src/components/sections/hero/HeroBillboardCarousel.tsx --- .../sections/hero/HeroBillboardCarousel.tsx | 75 ------------------- 1 file changed, 75 deletions(-) diff --git a/src/components/sections/hero/HeroBillboardCarousel.tsx b/src/components/sections/hero/HeroBillboardCarousel.tsx index 24d3d50..e69de29 100644 --- a/src/components/sections/hero/HeroBillboardCarousel.tsx +++ b/src/components/sections/hero/HeroBillboardCarousel.tsx @@ -1,75 +0,0 @@ -import Button from "@/components/ui/Button"; -import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot"; -import TextAnimation from "@/components/ui/TextAnimation"; -import ImageOrVideo from "@/components/ui/ImageOrVideo"; - -type HeroBillboardCarouselProps = { - tag: string; - title: string; - description: string; - primaryButton: { text: string; href: string }; - secondaryButton: { text: string; href: string }; - items: ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never })[]; -}; - -const HeroBillboardCarousel = ({ - tag, - title, - description, - primaryButton, - secondaryButton, - items, -}: HeroBillboardCarouselProps) => { - const duplicated = [...items, ...items, ...items, ...items]; - - return ( -
- -
-
-

{tag}

-
- - - - - -
-
-
- -
-
- {duplicated.map((item, i) => ( -
- -
- ))} -
-
-
- ); -}; - -export default HeroBillboardCarousel; -- 2.49.1 From 0933ab81634283b56cb0174fa5735c52deca48b6 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 24 May 2026 21:13:21 +0000 Subject: [PATCH 4/7] Update src/components/sections/hero/HeroBrandCarousel.tsx --- .../sections/hero/HeroBrandCarousel.tsx | 109 ------------------ 1 file changed, 109 deletions(-) diff --git a/src/components/sections/hero/HeroBrandCarousel.tsx b/src/components/sections/hero/HeroBrandCarousel.tsx index f645b5c..e69de29 100644 --- a/src/components/sections/hero/HeroBrandCarousel.tsx +++ b/src/components/sections/hero/HeroBrandCarousel.tsx @@ -1,109 +0,0 @@ -import { useEffect, useState } from "react"; -import Button from "@/components/ui/Button"; -import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot"; -import TextAnimation from "@/components/ui/TextAnimation"; -import ImageOrVideo from "@/components/ui/ImageOrVideo"; -import AutoFillText from "@/components/ui/AutoFillText"; -import { cls } from "@/lib/utils"; - -type HeroBrandCarouselProps = { - brand: string; - description: string; - primaryButton: { text: string; href: string }; - secondaryButton: { text: string; href: string }; - items: ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never })[]; -}; - -const INTERVAL = 4000; - -const HeroBrandCarousel = ({ - brand, - description, - primaryButton, - secondaryButton, - items, -}: HeroBrandCarouselProps) => { - const [currentIndex, setCurrentIndex] = useState(0); - - useEffect(() => { - const interval = setInterval(() => { - setCurrentIndex((prev) => (prev + 1) % items.length); - }, INTERVAL); - return () => clearInterval(interval); - }, [currentIndex, items.length]); - - return ( -
- - {items.map((item, index) => ( -
- -
- ))} - -
- ); -}; - -export default HeroBrandCarousel; -- 2.49.1 From 88511021a38c43aa9ef8fb9a1e31db0109ee54cf Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 24 May 2026 21:13:23 +0000 Subject: [PATCH 5/7] Update src/components/templates/ResultsComparison.tsx --- .../templates/ResultsComparison.tsx | 110 ------------------ 1 file changed, 110 deletions(-) diff --git a/src/components/templates/ResultsComparison.tsx b/src/components/templates/ResultsComparison.tsx index 6b8c699..e69de29 100644 --- a/src/components/templates/ResultsComparison.tsx +++ b/src/components/templates/ResultsComparison.tsx @@ -1,110 +0,0 @@ -import Button from "@/components/ui/Button"; -import TextAnimation from "@/components/ui/TextAnimation"; -import ImageOrVideo from "@/components/ui/ImageOrVideo"; -import ScrollReveal from "@/components/ui/ScrollReveal"; -import { cls } from "@/lib/utils"; - -type ResultItem = { - treatment: string; - detail: string; - beforeSrc: string; - afterSrc: string; -}; - -interface ResultsComparisonProps { - tag: string; - title: string; - description: string; - primaryButton?: { text: string; href: string }; - secondaryButton?: { text: string; href: string }; - items: ResultItem[]; -} - -const ImageLabel = ({ text, side }: { text: string; side: "left" | "right" }) => ( -
-

{text}

-
-); - -const ResultsComparison = ({ - tag, - title, - description, - primaryButton, - secondaryButton, - items, -}: ResultsComparisonProps) => { - const duplicated = [...items, ...items, ...items, ...items]; - - return ( -
-
-
-
-

{tag}

-
- - - - - - {(primaryButton || secondaryButton) && ( -
- {primaryButton &&
- )} -
- - -
-
- {duplicated.map((item, i) => ( -
-
-
- - -
-
-
- - -
-
-
-

- {item.treatment} -

-

- {item.detail} -

-
-
- ))} -
-
- -
-
- ); -}; - -export default ResultsComparison; -- 2.49.1 From 20350b9fd9d2452c7e157cd9fd19e6a85c99f969 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 24 May 2026 21:13:25 +0000 Subject: [PATCH 6/7] Update src/components/ui/LightRaysCornerBackground.tsx --- .../ui/LightRaysCornerBackground.tsx | 54 ------------------- 1 file changed, 54 deletions(-) diff --git a/src/components/ui/LightRaysCornerBackground.tsx b/src/components/ui/LightRaysCornerBackground.tsx index dab55c3..e69de29 100644 --- a/src/components/ui/LightRaysCornerBackground.tsx +++ b/src/components/ui/LightRaysCornerBackground.tsx @@ -1,54 +0,0 @@ -import { cls } from "@/lib/utils"; - -type LightRaysCornerBackgroundProps = { - position: "fixed" | "absolute"; -}; - -const LightRaysCornerBackground = ({ position }: LightRaysCornerBackgroundProps) => { - return ( -