Merge version_1 into main #2
@@ -53,10 +53,10 @@ export default function LandingPage() {
|
||||
buttonAnimation="slide-up"
|
||||
mediaItems={[
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/woman-wearing-face-mask-shopping-grocery-store_1303-25558.jpg?_wi=1", imageAlt: "Fresh bakery pastries and bread display"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/woman-wearing-face-mask-shopping-grocery-store_1303-25558.jpg", imageAlt: "Fresh bakery pastries and bread display"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-baker-carrying-tray-baked-buns_1170-2300.jpg?_wi=1", imageAlt: "Professional baker with artisanal bread"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-baker-carrying-tray-baked-buns_1170-2300.jpg", imageAlt: "Professional baker with artisanal bread"
|
||||
}
|
||||
]}
|
||||
mediaAnimation="slide-up"
|
||||
@@ -93,7 +93,7 @@ export default function LandingPage() {
|
||||
id: "1", name: "Butter Croissant", price: "$4.99", imageSrc: "http://img.b2bpic.net/free-photo/delicious-croissants-with-cinnamon-sticks-gray_114579-37483.jpg", imageAlt: "Golden butter croissant", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "2", name: "Sourdough Loaf", price: "$6.99", imageSrc: "http://img.b2bpic.net/free-photo/two-slices-rye-bread-displayed-marble-table_114579-56648.jpg?_wi=1", imageAlt: "Artisanal sourdough loaf", initialQuantity: 1
|
||||
id: "2", name: "Sourdough Loaf", price: "$6.99", imageSrc: "http://img.b2bpic.net/free-photo/two-slices-rye-bread-displayed-marble-table_114579-56648.jpg", imageAlt: "Artisanal sourdough loaf", initialQuantity: 1
|
||||
},
|
||||
{
|
||||
id: "3", name: "Chocolate Layer Cake", price: "$18.99", imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-cake-concept_23-2148769308.jpg", imageAlt: "Decadent chocolate layer cake", initialQuantity: 1
|
||||
@@ -116,15 +116,15 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
tag: "Selection", title: "Premium Ingredients", subtitle: "Sourcing the finest quality", description: "We partner with trusted suppliers to source organic flour, fresh eggs, real butter, and premium chocolate. Every ingredient is carefully selected to ensure the highest quality in our products.", imageSrc: "http://img.b2bpic.net/free-photo/woman-wearing-face-mask-shopping-grocery-store_1303-25558.jpg?_wi=2", imageAlt: "Premium baking ingredients"
|
||||
tag: "Selection", title: "Premium Ingredients", subtitle: "Sourcing the finest quality", description: "We partner with trusted suppliers to source organic flour, fresh eggs, real butter, and premium chocolate. Every ingredient is carefully selected to ensure the highest quality in our products.", imageSrc: "http://img.b2bpic.net/free-photo/woman-wearing-face-mask-shopping-grocery-store_1303-25558.jpg", imageAlt: "Premium baking ingredients"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
tag: "Preparation", title: "Artisanal Crafting", subtitle: "Time-honored techniques", description: "Our skilled bakers use traditional methods combined with modern precision. We hand-knead doughs, proof them properly, and shape each item with care to achieve perfect texture and flavor.", imageSrc: "http://img.b2bpic.net/free-photo/smiling-baker-carrying-tray-baked-buns_1170-2300.jpg?_wi=2", imageAlt: "Artisanal bread making"
|
||||
tag: "Preparation", title: "Artisanal Crafting", subtitle: "Time-honored techniques", description: "Our skilled bakers use traditional methods combined with modern precision. We hand-knead doughs, proof them properly, and shape each item with care to achieve perfect texture and flavor.", imageSrc: "http://img.b2bpic.net/free-photo/smiling-baker-carrying-tray-baked-buns_1170-2300.jpg", imageAlt: "Artisanal bread making"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
tag: "Baking", title: "Perfect Temperature", subtitle: "Expert heat management", description: "Temperature control is critical to our success. We use professional ovens calibrated to exact specifications, ensuring golden exteriors and soft interiors every time.", imageSrc: "http://img.b2bpic.net/free-photo/two-slices-rye-bread-displayed-marble-table_114579-56648.jpg?_wi=2", imageAlt: "Fresh baked sourdough"
|
||||
tag: "Baking", title: "Perfect Temperature", subtitle: "Expert heat management", description: "Temperature control is critical to our success. We use professional ovens calibrated to exact specifications, ensuring golden exteriors and soft interiors every time.", imageSrc: "http://img.b2bpic.net/free-photo/two-slices-rye-bread-displayed-marble-table_114579-56648.jpg", imageAlt: "Fresh baked sourdough"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,40 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontWeight?: number | string;
|
||||
letterSpacing?: number;
|
||||
}
|
||||
|
||||
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 = '',
|
||||
fontSize = 48,
|
||||
fontWeight = 700,
|
||||
letterSpacing = 2,
|
||||
}) => {
|
||||
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 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
|
||||
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={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user