From 69d9b85b55a01b922b5b9d5481219ffc6fc8110b Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 23:56:07 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index d0cbd61..bfd4cc9 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -49,10 +49,10 @@ export default function CafeLandingPage() { { text: "View Menu", href: "#products" } ]} layoutOrder="default" - imageSrc="http://img.b2bpic.net/free-photo/close-up-roasted-coffee-beans_23-2148337231.jpg?_wi=1" + imageSrc="http://img.b2bpic.net/free-photo/close-up-roasted-coffee-beans_23-2148337231.jpg" imageAlt="Artisan coffee setup in our café" frameStyle="card" - background={{ variant: "circleGradient" }} + background={{ variant: "plain" }} mediaAnimation="slide-up" buttonAnimation="opacity" /> @@ -82,13 +82,13 @@ export default function CafeLandingPage() { gridVariant="three-columns-all-equal-width" products={[ { - id: "1", name: "Morning Espresso", price: "$4.50", imageSrc: "http://img.b2bpic.net/free-vector/flat-design-coffee-twitter-header-template_23-2149190885.jpg?_wi=1", imageAlt: "Premium espresso" + id: "1", name: "Morning Espresso", price: "$4.50", imageSrc: "http://img.b2bpic.net/free-vector/flat-design-coffee-twitter-header-template_23-2149190885.jpg", imageAlt: "Premium espresso" }, { - id: "2", name: "Butter Croissant", price: "$5.00", imageSrc: "http://img.b2bpic.net/free-photo/croissant-with-fresh-berries-jam-milk_23-2147871353.jpg?_wi=1", imageAlt: "Fresh butter croissant" + id: "2", name: "Butter Croissant", price: "$5.00", imageSrc: "http://img.b2bpic.net/free-photo/croissant-with-fresh-berries-jam-milk_23-2147871353.jpg", imageAlt: "Fresh butter croissant" }, { - id: "3", name: "Specialty Cappuccino", price: "$6.00", imageSrc: "http://img.b2bpic.net/free-photo/close-up-glass-milk-coffee-with-roasted-beans_23-2148251637.jpg?_wi=1", imageAlt: "Artisan cappuccino with latte art" + id: "3", name: "Specialty Cappuccino", price: "$6.00", imageSrc: "http://img.b2bpic.net/free-photo/close-up-glass-milk-coffee-with-roasted-beans_23-2148251637.jpg", imageAlt: "Artisan cappuccino with latte art" } ]} /> @@ -118,22 +118,22 @@ export default function CafeLandingPage() { useInvertedBackground={false} testimonials={[ { - id: "1", name: "Sarah Johnson, Coffee Enthusiast", date: "Date: 15 January 2025", title: "The best coffee in the city!", quote: "I've been coming here for two years now. The baristas know my order by heart, and the quality of coffee is consistently exceptional. It's more than just coffee—it's a daily ritual.", tag: "Regular Guest", avatarSrc: "http://img.b2bpic.net/free-photo/businessman-smiling-looking-camera_23-2148112827.jpg", avatarAlt: "Sarah Johnson", imageSrc: "http://img.b2bpic.net/free-photo/close-up-roasted-coffee-beans_23-2148337231.jpg?_wi=2", imageAlt: "Artisan coffee setup" + id: "1", name: "Sarah Johnson, Coffee Enthusiast", date: "Date: 15 January 2025", title: "The best coffee in the city!", quote: "I've been coming here for two years now. The baristas know my order by heart, and the quality of coffee is consistently exceptional. It's more than just coffee—it's a daily ritual.", tag: "Regular Guest", avatarSrc: "http://img.b2bpic.net/free-photo/businessman-smiling-looking-camera_23-2148112827.jpg", avatarAlt: "Sarah Johnson", imageSrc: "http://img.b2bpic.net/free-photo/close-up-roasted-coffee-beans_23-2148337231.jpg", imageAlt: "Artisan coffee setup" }, { - id: "2", name: "Michael Chen, Digital Nomad", date: "Date: 12 January 2025", title: "Perfect spot to work and relax", quote: "The ambiance is incredible, WiFi is fast, and the staff is incredibly friendly. I work here at least three times a week. The pastries are fresh and the coffee keeps me going.", tag: "Frequent Visitor", avatarSrc: "http://img.b2bpic.net/free-photo/portrait-smiling-blonde-businesswoman-formal-dressed-isolated-dark-textured-background_613910-5391.jpg", avatarAlt: "Michael Chen", imageSrc: "http://img.b2bpic.net/free-photo/cozy-cafe-hotel-decorated-with-green-plants-flowers_181624-37913.jpg?_wi=1", imageAlt: "Cozy café interior" + id: "2", name: "Michael Chen, Digital Nomad", date: "Date: 12 January 2025", title: "Perfect spot to work and relax", quote: "The ambiance is incredible, WiFi is fast, and the staff is incredibly friendly. I work here at least three times a week. The pastries are fresh and the coffee keeps me going.", tag: "Frequent Visitor", avatarSrc: "http://img.b2bpic.net/free-photo/portrait-smiling-blonde-businesswoman-formal-dressed-isolated-dark-textured-background_613910-5391.jpg", avatarAlt: "Michael Chen", imageSrc: "http://img.b2bpic.net/free-photo/cozy-cafe-hotel-decorated-with-green-plants-flowers_181624-37913.jpg", imageAlt: "Cozy café interior" }, { - id: "3", name: "David Park, Photographer", date: "Date: 8 January 2025", title: "Instagram-worthy and delicious", quote: "Every cup is a work of art. The latte art is beautiful, and the taste matches the presentation. This is where memories are made, one cup at a time.", tag: "Social Media Lover", avatarSrc: "http://img.b2bpic.net/free-photo/young-adult-pressing-buzzer-button_23-2149586556.jpg", avatarAlt: "David Park", imageSrc: "http://img.b2bpic.net/free-photo/close-up-glass-milk-coffee-with-roasted-beans_23-2148251637.jpg?_wi=2", imageAlt: "Cappuccino specialty" + id: "3", name: "David Park, Photographer", date: "Date: 8 January 2025", title: "Instagram-worthy and delicious", quote: "Every cup is a work of art. The latte art is beautiful, and the taste matches the presentation. This is where memories are made, one cup at a time.", tag: "Social Media Lover", avatarSrc: "http://img.b2bpic.net/free-photo/young-adult-pressing-buzzer-button_23-2149586556.jpg", avatarAlt: "David Park", imageSrc: "http://img.b2bpic.net/free-photo/close-up-glass-milk-coffee-with-roasted-beans_23-2148251637.jpg", imageAlt: "Cappuccino specialty" }, { - id: "4", name: "Emma Rodriguez, Local Business Owner", date: "Date: 5 January 2025", title: "Supporting local excellence", quote: "I love supporting this local café. The commitment to quality is evident in every detail. The team goes above and beyond to make every customer feel welcome.", tag: "Local Advocate", avatarSrc: "http://img.b2bpic.net/free-photo/positive-excited-young-woman-showing-thumbs-up-having-fun_1262-14331.jpg", avatarAlt: "Emma Rodriguez", imageSrc: "http://img.b2bpic.net/free-photo/croissant-with-fresh-berries-jam-milk_23-2147871353.jpg?_wi=2", imageAlt: "Croissant pastry" + id: "4", name: "Emma Rodriguez, Local Business Owner", date: "Date: 5 January 2025", title: "Supporting local excellence", quote: "I love supporting this local café. The commitment to quality is evident in every detail. The team goes above and beyond to make every customer feel welcome.", tag: "Local Advocate", avatarSrc: "http://img.b2bpic.net/free-photo/positive-excited-young-woman-showing-thumbs-up-having-fun_1262-14331.jpg", avatarAlt: "Emma Rodriguez", imageSrc: "http://img.b2bpic.net/free-photo/croissant-with-fresh-berries-jam-milk_23-2147871353.jpg", imageAlt: "Croissant pastry" }, { - id: "5", name: "James Wilson, Architect", date: "Date: 2 January 2025", title: "Where inspiration meets coffee", quote: "The design of this space is as thoughtful as the coffee. It's a place where you can truly think, create, and connect with others. Highly recommended.", tag: "Creative Professional", avatarSrc: "http://img.b2bpic.net/free-photo/businessman-smiling-looking-camera_23-2148112827.jpg", avatarAlt: "James Wilson", imageSrc: "http://img.b2bpic.net/free-photo/cozy-cafe-hotel-decorated-with-green-plants-flowers_181624-37913.jpg?_wi=2", imageAlt: "Café interior" + id: "5", name: "James Wilson, Architect", date: "Date: 2 January 2025", title: "Where inspiration meets coffee", quote: "The design of this space is as thoughtful as the coffee. It's a place where you can truly think, create, and connect with others. Highly recommended.", tag: "Creative Professional", avatarSrc: "http://img.b2bpic.net/free-photo/businessman-smiling-looking-camera_23-2148112827.jpg", avatarAlt: "James Wilson", imageSrc: "http://img.b2bpic.net/free-photo/cozy-cafe-hotel-decorated-with-green-plants-flowers_181624-37913.jpg", imageAlt: "Café interior" }, { - id: "6", name: "Lisa Anderson, Student", date: "Date: 30 December 2024", title: "My study sanctuary", quote: "Quiet yet social, productive yet relaxing. The café has become my favorite place to study and meet friends. The staff remembers my usual order every time!", tag: "Student Member", avatarSrc: "http://img.b2bpic.net/free-photo/portrait-smiling-blonde-businesswoman-formal-dressed-isolated-dark-textured-background_613910-5391.jpg", avatarAlt: "Lisa Anderson", imageSrc: "http://img.b2bpic.net/free-vector/flat-design-coffee-twitter-header-template_23-2149190885.jpg?_wi=2", imageAlt: "Espresso cup" + id: "6", name: "Lisa Anderson, Student", date: "Date: 30 December 2024", title: "My study sanctuary", quote: "Quiet yet social, productive yet relaxing. The café has become my favorite place to study and meet friends. The staff remembers my usual order every time!", tag: "Student Member", avatarSrc: "http://img.b2bpic.net/free-photo/portrait-smiling-blonde-businesswoman-formal-dressed-isolated-dark-textured-background_613910-5391.jpg", avatarAlt: "Lisa Anderson", imageSrc: "http://img.b2bpic.net/free-vector/flat-design-coffee-twitter-header-template_23-2149190885.jpg", imageAlt: "Espresso cup" } ]} /> -- 2.49.1 From 6006ebcc75ee679f76e5a8fea8367679b808344c Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 23:56:07 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 69 +++++++++---------- 1 file changed, 33 insertions(+), 36 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..48970ba 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,48 @@ -"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; + textClassName?: string; + size?: 'sm' | 'md' | 'lg' | 'xl'; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + text, + className = '', + textClassName = '', + size = 'md' +}) => { + const sizeMap = { + sm: { width: 120, height: 40, fontSize: 24 }, + md: { width: 160, height: 50, fontSize: 32 }, + lg: { width: 240, height: 80, fontSize: 48 }, + xl: { width: 320, height: 100, fontSize: 64 } + }; + + const { width, height, fontSize } = sizeMap[size]; return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file -- 2.49.1