Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 09:09:53 +00:00
2 changed files with 43 additions and 51 deletions

View File

@@ -20,7 +20,7 @@ export default function AhmarinaSite() {
borderRadius="pill"
contentWidth="small"
sizing="mediumLargeSizeMediumTitles"
background="noiseDiagonalGradient"
background="circleGradient"
cardStyle="inset"
primaryButtonStyle="double-inset"
secondaryButtonStyle="glass"
@@ -51,13 +51,13 @@ export default function AhmarinaSite() {
{ text: "View Menu", href: "menu" }
]}
buttonAnimation="slide-up"
background={{ variant: "noiseDiagonalGradient" }}
background={{ variant: "sparkles-gradient" }}
mediaItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/wide-restaurant-hall-with-wooden-table-chairs-6-persons_140725-8910.jpg", imageAlt: "Elegant Ahmarina restaurant interior at dusk" },
{ imageSrc: "http://img.b2bpic.net/free-photo/salmon-steak_74190-1398.jpg?_wi=1", imageAlt: "Signature Salmon with Lychee Love Mocktail" },
{ imageSrc: "http://img.b2bpic.net/free-photo/fried-spicy-chicken-leg-white-plate-with-lemon_114579-19663.jpg?_wi=1", imageAlt: "Kerala Fried Chicken" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-tasty-cooked-potatoes-with-greens-inside-plate-dark-surface-cooking-cips-dinner-food-potato_140725-102158.jpg?_wi=1", imageAlt: "Chicken Tikka Masala & Butter Naan" },
{ imageSrc: "http://img.b2bpic.net/free-photo/crepe-with-meat-table_140725-2370.jpg?_wi=1", imageAlt: "Samosa Chaat & Shrimp Bisque" },
{ imageSrc: "http://img.b2bpic.net/free-photo/salmon-steak_74190-1398.jpg", imageAlt: "Signature Salmon with Lychee Love Mocktail" },
{ imageSrc: "http://img.b2bpic.net/free-photo/fried-spicy-chicken-leg-white-plate-with-lemon_114579-19663.jpg", imageAlt: "Kerala Fried Chicken" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-tasty-cooked-potatoes-with-greens-inside-plate-dark-surface-cooking-cips-dinner-food-potato_140725-102158.jpg", imageAlt: "Chicken Tikka Masala & Butter Naan" },
{ imageSrc: "http://img.b2bpic.net/free-photo/crepe-with-meat-table_140725-2370.jpg", imageAlt: "Samosa Chaat & Shrimp Bisque" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-chocolate-cake_23-2148549956.jpg", imageAlt: "Decadent Chocolate Cake Dessert" }
]}
/>
@@ -91,10 +91,10 @@ export default function AhmarinaSite() {
tag="Menu Highlights"
tagAnimation="blur-reveal"
products={[
{ id: "1", name: "Ahmarina Signature Salmon", price: "Premium", imageSrc: "http://img.b2bpic.net/free-photo/salmon-steak_74190-1398.jpg?_wi=2", imageAlt: "Signature Salmon with Lychee Love Mocktail" },
{ id: "2", name: "Kerala Fried Chicken", price: "Classic", imageSrc: "http://img.b2bpic.net/free-photo/fried-spicy-chicken-leg-white-plate-with-lemon_114579-19663.jpg?_wi=2", imageAlt: "Kerala Fried Chicken preparation" },
{ id: "3", name: "Chicken Tikka Masala", price: "Signature", imageSrc: "http://img.b2bpic.net/free-photo/top-view-tasty-cooked-potatoes-with-greens-inside-plate-dark-surface-cooking-cips-dinner-food-potato_140725-102158.jpg?_wi=2", imageAlt: "Chicken Tikka Masala with Butter Naan" },
{ id: "4", name: "Samosa Chaat", price: "Appetizer", imageSrc: "http://img.b2bpic.net/free-photo/crepe-with-meat-table_140725-2370.jpg?_wi=2", imageAlt: "Samosa Chaat with Shrimp Bisque" }
{ id: "1", name: "Ahmarina Signature Salmon", price: "Premium", imageSrc: "http://img.b2bpic.net/free-photo/salmon-steak_74190-1398.jpg", imageAlt: "Signature Salmon with Lychee Love Mocktail" },
{ id: "2", name: "Kerala Fried Chicken", price: "Classic", imageSrc: "http://img.b2bpic.net/free-photo/fried-spicy-chicken-leg-white-plate-with-lemon_114579-19663.jpg", imageAlt: "Kerala Fried Chicken preparation" },
{ id: "3", name: "Chicken Tikka Masala", price: "Signature", imageSrc: "http://img.b2bpic.net/free-photo/top-view-tasty-cooked-potatoes-with-greens-inside-plate-dark-surface-cooking-cips-dinner-food-potato_140725-102158.jpg", imageAlt: "Chicken Tikka Masala with Butter Naan" },
{ id: "4", name: "Samosa Chaat", price: "Appetizer", imageSrc: "http://img.b2bpic.net/free-photo/crepe-with-meat-table_140725-2370.jpg", imageAlt: "Samosa Chaat with Shrimp Bisque" }
]}
gridVariant="three-columns-all-equal-width"
animationType="slide-up"
@@ -110,12 +110,12 @@ export default function AhmarinaSite() {
tag="Guest Reviews"
tagAnimation="blur-reveal"
testimonials={[
{ id: "1", name: "Sarah Mitchell", handle: "@sarahmitchell", testimonial: "From the wait staff to the food, I was left extremely impressed. The attention to detail made for a pleasant dining experience that I won't forget.", imageSrc: "http://img.b2bpic.net/free-photo/worker-with-big-smile-crossed-arms_1139-248.jpg?_wi=1", imageAlt: "Sarah Mitchell" },
{ id: "2", name: "James Chen", handle: "@jameschef", testimonial: "The flavors were deep and intense. The Kerala Fried Chicken was perfectly executed. Overall the experience was quite pleasant, and I will visit again.", imageSrc: "http://img.b2bpic.net/free-photo/confident-cheerful-businesswoman_1262-21021.jpg?_wi=1", imageAlt: "James Chen" },
{ id: "1", name: "Sarah Mitchell", handle: "@sarahmitchell", testimonial: "From the wait staff to the food, I was left extremely impressed. The attention to detail made for a pleasant dining experience that I won't forget.", imageSrc: "http://img.b2bpic.net/free-photo/worker-with-big-smile-crossed-arms_1139-248.jpg", imageAlt: "Sarah Mitchell" },
{ id: "2", name: "James Chen", handle: "@jameschef", testimonial: "The flavors were deep and intense. The Kerala Fried Chicken was perfectly executed. Overall the experience was quite pleasant, and I will visit again.", imageSrc: "http://img.b2bpic.net/free-photo/confident-cheerful-businesswoman_1262-21021.jpg", imageAlt: "James Chen" },
{ id: "3", name: "Victoria Adams", handle: "@viadams", testimonial: "The service here was great. The staff were attentive and friendly, and the setting was beautiful and elegant. Ahmarina exceeded all expectations.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-outdoor-businessman_23-2148763884.jpg", imageAlt: "Victoria Adams" },
{ id: "4", name: "Michael Rodriguez", handle: "@mrodriguez", testimonial: "An exceptional dining experience from start to finish. The Signature Salmon was outstanding, and the ambiance created the perfect evening with my partner.", imageSrc: "http://img.b2bpic.net/free-photo/male-executive-with-glasses_1098-760.jpg", imageAlt: "Michael Rodriguez" },
{ id: "5", name: "Elena Petrov", handle: "@elenapetrov", testimonial: "Each course was a surprise and delight. The sommelier recommendations were perfect, and the presentation was pure artistry on every plate.", imageSrc: "http://img.b2bpic.net/free-photo/worker-with-big-smile-crossed-arms_1139-248.jpg?_wi=2", imageAlt: "Elena Petrov" },
{ id: "6", name: "David Thompson", handle: "@davidthompson", testimonial: "Brought my family for a special celebration. The staff made us feel so welcome, and the food quality is exceptional. We're already planning our next visit.", imageSrc: "http://img.b2bpic.net/free-photo/confident-cheerful-businesswoman_1262-21021.jpg?_wi=2", imageAlt: "David Thompson" }
{ id: "5", name: "Elena Petrov", handle: "@elenapetrov", testimonial: "Each course was a surprise and delight. The sommelier recommendations were perfect, and the presentation was pure artistry on every plate.", imageSrc: "http://img.b2bpic.net/free-photo/worker-with-big-smile-crossed-arms_1139-248.jpg", imageAlt: "Elena Petrov" },
{ id: "6", name: "David Thompson", handle: "@davidthompson", testimonial: "Brought my family for a special celebration. The staff made us feel so welcome, and the food quality is exceptional. We're already planning our next visit.", imageSrc: "http://img.b2bpic.net/free-photo/confident-cheerful-businesswoman_1262-21021.jpg", imageAlt: "David Thompson" }
]}
animationType="slide-up"
textboxLayout="default"

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;
fontSize?: number;
fontFamily?: string;
fontWeight?: number;
letterSpacing?: number;
className?: string;
}
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,
fontSize = 48,
fontFamily = 'Arial, sans-serif',
fontWeight = 700,
letterSpacing = 0,
className = '',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
viewBox="0 0 500 100"
xmlns="http://www.w3.org/2000/svg"
className={className}
role="img"
aria-label={`${logoText} logo`}
aria-label={`${text} logo`}
>
<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}
letterSpacing={letterSpacing}
textAnchor="middle"
dominantBaseline="middle"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
};