Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 15:05:20 +00:00
2 changed files with 25 additions and 47 deletions

View File

@@ -9,7 +9,7 @@ import SplitAbout from '@/components/sections/about/SplitAbout';
import FeatureCardNineteen from '@/components/sections/feature/FeatureCardNineteen';
import ContactText from '@/components/sections/contact/ContactText';
import FooterCard from '@/components/sections/footer/FooterCard';
import { AlertCircle, Star, Heart, Clock, MapPin, Award, Trending, Smile } from 'lucide-react';
import { AlertCircle, Star, Heart, Clock, MapPin, Award, TrendingUp, Smile } from 'lucide-react';
export default function LandingPage() {
return (
@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="mediumSmall"
sizing="largeSizeMediumTitles"
background="aurora"
background="circleGradient"
cardStyle="outline"
primaryButtonStyle="radial-glow"
secondaryButtonStyle="radial-glow"
@@ -46,7 +46,7 @@ export default function LandingPage() {
tag="⚠️ Warning"
tagIcon={AlertCircle}
tagAnimation="slide-up"
background={{ variant: "aurora" }}
background={{ variant: "plain" }}
buttons={[
{ text: "See the Menu", href: "products" },
{ text: "Order a Cake", href: "contact" }
@@ -68,10 +68,10 @@ export default function LandingPage() {
animationType="slide-up"
testimonials={[
{
id: "1", name: "Pranom", handle: "Local Regular", testimonial: "เค้กอร่อย มีให้เลือกหลายแบบ… แนะนำจริงๆ", imageSrc: "http://img.b2bpic.net/free-photo/woman-with-big-smile-her-face-after-big-shopping_329181-18748.jpg?_wi=1", imageAlt: "Customer 1"
id: "1", name: "Pranom", handle: "Local Regular", testimonial: "เค้กอร่อย มีให้เลือกหลายแบบ… แนะนำจริงๆ", imageSrc: "http://img.b2bpic.net/free-photo/woman-with-big-smile-her-face-after-big-shopping_329181-18748.jpg", imageAlt: "Customer 1"
},
{
id: "2", name: "Somchai", handle: "@SukhothaiVisitor", testimonial: "ผ่านไปทีไรต้องจัด - always stop by when passing through!", imageSrc: "http://img.b2bpic.net/free-photo/attractive-blond-business-woman-white-shirt-eyeglasses-crossed-arms-grey-background_613910-13618.jpg?_wi=1", imageAlt: "Customer 2"
id: "2", name: "Somchai", handle: "@SukhothaiVisitor", testimonial: "ผ่านไปทีไรต้องจัด - always stop by when passing through!", imageSrc: "http://img.b2bpic.net/free-photo/attractive-blond-business-woman-white-shirt-eyeglasses-crossed-arms-grey-background_613910-13618.jpg", imageAlt: "Customer 2"
},
{
id: "3", name: "Niran", handle: "Coconut Cake Addict", testimonial: "Coconut cake vanilla กับใบเตย เลือกไม่ได้ ต้องซื้อทั้งคู่", imageSrc: "http://img.b2bpic.net/free-photo/cheerful-young-caucasian-female-wearing-her-red-hair-bun-laughing-out-loud_273609-9260.jpg", imageAlt: "Customer 3"
@@ -80,10 +80,10 @@ export default function LandingPage() {
id: "4", name: "Sukanya", handle: "@ButterBunLover", testimonial: "Butter bun with icing sugar — the best in Sukhothai!", imageSrc: "http://img.b2bpic.net/free-photo/bearded-man-wearing-white-shirt-looking-smiling-showing-thumbs-up-standing-blue-wall_141793-55879.jpg", imageAlt: "Customer 4"
},
{
id: "5", name: "Krit", handle: "Local Legend Believer", testimonial: "ร้านเบเกอรี่ที่อร่อยที่สุดในสุโขทัย - hands down the best bakery.", imageSrc: "http://img.b2bpic.net/free-photo/woman-with-big-smile-her-face-after-big-shopping_329181-18748.jpg?_wi=2", imageAlt: "Customer 5"
id: "5", name: "Krit", handle: "Local Legend Believer", testimonial: "ร้านเบเกอรี่ที่อร่อยที่สุดในสุโขทัย - hands down the best bakery.", imageSrc: "http://img.b2bpic.net/free-photo/woman-with-big-smile-her-face-after-big-shopping_329181-18748.jpg", imageAlt: "Customer 5"
},
{
id: "6", name: "Daeng", handle: "Loyal Customer", testimonial: "อร่อยทุกอย่าง ซื้อประจำ - Everything is delicious, I buy regularly!", imageSrc: "http://img.b2bpic.net/free-photo/attractive-blond-business-woman-white-shirt-eyeglasses-crossed-arms-grey-background_613910-13618.jpg?_wi=2", imageAlt: "Customer 6"
id: "6", name: "Daeng", handle: "Loyal Customer", testimonial: "อร่อยทุกอย่าง ซื้อประจำ - Everything is delicious, I buy regularly!", imageSrc: "http://img.b2bpic.net/free-photo/attractive-blond-business-woman-white-shirt-eyeglasses-crossed-arms-grey-background_613910-13618.jpg", imageAlt: "Customer 6"
}
]}
speed={40}
@@ -143,7 +143,7 @@ export default function LandingPage() {
title: "Real Butter, Real Quality", description: "Premium ingredients that make the difference in every bite.", icon: Award
},
{
title: "Growing Beyond Sukhothai", description: "Now expanding to Chiang Mai while keeping that local legendary touch.", icon: Trending
title: "Growing Beyond Sukhothai", description: "Now expanding to Chiang Mai while keeping that local legendary touch.", icon: TrendingUp
}
]}
/>
@@ -158,7 +158,6 @@ export default function LandingPage() {
tag="Our Promise"
tagIcon={Smile}
tagAnimation="slide-up"
animationType="slide-up"
features={[
{
id: 1,
@@ -184,7 +183,7 @@ export default function LandingPage() {
<ContactText
text="Passing Through Sukhothai? You already know what locals will tell you: Stop by Nual Bakery."
animationType="entrance-slide"
background={{ variant: "aurora" }}
background={{ variant: "plain" }}
useInvertedBackground={false}
buttons={[
{ text: "Get Directions", href: "#" },

View File

@@ -1,51 +1,30 @@
"use client";
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
import React from 'react';
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
text: string;
className?: string;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({ text, className = '' }) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox="0 0 300 100"
className={`w-full h-auto ${className}`}
xmlns="http://www.w3.org/2000/svg"
>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
}}
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="central"
fontSize="48"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;