Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 04:16:22 +00:00
2 changed files with 38 additions and 47 deletions

View File

@@ -21,7 +21,7 @@ export default function LandingPage() {
borderRadius="pill"
contentWidth="compact"
sizing="large"
background="aurora"
background="circleGradient"
cardStyle="glass-depth"
primaryButtonStyle="double-inset"
secondaryButtonStyle="radial-glow"
@@ -46,7 +46,7 @@ export default function LandingPage() {
tag="Artisan Excellence"
title="Fresh Baked Happiness Every Morning"
description="Artisan donuts, warm cinnamon rolls, and specialty coffee made with love. Experience the warmth and kindness of Eats Bakery & Coffee."
background={{ variant: "aurora" }}
background={{ variant: "plain" }}
imageSrc="http://img.b2bpic.net/free-photo/delicious-donuts-arrangement_23-2148536870.jpg"
imageAlt="Fresh baked pastries and specialty coffee at Eats Bakery & Coffee"
tagAnimation="slide-up"
@@ -85,7 +85,7 @@ export default function LandingPage() {
id: "5", name: "Iced Matcha Latte", price: "$6.00", imageSrc: "http://img.b2bpic.net/free-photo/hot-green-tea-glass-with-cream-topped-with-green-tea-decorated-with-green-tea-powder_1150-23337.jpg", imageAlt: "Iced matcha latte with vanilla and premium presentation"
},
{
id: "6", name: "Chocolate Croissant", price: "$4.75", imageSrc: "http://img.b2bpic.net/free-photo/delicious-sweets-are-served-gold-tray_8353-10483.jpg?_wi=1", imageAlt: "Buttery chocolate croissant with artisan touch"
id: "6", name: "Chocolate Croissant", price: "$4.75", imageSrc: "http://img.b2bpic.net/free-photo/delicious-sweets-are-served-gold-tray_8353-10483.jpg", imageAlt: "Buttery chocolate croissant with artisan touch"
}
]}
/>
@@ -141,11 +141,11 @@ export default function LandingPage() {
features={[
{
id: 1,
title: "Incredible Quality", description: "Every item is crafted with premium ingredients and artisan techniques. Freshness and excellence in every bite.", imageSrc: "http://img.b2bpic.net/free-photo/delicious-sweets-are-served-gold-tray_8353-10483.jpg?_wi=2"
title: "Incredible Quality", description: "Every item is crafted with premium ingredients and artisan techniques. Freshness and excellence in every bite.", imageSrc: "http://img.b2bpic.net/free-photo/delicious-sweets-are-served-gold-tray_8353-10483.jpg"
},
{
id: 2,
title: "Friendly Service", description: "Our team treats every guest like family. Genuine hospitality and warm welcomes are our specialty.", imageSrc: "http://img.b2bpic.net/free-photo/croissants-tray_23-2147985149.jpg?_wi=1"
title: "Friendly Service", description: "Our team treats every guest like family. Genuine hospitality and warm welcomes are our specialty.", imageSrc: "http://img.b2bpic.net/free-photo/croissants-tray_23-2147985149.jpg"
},
{
id: 3,
@@ -190,13 +190,13 @@ export default function LandingPage() {
animationType="slide-up"
blogs={[
{
id: "1", category: "Pastries", title: "Our Signature Donuts", excerpt: "Handcrafted glazes and fresh flavors that define our collection.", imageSrc: "http://img.b2bpic.net/free-photo/delicious-sweets-are-served-gold-tray_8353-10483.jpg?_wi=3", imageAlt: "Artisan donut display", authorName: "Eats Team", authorAvatar: "http://img.b2bpic.net/free-photo/delicious-donuts-arrangement_23-2148536870.jpg", date: "Today"
id: "1", category: "Pastries", title: "Our Signature Donuts", excerpt: "Handcrafted glazes and fresh flavors that define our collection.", imageSrc: "http://img.b2bpic.net/free-photo/delicious-sweets-are-served-gold-tray_8353-10483.jpg", imageAlt: "Artisan donut display", authorName: "Eats Team", authorAvatar: "http://img.b2bpic.net/free-photo/delicious-donuts-arrangement_23-2148536870.jpg", date: "Today"
},
{
id: "2", category: "Beverages", title: "Specialty Coffee Moments", excerpt: "Expertly crafted drinks that elevate your coffee experience.", imageSrc: "http://img.b2bpic.net/free-photo/top-view-human-hand-holding-latte-coffee-cup-wooden-surface_23-2148209304.jpg", imageAlt: "Latte art and specialty coffee", authorName: "Eats Team", authorAvatar: "http://img.b2bpic.net/free-photo/delicious-donuts-arrangement_23-2148536870.jpg", date: "Today"
},
{
id: "3", category: "Ambiance", title: "Cozy Café Space", excerpt: "Your perfect place to relax, connect, and savor the moment.", imageSrc: "http://img.b2bpic.net/free-photo/croissants-tray_23-2147985149.jpg?_wi=2", imageAlt: "Interior seating area", authorName: "Eats Team", authorAvatar: "http://img.b2bpic.net/free-photo/delicious-donuts-arrangement_23-2148536870.jpg", date: "Today"
id: "3", category: "Ambiance", title: "Cozy Café Space", excerpt: "Your perfect place to relax, connect, and savor the moment.", imageSrc: "http://img.b2bpic.net/free-photo/croissants-tray_23-2147985149.jpg", imageAlt: "Interior seating area", authorName: "Eats Team", authorAvatar: "http://img.b2bpic.net/free-photo/delicious-donuts-arrangement_23-2148536870.jpg", date: "Today"
},
{
id: "4", category: "Fresh Baked", title: "Morning Fresh Arrivals", excerpt: "Daily selections prepared with passion and expertise.", imageSrc: "http://img.b2bpic.net/free-photo/sweet-tasty-pastry-black-board_114579-83365.jpg", imageAlt: "Fresh pastries display", authorName: "Eats Team", authorAvatar: "http://img.b2bpic.net/free-photo/delicious-donuts-arrangement_23-2148536870.jpg", date: "Today"

View File

@@ -1,51 +1,42 @@
"use client";
import { SVGProps } from 'react';
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
className?: string;
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text: string;
fontSize?: number;
fontFamily?: string;
fontWeight?: number | string;
fill?: string;
letterSpacing?: number;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export default function SvgTextLogo({
text,
fontSize = 48,
fontFamily = 'inherit',
fontWeight = 'bold',
fill = 'currentColor',
letterSpacing = 0,
...props
}: SvgTextLogoProps) {
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 200 100"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<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%"
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
fill={fill}
textAnchor="middle"
dominantBaseline="middle"
letterSpacing={letterSpacing}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
}