Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 14:12:39 +00:00
2 changed files with 65 additions and 173 deletions

View File

@@ -23,8 +23,7 @@ export default function HomePage() {
const footerColumns = [
{
title: "Restaurant",
items: [
title: "Restaurant", items: [
{ label: "About Us", href: "#about" },
{ label: "Our Menu", href: "/menu" },
{ label: "Reservations", href: "tel:+37167123456" },
@@ -32,8 +31,7 @@ export default function HomePage() {
],
},
{
title: "Order",
items: [
title: "Order", items: [
{ label: "Online Menu", href: "/menu" },
{ label: "Checkout", href: "/cart" },
{ label: "Order Status", href: "/order-status" },
@@ -41,8 +39,7 @@ export default function HomePage() {
],
},
{
title: "Contact",
items: [
title: "Contact", items: [
{ label: "Phone", href: "tel:+37167123456" },
{ label: "Email", href: "mailto:info@makssunmorics.lv" },
{ label: "Address", href: "https://maps.google.com/?q=Bikernieu+57+Riga+Latvia" },
@@ -50,8 +47,7 @@ export default function HomePage() {
],
},
{
title: "Legal",
items: [
title: "Legal", items: [
{ label: "Privacy Policy", href: "/privacy" },
{ label: "Terms of Service", href: "/terms" },
{ label: "Cookies", href: "/cookies" },
@@ -67,7 +63,7 @@ export default function HomePage() {
borderRadius="soft"
contentWidth="medium"
sizing="largeSmall"
background="aurora"
background="circleGradient"
cardStyle="layered-gradient"
primaryButtonStyle="diagonal-gradient"
secondaryButtonStyle="radial-glow"
@@ -78,9 +74,7 @@ export default function HomePage() {
brandName="Makss un Morics"
navItems={navItems}
button={{
text: "Order Now",
href: "/menu",
}}
text: "Order Now", href: "/menu"}}
animateOnLoad={true}
/>
</div>
@@ -92,52 +86,32 @@ export default function HomePage() {
tag="Welcome to Riga"
tagIcon={Pizza}
tagAnimation="slide-up"
background={{ variant: "aurora" }}
background={{ variant: "plain" }}
leftCarouselItems={[
{
imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-mushroom-pizza-with-cheese-olives-dark-desk-meal-food-dough-snack-pizza-italian_140725-101750.jpg?_wi=1",
imageAlt: "Rudens Pizza",
},
imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-mushroom-pizza-with-cheese-olives-dark-desk-meal-food-dough-snack-pizza-italian_140725-101750.jpg", imageAlt: "Rudens Pizza"},
{
imageSrc: "http://img.b2bpic.net/free-photo/hands-preparing-bread_53876-13990.jpg?_wi=1",
imageAlt: "Bandito Pizza",
},
imageSrc: "http://img.b2bpic.net/free-photo/hands-preparing-bread_53876-13990.jpg", imageAlt: "Bandito Pizza"},
{
imageSrc: "http://img.b2bpic.net/free-photo/pizza-with-peppers-olives-cheese_501050-810.jpg?_wi=1",
imageAlt: "Vegetarian Pizza",
},
imageSrc: "http://img.b2bpic.net/free-photo/pizza-with-peppers-olives-cheese_501050-810.jpg", imageAlt: "Vegetarian Pizza"},
{
imageSrc: "http://img.b2bpic.net/free-photo/creative-arrangement-with-delicious-pizza_23-2148921351.jpg?_wi=1",
imageAlt: "Pesto Pizza",
},
imageSrc: "http://img.b2bpic.net/free-photo/creative-arrangement-with-delicious-pizza_23-2148921351.jpg", imageAlt: "Pesto Pizza"},
]}
rightCarouselItems={[
{
imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-tasty-pizza-wooden-background_23-2148601601.jpg?_wi=1",
imageAlt: "Hawaii Pizza",
},
imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-tasty-pizza-wooden-background_23-2148601601.jpg", imageAlt: "Hawaii Pizza"},
{
imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-mushroom-pizza-with-cheese-olives-seasonings-dark-surface-meal-italian-food-dough-snack-pizza_140725-101765.jpg?_wi=1",
imageAlt: "Seafood Pizza",
},
imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-mushroom-pizza-with-cheese-olives-seasonings-dark-surface-meal-italian-food-dough-snack-pizza_140725-101765.jpg", imageAlt: "Seafood Pizza"},
{
imageSrc: "http://img.b2bpic.net/free-photo/street-food-still-life_23-2151535247.jpg?_wi=1",
imageAlt: "Restaurant Interior",
},
imageSrc: "http://img.b2bpic.net/free-photo/street-food-still-life_23-2151535247.jpg", imageAlt: "Restaurant Interior"},
{
imageSrc: "http://img.b2bpic.net/free-photo/top-view-pizza-topping-arrangement_23-2148601651.jpg",
imageAlt: "Fresh Pizza Oven",
},
imageSrc: "http://img.b2bpic.net/free-photo/top-view-pizza-topping-arrangement_23-2148601651.jpg", imageAlt: "Fresh Pizza Oven"},
]}
buttons={[
{
text: "View Menu",
href: "/menu",
},
text: "View Menu", href: "/menu"},
{
text: "Order Now",
href: "/menu",
},
text: "Order Now", href: "/menu"},
]}
buttonAnimation="blur-reveal"
carouselPosition="right"
@@ -153,7 +127,7 @@ export default function HomePage() {
description="Makss & Morics"
subdescription="Family-Owned Pizzeria in Riga"
icon={ChefHat}
imageSrc="http://img.b2bpic.net/free-photo/street-food-still-life_23-2151535247.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/street-food-still-life_23-2151535247.jpg"
imageAlt="Makss un Morics Restaurant Interior"
mediaAnimation="blur-reveal"
useInvertedBackground={false}
@@ -174,53 +148,17 @@ export default function HomePage() {
topMarqueeDirection="left"
testimonials={[
{
id: "1",
name: "Jānis Bērziņš",
handle: "@jberzins",
testimonial: "The best pizza I've had outside of Italy. The dough is perfectly fermented and the ingredients are incredibly fresh. Highly recommend!",
imageSrc: "http://img.b2bpic.net/free-photo/young-couple-enjoying-spending-good-time-together-while-having-date-restaurant_58466-16046.jpg?_wi=1",
imageAlt: "Jānis Bērziņš",
},
id: "1", name: "Jānis Bērziņš", handle: "@jberzins", testimonial: "The best pizza I've had outside of Italy. The dough is perfectly fermented and the ingredients are incredibly fresh. Highly recommend!", imageSrc: "http://img.b2bpic.net/free-photo/young-couple-enjoying-spending-good-time-together-while-having-date-restaurant_58466-16046.jpg", imageAlt: "Jānis Bērziņš"},
{
id: "2",
name: "Inga Sīpoliņa",
handle: "@ingasipola",
testimonial: "Amazing customer service and authentic flavors. I bring my family here every Friday night. Worth every euro!",
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-smiley-woman-taking-photos_23-2149250065.jpg?_wi=1",
imageAlt: "Inga Sīpoliņa",
},
id: "2", name: "Inga Sīpoliņa", handle: "@ingasipola", testimonial: "Amazing customer service and authentic flavors. I bring my family here every Friday night. Worth every euro!", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-smiley-woman-taking-photos_23-2149250065.jpg", imageAlt: "Inga Sīpoliņa"},
{
id: "3",
name: "Kristaps Leitis",
handle: "@kleitis",
testimonial: "As someone who lived in Italy for 5 years, I can confirm this is the real deal. Finally found authentic pizza in Riga!",
imageSrc: "http://img.b2bpic.net/free-photo/close-up-friends-hanging-out-together_23-2149143974.jpg",
imageAlt: "Kristaps Leitis",
},
id: "3", name: "Kristaps Leitis", handle: "@kleitis", testimonial: "As someone who lived in Italy for 5 years, I can confirm this is the real deal. Finally found authentic pizza in Riga!", imageSrc: "http://img.b2bpic.net/free-photo/close-up-friends-hanging-out-together_23-2149143974.jpg", imageAlt: "Kristaps Leitis"},
{
id: "4",
name: "Zanda Baumane",
handle: "@zanda_b",
testimonial: "Beautiful ambiance, friendly staff, and incredible pizza. This is our favorite date night spot in Riga.",
imageSrc: "http://img.b2bpic.net/free-photo/loving-people-having-dinner-cafe_23-2147735751.jpg",
imageAlt: "Zanda Baumane",
},
id: "4", name: "Zanda Baumane", handle: "@zanda_b", testimonial: "Beautiful ambiance, friendly staff, and incredible pizza. This is our favorite date night spot in Riga.", imageSrc: "http://img.b2bpic.net/free-photo/loving-people-having-dinner-cafe_23-2147735751.jpg", imageAlt: "Zanda Baumane"},
{
id: "5",
name: "Rihards Skuja",
handle: "@rskuja",
testimonial: "The wood-fired oven gives the pizza that authentic char and flavor you just can't get elsewhere. Perfect every time!",
imageSrc: "http://img.b2bpic.net/free-photo/young-couple-enjoying-spending-good-time-together-while-having-date-restaurant_58466-16046.jpg?_wi=2",
imageAlt: "Rihards Skuja",
},
id: "5", name: "Rihards Skuja", handle: "@rskuja", testimonial: "The wood-fired oven gives the pizza that authentic char and flavor you just can't get elsewhere. Perfect every time!", imageSrc: "http://img.b2bpic.net/free-photo/young-couple-enjoying-spending-good-time-together-while-having-date-restaurant_58466-16046.jpg", imageAlt: "Rihards Skuja"},
{
id: "6",
name: "Laima Vērdiņa",
handle: "@laima_v",
testimonial: "From the moment we walked in, we felt welcomed. The owner's passion for pizza-making is evident in every bite.",
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-smiley-woman-taking-photos_23-2149250065.jpg?_wi=2",
imageAlt: "Laima Vērdiņa",
},
id: "6", name: "Laima Vērdiņa", handle: "@laima_v", testimonial: "From the moment we walked in, we felt welcomed. The owner's passion for pizza-making is evident in every bite.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-smiley-woman-taking-photos_23-2149250065.jpg", imageAlt: "Laima Vērdiņa"},
]}
/>
</div>
@@ -230,33 +168,19 @@ export default function HomePage() {
ctaTitle="Visit Us Today"
ctaDescription="Biķernieku iela 57, Riga, Latvia. Come experience authentic pizza in our cozy pizzeria."
ctaButton={{
text: "Get Directions",
href: "https://maps.google.com/?q=Bikernieu+57+Riga+Latvia",
}}
text: "Get Directions", href: "https://maps.google.com/?q=Bikernieu+57+Riga+Latvia"}}
ctaIcon={MapPin}
useInvertedBackground={false}
animationType="slide-up"
faqs={[
{
id: "1",
title: "What are your opening hours?",
content: "We're open Monday to Sunday, 12:00 PM - 11:00 PM. Friday and Saturday we stay open until midnight for late-night pizza lovers!",
},
id: "1", title: "What are your opening hours?", content: "We're open Monday to Sunday, 12:00 PM - 11:00 PM. Friday and Saturday we stay open until midnight for late-night pizza lovers!"},
{
id: "2",
title: "Do you offer delivery?",
content: "Yes! We deliver within Riga city center. Orders typically arrive within 30-45 minutes. Minimum order €15. Use our online ordering system to place delivery orders.",
},
id: "2", title: "Do you offer delivery?", content: "Yes! We deliver within Riga city center. Orders typically arrive within 30-45 minutes. Minimum order €15. Use our online ordering system to place delivery orders."},
{
id: "3",
title: "Can I make reservations?",
content: "Absolutely! Call us at +371 67 123 456 to reserve a table. We can accommodate groups of any size and love hosting special occasions.",
},
id: "3", title: "Can I make reservations?", content: "Absolutely! Call us at +371 67 123 456 to reserve a table. We can accommodate groups of any size and love hosting special occasions."},
{
id: "4",
title: "Do you have vegetarian options?",
content: "Yes, we offer several vegetarian pizzas. You can also customize any pizza to make it vegetarian. We use fresh vegetables and quality cheeses.",
},
id: "4", title: "Do you have vegetarian options?", content: "Yes, we offer several vegetarian pizzas. You can also customize any pizza to make it vegetarian. We use fresh vegetables and quality cheeses."},
]}
/>
</div>
@@ -273,45 +197,21 @@ export default function HomePage() {
faqsAnimation="blur-reveal"
faqs={[
{
id: "1",
title: "What makes your pizza authentic?",
content: "We use imported Italian flour, San Marzano tomatoes, and fresh mozzarella di bufala. Our dough is hand-tossed and slow-fermented for 72 hours. We bake everything in our wood-fired oven at 900°F, just like in Naples.",
},
id: "1", title: "What makes your pizza authentic?", content: "We use imported Italian flour, San Marzano tomatoes, and fresh mozzarella di bufala. Our dough is hand-tossed and slow-fermented for 72 hours. We bake everything in our wood-fired oven at 900°F, just like in Naples."},
{
id: "2",
title: "Can I customize my pizza?",
content: "Yes! Our menu lets you choose your pizza size and add extra toppings. You can create your perfect pizza combination.",
},
id: "2", title: "Can I customize my pizza?", content: "Yes! Our menu lets you choose your pizza size and add extra toppings. You can create your perfect pizza combination."},
{
id: "3",
title: "What payment methods do you accept?",
content: "We accept all major credit cards, Apple Pay, Google Pay, and bank transfers. For online orders, you can pay securely through our website using any of these methods.",
},
id: "3", title: "What payment methods do you accept?", content: "We accept all major credit cards, Apple Pay, Google Pay, and bank transfers. For online orders, you can pay securely through our website using any of these methods."},
{
id: "4",
title: "How long does it take to prepare a pizza?",
content: "Fresh pizzas take 3-5 minutes to bake in our wood-fired oven. Average wait time from order to ready is 15-20 minutes. Delivery times are 30-45 minutes depending on location.",
},
id: "4", title: "How long does it take to prepare a pizza?", content: "Fresh pizzas take 3-5 minutes to bake in our wood-fired oven. Average wait time from order to ready is 15-20 minutes. Delivery times are 30-45 minutes depending on location."},
{
id: "5",
title: "Do you have kids' portions?",
content: "We offer 30cm personal pizzas which are perfect for children. All our pizzas can be customized with kid-friendly toppings.",
},
id: "5", title: "Do you have kids' portions?", content: "We offer 30cm personal pizzas which are perfect for children. All our pizzas can be customized with kid-friendly toppings."},
{
id: "6",
title: "Can I order online?",
content: "Yes! Use our menu page to browse all pizzas, customize your order, add to cart, and checkout. Pickup and delivery options available.",
},
id: "6", title: "Can I order online?", content: "Yes! Use our menu page to browse all pizzas, customize your order, add to cart, and checkout. Pickup and delivery options available."},
{
id: "7",
title: "Is there a loyalty program?",
content: "Sign up for our newsletter and receive a 10% discount on your first online order. Regular customers receive special offers and exclusive menu items.",
},
id: "7", title: "Is there a loyalty program?", content: "Sign up for our newsletter and receive a 10% discount on your first online order. Regular customers receive special offers and exclusive menu items."},
{
id: "8",
title: "Do you cater for events?",
content: "Yes, we offer catering services for parties, corporate events, and celebrations. Please call us at +371 67 123 456 to discuss your event needs.",
},
id: "8", title: "Do you cater for events?", content: "Yes, we offer catering services for parties, corporate events, and celebrations. Please call us at +371 67 123 456 to discuss your event needs."},
]}
/>
</div>

View File

@@ -1,51 +1,43 @@
"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;
fontFamily?: string;
fontWeight?: number | string;
fill?: string;
textAnchor?: "start" | "middle" | "end";
dominantBaseline?: "auto" | "text-bottom" | "alphabetic" | "ideographic" | "middle" | "central" | "mathematical" | "hanging" | "text-top";
}
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 = 24,
fontFamily = "Arial, sans-serif", fontWeight = 700,
fill = "currentColor", textAnchor = "middle", dominantBaseline = "middle"}) => {
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} ${fontSize * 1.5}`}
width="100%"
height="100%"
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%"
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
fill={fill}
textAnchor={textAnchor}
dominantBaseline={dominantBaseline}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;