Merge version_1 into main

Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
2026-03-10 21:29:37 +00:00
2 changed files with 42 additions and 52 deletions

View File

@@ -48,21 +48,22 @@ export default function MegaPizzaPage() {
tagIcon={Utensils}
mediaItems={[
{
imageSrc: "http://img.b2bpic.net/free-photo/coffee-shop-small-business_23-2149196243.jpg?_wi=1", imageAlt: "Fresh delicious pizza"
imageSrc: "http://img.b2bpic.net/free-photo/coffee-shop-small-business_23-2149196243.jpg", imageAlt: "Fresh delicious pizza"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/fresh-italian-salad-antipasto-called-caprese-with-buffalo-mozzarella-sliced-tomatoes-basil-with-olive-oil-ingredients-vegetarian-caprese-salad-italian-food-top-view-rustic-style_1150-44861.jpg?_wi=1", imageAlt: "Margherita pizza"
imageSrc: "http://img.b2bpic.net/free-photo/fresh-italian-salad-antipasto-called-caprese-with-buffalo-mozzarella-sliced-tomatoes-basil-with-olive-oil-ingredients-vegetarian-caprese-salad-italian-food-top-view-rustic-style_1150-44861.jpg", imageAlt: "Margherita pizza"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/yummy-pizza-wooden-tabletop_23-2147772127.jpg?_wi=1", imageAlt: "Four season pizza"
imageSrc: "http://img.b2bpic.net/free-photo/yummy-pizza-wooden-tabletop_23-2147772127.jpg", imageAlt: "Four season pizza"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/top-view-mixed-meat-pizza-with-pepperoni-chicken-beef_141793-2443.jpg?_wi=1", imageAlt: "Salami pizza"
imageSrc: "http://img.b2bpic.net/free-photo/top-view-mixed-meat-pizza-with-pepperoni-chicken-beef_141793-2443.jpg", imageAlt: "Salami pizza"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/seafood-pizza-shrimp-pizza_1417-133.jpg?_wi=1", imageAlt: "Shrimp pizza"
imageSrc: "http://img.b2bpic.net/free-photo/seafood-pizza-shrimp-pizza_1417-133.jpg", imageAlt: "Shrimp pizza"
}
]}
mediaAnimation="none"
buttons={[
{ text: "View Menu", href: "#menu" },
{ text: "Order Now", href: "#menu" }
@@ -78,16 +79,16 @@ export default function MegaPizzaPage() {
tagIcon={Menu}
products={[
{
id: "pizza-4-season", name: "4 Season Pizza", price: "1,200 DZD", variant: "Fresh seasonal ingredients", imageSrc: "http://img.b2bpic.net/free-photo/yummy-pizza-wooden-tabletop_23-2147772127.jpg?_wi=2", imageAlt: "Four season pizza"
id: "pizza-4-season", name: "4 Season Pizza", price: "1,200 DZD", variant: "Fresh seasonal ingredients", imageSrc: "http://img.b2bpic.net/free-photo/yummy-pizza-wooden-tabletop_23-2147772127.jpg", imageAlt: "Four season pizza"
},
{
id: "pizza-margherita", name: "Margherita Pizza", price: "1,000 DZD", variant: "Mozzarella, basil, tomato", imageSrc: "http://img.b2bpic.net/free-photo/fresh-italian-salad-antipasto-called-caprese-with-buffalo-mozzarella-sliced-tomatoes-basil-with-olive-oil-ingredients-vegetarian-caprese-salad-italian-food-top-view-rustic-style_1150-44861.jpg?_wi=2", imageAlt: "Margherita pizza"
id: "pizza-margherita", name: "Margherita Pizza", price: "1,000 DZD", variant: "Mozzarella, basil, tomato", imageSrc: "http://img.b2bpic.net/free-photo/fresh-italian-salad-antipasto-called-caprese-with-buffalo-mozzarella-sliced-tomatoes-basil-with-olive-oil-ingredients-vegetarian-caprese-salad-italian-food-top-view-rustic-style_1150-44861.jpg", imageAlt: "Margherita pizza"
},
{
id: "pizza-salami", name: "Pizza Salami", price: "1,150 DZD", variant: "Spicy Italian salami", imageSrc: "http://img.b2bpic.net/free-photo/top-view-mixed-meat-pizza-with-pepperoni-chicken-beef_141793-2443.jpg?_wi=2", imageAlt: "Salami pizza"
id: "pizza-salami", name: "Pizza Salami", price: "1,150 DZD", variant: "Spicy Italian salami", imageSrc: "http://img.b2bpic.net/free-photo/top-view-mixed-meat-pizza-with-pepperoni-chicken-beef_141793-2443.jpg", imageAlt: "Salami pizza"
},
{
id: "pizza-crevettes", name: "Pizza Crevettes", price: "1,400 DZD", variant: "Fresh shrimp and seafood", imageSrc: "http://img.b2bpic.net/free-photo/seafood-pizza-shrimp-pizza_1417-133.jpg?_wi=2", imageAlt: "Shrimp pizza"
id: "pizza-crevettes", name: "Pizza Crevettes", price: "1,400 DZD", variant: "Fresh shrimp and seafood", imageSrc: "http://img.b2bpic.net/free-photo/seafood-pizza-shrimp-pizza_1417-133.jpg", imageAlt: "Shrimp pizza"
},
{
id: "mega-lunch", name: "Mega Lunch Meal", price: "1,300 DZD", variant: "Complete lunch combo", imageSrc: "http://img.b2bpic.net/free-photo/close-up-woman-placing-box-pizza-table-while-having-beverages-bowl-chips-caucasian-person-preparing-eat-takeaway-meal-from-fast-food-restaurant-living-room_482257-34127.jpg", imageAlt: "Mega lunch meal"
@@ -117,15 +118,15 @@ export default function MegaPizzaPage() {
features={[
{
id: 1,
title: "Dine In", description: "Enjoy your pizza in our comfortable restaurant with a warm and welcoming atmosphere. Perfect for families and friends.", imageSrc: "http://img.b2bpic.net/free-photo/table-dinner-set_74190-1534.jpg", imageAlt: "Restaurant dining area"
title: "Dine In", description="Enjoy your pizza in our comfortable restaurant with a warm and welcoming atmosphere. Perfect for families and friends.", imageSrc: "http://img.b2bpic.net/free-photo/table-dinner-set_74190-1534.jpg", imageAlt: "Restaurant dining area"
},
{
id: 2,
title: "Takeaway", description: "Quick and convenient. Order your favorite pizza and pick it up fresh and hot. Perfect for busy schedules.", imageSrc: "http://img.b2bpic.net/free-photo/fresh-italian-salad-antipasto-called-caprese-with-buffalo-mozzarella-sliced-tomatoes-basil-with-olive-oil-ingredients-vegetarian-caprese-salad-italian-food-top-view-rustic-style_1150-44861.jpg?_wi=3", imageAlt: "Pizza takeaway"
title: "Takeaway", description="Quick and convenient. Order your favorite pizza and pick it up fresh and hot. Perfect for busy schedules.", imageSrc: "http://img.b2bpic.net/free-photo/fresh-italian-salad-antipasto-called-caprese-with-buffalo-mozzarella-sliced-tomatoes-basil-with-olive-oil-ingredients-vegetarian-caprese-salad-italian-food-top-view-rustic-style_1150-44861.jpg", imageAlt: "Pizza takeaway"
},
{
id: 3,
title: "Home Delivery", description: "We deliver to your door! Order online and enjoy delicious pizza in the comfort of your home.", imageSrc: "http://img.b2bpic.net/free-photo/coffee-shop-small-business_23-2149196243.jpg?_wi=2", imageAlt: "Pizza delivery service"
title: "Home Delivery", description="We deliver to your door! Order online and enjoy delicious pizza in the comfort of your home.", imageSrc: "http://img.b2bpic.net/free-photo/coffee-shop-small-business_23-2149196243.jpg", imageAlt: "Pizza delivery service"
}
]}
/>
@@ -175,10 +176,10 @@ export default function MegaPizzaPage() {
useInvertedBackground={true}
testimonials={[
{
id: "1", name: "Fatima Benjelloun", role: "Regular Customer", testimonial: "Absolutely delicious! The pizza here is authentic and always fresh. The service is quick and friendly. Best pizza in Annaba!", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-curly-woman-standing-looking-camera_74855-3962.jpg?_wi=1", imageAlt: "Fatima"
id: "1", name: "Fatima Benjelloun", role: "Regular Customer", testimonial: "Absolutely delicious! The pizza here is authentic and always fresh. The service is quick and friendly. Best pizza in Annaba!", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-curly-woman-standing-looking-camera_74855-3962.jpg", imageAlt: "Fatima"
},
{
id: "2", name: "Ahmed Saidi", role: "Business Owner", testimonial: "I order from MÉGA PIZZA every week. Consistent quality, great taste, and reliable delivery service. Highly recommended!", imageSrc: "http://img.b2bpic.net/free-photo/closeup-serious-handsome-middle-aged-boss_1262-4837.jpg?_wi=1", imageAlt: "Ahmed"
id: "2", name: "Ahmed Saidi", role: "Business Owner", testimonial: "I order from MÉGA PIZZA every week. Consistent quality, great taste, and reliable delivery service. Highly recommended!", imageSrc: "http://img.b2bpic.net/free-photo/closeup-serious-handsome-middle-aged-boss_1262-4837.jpg", imageAlt: "Ahmed"
},
{
id: "3", name: "Yasmine Houria", role: "Food Blogger", testimonial: "The pizza crevettes is exceptional! Fresh shrimp, perfect crust, amazing sauce. Worth every dinar. Love this place!", imageSrc: "http://img.b2bpic.net/free-photo/smiling-successful-middle-aged-business-leader_1262-5690.jpg", imageAlt: "Yasmine"
@@ -187,10 +188,10 @@ export default function MegaPizzaPage() {
id: "4", name: "Khalid Medjahed", role: "Community Member", testimonial: "Great family restaurant with wonderful pizza. My kids love it, prices are reasonable, and the staff is very welcoming.", imageSrc: "http://img.b2bpic.net/free-photo/closeup-young-female-professional-making-eye-contact-against-colored-background_662251-651.jpg", imageAlt: "Khalid"
},
{
id: "5", name: "Nadia Bouazza", role: "Local Resident", testimonial: "Best pizza delivery service in the city. Orders arrive hot, packaging is perfect, and they always deliver on time.", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-curly-woman-standing-looking-camera_74855-3962.jpg?_wi=2", imageAlt: "Nadia"
id: "5", name: "Nadia Bouazza", role: "Local Resident", testimonial: "Best pizza delivery service in the city. Orders arrive hot, packaging is perfect, and they always deliver on time.", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-curly-woman-standing-looking-camera_74855-3962.jpg", imageAlt: "Nadia"
},
{
id: "6", name: "Mohamed Karim", role: "Frequent Visitor", testimonial: "The Margherita pizza is perfection. Simple, authentic, delicious. I've tried many pizzerias, this is the best!", imageSrc: "http://img.b2bpic.net/free-photo/closeup-serious-handsome-middle-aged-boss_1262-4837.jpg?_wi=2", imageAlt: "Mohamed"
id: "6", name: "Mohamed Karim", role: "Frequent Visitor", testimonial: "The Margherita pizza is perfection. Simple, authentic, delicious. I've tried many pizzerias, this is the best!", imageSrc: "http://img.b2bpic.net/free-photo/closeup-serious-handsome-middle-aged-boss_1262-4837.jpg", imageAlt: "Mohamed"
}
]}
animationType="slide-up"

View File

@@ -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;
dominantBaseline?: SVGTextElementAttributes<SVGTextElement>['dominantBaseline'];
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
fontSize = 48,
dominantBaseline = 'middle'
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width="100%"
height="100%"
viewBox="0 0 200 100"
className={className}
preserveAspectRatio="xMidYMid meet"
>
<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={dominantBaseline}
fontSize={fontSize}
fill="currentColor"
fontWeight="bold"
fontFamily="system-ui, -apple-system, sans-serif"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;