Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 13:24:06 +00:00
2 changed files with 37 additions and 49 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="medium"
sizing="mediumLarge"
background="aurora"
background="circleGradient"
cardStyle="outline"
primaryButtonStyle="flat"
secondaryButtonStyle="solid"
@@ -44,7 +44,7 @@ export default function LandingPage() {
<HeroSplitDoubleCarousel
title="Freshly Baked Happiness Every Day"
description="Welcome to Universal Bakery, where tradition meets innovation. Discover our delicious selection of freshly baked cakes, pastries, breads, cookies, and custom creations made with love and the finest ingredients."
background={{ variant: "aurora" }}
background={{ variant: "glowing-orb" }}
leftCarouselItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/delicious-cake-indoors-still-life_23-2151172731.jpg", imageAlt: "Chocolate Cake" },
{ imageSrc: "http://img.b2bpic.net/free-photo/slices-healthy-bread-slate-near-napkin-against-black-background_23-2147975083.jpg", imageAlt: "Artisan Bread" },
@@ -52,10 +52,10 @@ export default function LandingPage() {
{ imageSrc: "http://img.b2bpic.net/free-photo/colorful-macarons-stacked-white-table_181624-57863.jpg", imageAlt: "Macarons" }
]}
rightCarouselItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/christmas-tree-shaped-puff-pastry-cookies_114579-44355.jpg?_wi=1", imageAlt: "Pastries" },
{ imageSrc: "http://img.b2bpic.net/free-photo/trendy-portion-desserts-candy-bar_8353-11444.jpg?_wi=1", imageAlt: "Custom Cakes" },
{ imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-sweets-biscuits-cookies-candies-inside-heart-shaped-box_140725-104781.jpg?_wi=1", imageAlt: "Cookies" },
{ imageSrc: "http://img.b2bpic.net/free-photo/abstract-blur-defocused-coffee-shop-cafe-interior_1203-9480.jpg?_wi=1", imageAlt: "Bakery Interior" }
{ imageSrc: "http://img.b2bpic.net/free-photo/christmas-tree-shaped-puff-pastry-cookies_114579-44355.jpg", imageAlt: "Pastries" },
{ imageSrc: "http://img.b2bpic.net/free-photo/trendy-portion-desserts-candy-bar_8353-11444.jpg", imageAlt: "Custom Cakes" },
{ imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-sweets-biscuits-cookies-candies-inside-heart-shaped-box_140725-104781.jpg", imageAlt: "Cookies" },
{ imageSrc: "http://img.b2bpic.net/free-photo/abstract-blur-defocused-coffee-shop-cafe-interior_1203-9480.jpg", imageAlt: "Bakery Interior" }
]}
buttons={[
{ text: "Order Now", href: "contact" },
@@ -79,11 +79,11 @@ export default function LandingPage() {
<div id="menu" data-section="menu">
<ProductCardThree
products={[
{ id: "cakes", name: "Decadent Cakes", price: "$35 - $85", imageSrc: "http://img.b2bpic.net/free-photo/trendy-portion-desserts-candy-bar_8353-11444.jpg?_wi=2", imageAlt: "Custom Cakes" },
{ id: "pastries", name: "Artisan Pastries", price: "$4 - $12", imageSrc: "http://img.b2bpic.net/free-photo/christmas-tree-shaped-puff-pastry-cookies_114579-44355.jpg?_wi=2", imageAlt: "Fresh Pastries" },
{ id: "cakes", name: "Decadent Cakes", price: "$35 - $85", imageSrc: "http://img.b2bpic.net/free-photo/trendy-portion-desserts-candy-bar_8353-11444.jpg", imageAlt: "Custom Cakes" },
{ id: "pastries", name: "Artisan Pastries", price: "$4 - $12", imageSrc: "http://img.b2bpic.net/free-photo/christmas-tree-shaped-puff-pastry-cookies_114579-44355.jpg", imageAlt: "Fresh Pastries" },
{ id: "breads", name: "Specialty Breads", price: "$5 - $15", imageSrc: "http://img.b2bpic.net/free-photo/bread-buns-top-view-with-wooden-background_23-2148432277.jpg", imageAlt: "Artisan Breads" },
{ id: "cookies", name: "Gourmet Cookies", price: "$2 - $6", imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-sweets-biscuits-cookies-candies-inside-heart-shaped-box_140725-104781.jpg?_wi=2", imageAlt: "Fresh Cookies" },
{ id: "custom-cakes", name: "Custom Birthday Cakes", price: "$60 - $150", imageSrc: "http://img.b2bpic.net/free-photo/front-view-beautiful-baby-shower-concept_23-2148731316.jpg?_wi=1", imageAlt: "Custom Designed Cakes" }
{ id: "cookies", name: "Gourmet Cookies", price: "$2 - $6", imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-sweets-biscuits-cookies-candies-inside-heart-shaped-box_140725-104781.jpg", imageAlt: "Fresh Cookies" },
{ id: "custom-cakes", name: "Custom Birthday Cakes", price: "$60 - $150", imageSrc: "http://img.b2bpic.net/free-photo/front-view-beautiful-baby-shower-concept_23-2148731316.jpg", imageAlt: "Custom Designed Cakes" }
]}
title="Our Menu"
description="Explore our delicious collection of freshly baked items, crafted daily with premium ingredients and artisan techniques."
@@ -158,13 +158,13 @@ export default function LandingPage() {
<BlogCardThree
blogs={[
{
id: "1", category: "Gallery", title: "Our Bakery Interior", excerpt: "Step into our warm and inviting space designed for a welcoming bakery experience.", imageSrc: "http://img.b2bpic.net/free-photo/abstract-blur-defocused-coffee-shop-cafe-interior_1203-9480.jpg?_wi=2", imageAlt: "Bakery Interior", authorName: "Universal Bakery", authorAvatar: "http://img.b2bpic.net/free-photo/close-up-smiley-man-work_23-2149097925.jpg", date: "Daily"
id: "1", category: "Gallery", title: "Our Bakery Interior", excerpt: "Step into our warm and inviting space designed for a welcoming bakery experience.", imageSrc: "http://img.b2bpic.net/free-photo/abstract-blur-defocused-coffee-shop-cafe-interior_1203-9480.jpg", imageAlt: "Bakery Interior", authorName: "Universal Bakery", authorAvatar: "http://img.b2bpic.net/free-photo/close-up-smiley-man-work_23-2149097925.jpg", date: "Daily"
},
{
id: "2", category: "Gallery", title: "Fresh Baking Process", excerpt: "Watch our talented bakers craft delicious creations with passion and precision.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-bread-dough-with-dark-background_23-2148544668.jpg", imageAlt: "Baking Process", authorName: "Universal Bakery", authorAvatar: "http://img.b2bpic.net/free-photo/close-up-portrait-beautiful-young-redhead-woman-with-charming-smile-healthy-clean-skin_273609-9036.jpg", date: "Morning"
},
{
id: "3", category: "Gallery", title: "Custom Creations", excerpt: "Celebrate special moments with our beautifully designed custom cakes.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-beautiful-baby-shower-concept_23-2148731316.jpg?_wi=2", imageAlt: "Custom Cakes", authorName: "Universal Bakery", authorAvatar: "http://img.b2bpic.net/free-photo/closeup-positive-fair-haired-business-woman_1262-2364.jpg", date: "Year-Round"
id: "3", category: "Gallery", title: "Custom Creations", excerpt: "Celebrate special moments with our beautifully designed custom cakes.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-beautiful-baby-shower-concept_23-2148731316.jpg", imageAlt: "Custom Cakes", authorName: "Universal Bakery", authorAvatar: "http://img.b2bpic.net/free-photo/closeup-positive-fair-haired-business-woman_1262-2364.jpg", date: "Year-Round"
}
]}
title="Gallery"
@@ -186,7 +186,7 @@ export default function LandingPage() {
]}
textarea={{ name: "message", placeholder: "Tell us about your order or question...", rows: 5, required: true }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/abstract-blur-defocused-coffee-shop-cafe-interior_1203-9480.jpg?_wi=3"
imageSrc="http://img.b2bpic.net/free-photo/abstract-blur-defocused-coffee-shop-cafe-interior_1203-9480.jpg"
imageAlt="Universal Bakery Location"
mediaAnimation="slide-up"
mediaPosition="right"

View File

@@ -1,51 +1,39 @@
"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);
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 500 100"
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<defs>
<style>{`
.logo-text {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 48px;
font-weight: 700;
letter-spacing: -1px;
}
`}</style>
</defs>
<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"
className="logo-text"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;