diff --git a/src/app/page.tsx b/src/app/page.tsx index 3766954..dbf3c68 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -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" } ]} /> diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..c3f143c 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -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(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +const SvgTextLogo: React.FC = ({ + text, + className = '', + fontSize = 48, + fontWeight = 700, + letterSpacing = 2, +}) => { return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;