Merge version_1 into main #2
@@ -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"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -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<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
||||
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 (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox={`0 0 ${width} ${height}`}
|
||||
className={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="middle"
|
||||
fontSize={fontSize}
|
||||
fontWeight="bold"
|
||||
className={textClassName}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user