Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 19:33:06 +00:00
2 changed files with 35 additions and 48 deletions

View File

@@ -43,7 +43,7 @@ export default function LandingPage() {
<HeroBillboardCarousel
title="Ottawa's Hidden Seafood Gem"
description="Fresh seafood, Mediterranean flavors, and unforgettable hospitality — all in the heart of Ottawa."
background={{ variant: "circleGradient" }}
background={{ variant: "sparkles-gradient" }}
tag="4.6★ 650+ Reviews"
tagAnimation="slide-up"
buttons={[
@@ -51,11 +51,11 @@ export default function LandingPage() {
{ text: "Reserve a Table", href: "#cta" }
]}
mediaItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/onion-rings-served-with-lettuce-sauce_141793-889.jpg?_wi=1", imageAlt: "Fresh seafood platter display" },
{ imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-french-fries-bowls-with-salt-copy-space_23-2148701505.jpg?_wi=1", imageAlt: "Crispy fried calamari" },
{ imageSrc: "http://img.b2bpic.net/free-photo/grilled-prawns-wooden-sticks-side-view_141793-4454.jpg?_wi=1", imageAlt: "Sautéed shrimp with herbs" },
{ imageSrc: "http://img.b2bpic.net/free-photo/onion-rings-served-with-lettuce-sauce_141793-889.jpg", imageAlt: "Fresh seafood platter display" },
{ imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-french-fries-bowls-with-salt-copy-space_23-2148701505.jpg", imageAlt: "Crispy fried calamari" },
{ imageSrc: "http://img.b2bpic.net/free-photo/grilled-prawns-wooden-sticks-side-view_141793-4454.jpg", imageAlt: "Sautéed shrimp with herbs" },
{ imageSrc: "http://img.b2bpic.net/free-photo/fresh-healthy-food-breakfast-lunch-ideas-bread-with-cheese-avocado-salmon_8353-8798.jpg", imageAlt: "Grilled fresh fish" },
{ imageSrc: "http://img.b2bpic.net/free-photo/vegetable-salad-with-tomato-cucumber-bell-peppers-red-onion-grated-parmesan-parsley_140725-8477.jpg?_wi=1", imageAlt: "Fresh Mediterranean tabouli" }
{ imageSrc: "http://img.b2bpic.net/free-photo/vegetable-salad-with-tomato-cucumber-bell-peppers-red-onion-grated-parmesan-parsley_140725-8477.jpg", imageAlt: "Fresh Mediterranean tabouli" }
]}
/>
</div>
@@ -68,13 +68,13 @@ export default function LandingPage() {
useInvertedBackground={false}
products={[
{
id: "1", name: "Fried Calamari", price: "$14", imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-french-fries-bowls-with-salt-copy-space_23-2148701505.jpg?_wi=2", imageAlt: "Fried calamari"
id: "1", name: "Fried Calamari", price: "$14", imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-french-fries-bowls-with-salt-copy-space_23-2148701505.jpg", imageAlt: "Fried calamari"
},
{
id: "2", name: "Tabouli", price: "$12", imageSrc: "http://img.b2bpic.net/free-photo/vegetable-salad-with-tomato-cucumber-bell-peppers-red-onion-grated-parmesan-parsley_140725-8477.jpg?_wi=2", imageAlt: "Fresh tabouli salad"
id: "2", name: "Tabouli", price: "$12", imageSrc: "http://img.b2bpic.net/free-photo/vegetable-salad-with-tomato-cucumber-bell-peppers-red-onion-grated-parmesan-parsley_140725-8477.jpg", imageAlt: "Fresh tabouli salad"
},
{
id: "3", name: "Sautéed Shrimp", price: "$16", imageSrc: "http://img.b2bpic.net/free-photo/grilled-prawns-wooden-sticks-side-view_141793-4454.jpg?_wi=2", imageAlt: "Sautéed shrimp"
id: "3", name: "Sautéed Shrimp", price: "$16", imageSrc: "http://img.b2bpic.net/free-photo/grilled-prawns-wooden-sticks-side-view_141793-4454.jpg", imageAlt: "Sautéed shrimp"
}
]}
gridVariant="three-columns-all-equal-width"
@@ -180,9 +180,9 @@ export default function LandingPage() {
tag="Reserve or Order"
title="Taste the Ocean Tonight"
description="Reserve your table or order your favorites for delivery. Experience the freshness and warmth that defines Mermaids."
background={{ variant: "circleGradient" }}
background={{ variant: "sparkles-gradient" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/onion-rings-served-with-lettuce-sauce_141793-889.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/onion-rings-served-with-lettuce-sauce_141793-889.jpg"
imageAlt="Seafood platter"
mediaAnimation="slide-up"
mediaPosition="right"

View File

@@ -1,51 +1,38 @@
"use client";
import React, { SVGProps } from 'react';
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
className?: string;
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text?: string;
fontSize?: number;
fontFamily?: 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 = 'Webild',
fontSize = 48,
fontFamily = 'Arial, sans-serif',
...props
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width="200"
height="60"
viewBox="0 0 200 60"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<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}
fontFamily={fontFamily}
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;