Merge version_1 into main
Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
@@ -47,21 +47,22 @@ export default function LandingPage() {
|
||||
background={{ variant: "radial-gradient" }}
|
||||
mediaItems={[
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-cooked-squashes-designed-meal-inside-plate-dark-grey-space_140725-83767.jpg?_wi=1", imageAlt: "Elegant fine dining restaurant interior"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-cooked-squashes-designed-meal-inside-plate-dark-grey-space_140725-83767.jpg", imageAlt: "Elegant fine dining restaurant interior"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/delicious-smoke-cooked-food_23-2151259749.jpg?_wi=1", imageAlt: "Beautifully plated gourmet dish"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/delicious-smoke-cooked-food_23-2151259749.jpg", imageAlt: "Beautifully plated gourmet dish"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-chef-kitchen_23-2148471872.jpg?_wi=1", imageAlt: "Chef preparing culinary masterpiece"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-chef-kitchen_23-2148471872.jpg", imageAlt: "Chef preparing culinary masterpiece"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/view-table-etiquette-dressing_23-2148914876.jpg?_wi=1", imageAlt: "Sophisticated restaurant ambiance"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/view-table-etiquette-dressing_23-2148914876.jpg", imageAlt: "Sophisticated restaurant ambiance"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/friends-eating-restaurant_23-2148006621.jpg", imageAlt: "Guest enjoying dining experience"
|
||||
}
|
||||
]}
|
||||
mediaAnimation="none"
|
||||
buttons={[
|
||||
{ text: "Reserve Your Table", href: "contact" },
|
||||
{ text: "View Our Menu", href: "menu" }
|
||||
@@ -88,7 +89,7 @@ export default function LandingPage() {
|
||||
title="Exceptional Dining Experience"
|
||||
description="Discover what makes our restaurant the ultimate destination for fine dining. From our meticulously crafted menu to our warm hospitality."
|
||||
tag="The Savour Difference"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/view-table-etiquette-dressing_23-2148914876.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/view-table-etiquette-dressing_23-2148914876.jpg"
|
||||
imageAlt="Restaurant ambiance"
|
||||
accordionItems={[
|
||||
{
|
||||
@@ -116,16 +117,16 @@ export default function LandingPage() {
|
||||
useInvertedBackground={false}
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Sarah Mitchell, Anniversary Celebration", date: "Date: 15 January 2025", title: "An unforgettable evening", quote: "The food was exquisite, the service impeccable, and the ambiance absolutely magical. We celebrated our 10th anniversary here and couldn't have asked for a better experience.", tag: "Premium Dining", avatarSrc: "http://img.b2bpic.net/free-photo/friends-eating-restaurant_23-2148006621.jpg", avatarAlt: "Sarah Mitchell", imageSrc: "http://img.b2bpic.net/free-photo/delicious-smoke-cooked-food_23-2151259749.jpg?_wi=2"
|
||||
id: "1", name: "Sarah Mitchell, Anniversary Celebration", date: "Date: 15 January 2025", title: "An unforgettable evening", quote: "The food was exquisite, the service impeccable, and the ambiance absolutely magical. We celebrated our 10th anniversary here and couldn't have asked for a better experience.", tag: "Premium Dining", avatarSrc: "http://img.b2bpic.net/free-photo/friends-eating-restaurant_23-2148006621.jpg", avatarAlt: "Sarah Mitchell", imageSrc: "http://img.b2bpic.net/free-photo/delicious-smoke-cooked-food_23-2151259749.jpg"
|
||||
},
|
||||
{
|
||||
id: "2", name: "James Chen, Business Executive", date: "Date: 8 January 2025", title: "Perfect for business dinners", quote: "We host our important clients here regularly. The sophisticated atmosphere and exceptional cuisine never fail to impress. Highly recommended.", tag: "Premium Dining", avatarSrc: "http://img.b2bpic.net/free-photo/couples-celebrating-birthday_23-2149891048.jpg", avatarAlt: "James Chen", imageSrc: "http://img.b2bpic.net/free-photo/view-table-etiquette-dressing_23-2148914876.jpg?_wi=3"
|
||||
id: "2", name: "James Chen, Business Executive", date: "Date: 8 January 2025", title: "Perfect for business dinners", quote: "We host our important clients here regularly. The sophisticated atmosphere and exceptional cuisine never fail to impress. Highly recommended.", tag: "Premium Dining", avatarSrc: "http://img.b2bpic.net/free-photo/couples-celebrating-birthday_23-2149891048.jpg", avatarAlt: "James Chen", imageSrc: "http://img.b2bpic.net/free-photo/view-table-etiquette-dressing_23-2148914876.jpg"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Emma Rodriguez, Food Enthusiast", date: "Date: 22 December 2024", title: "Culinary artistry at its finest", quote: "Every dish is a masterpiece. The chef's creativity and attention to detail are evident in every plate. This is fine dining done right.", tag: "Premium Dining", avatarSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-friends-with-drinks_23-2149073427.jpg", avatarAlt: "Emma Rodriguez", imageSrc: "http://img.b2bpic.net/free-photo/front-view-cooked-squashes-designed-meal-inside-plate-dark-grey-space_140725-83767.jpg?_wi=2"
|
||||
id: "3", name: "Emma Rodriguez, Food Enthusiast", date: "Date: 22 December 2024", title: "Culinary artistry at its finest", quote: "Every dish is a masterpiece. The chef's creativity and attention to detail are evident in every plate. This is fine dining done right.", tag: "Premium Dining", avatarSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-friends-with-drinks_23-2149073427.jpg", avatarAlt: "Emma Rodriguez", imageSrc: "http://img.b2bpic.net/free-photo/front-view-cooked-squashes-designed-meal-inside-plate-dark-grey-space_140725-83767.jpg"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Michael Thompson, Regular Guest", date: "Date: 18 December 2024", title: "Our favorite dining destination", quote: "We've been coming here for three years and every visit is special. The menu evolves beautifully, and the team remembers our preferences. Simply wonderful.", tag: "Premium Dining", avatarSrc: "http://img.b2bpic.net/free-photo/girl-with-cheesecake_1303-3945.jpg", avatarAlt: "Michael Thompson", imageSrc: "http://img.b2bpic.net/free-photo/close-up-chef-kitchen_23-2148471872.jpg?_wi=2"
|
||||
id: "4", name: "Michael Thompson, Regular Guest", date: "Date: 18 December 2024", title: "Our favorite dining destination", quote: "We've been coming here for three years and every visit is special. The menu evolves beautifully, and the team remembers our preferences. Simply wonderful.", tag: "Premium Dining", avatarSrc: "http://img.b2bpic.net/free-photo/girl-with-cheesecake_1303-3945.jpg", avatarAlt: "Michael Thompson", imageSrc: "http://img.b2bpic.net/free-photo/close-up-chef-kitchen_23-2148471872.jpg"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,33 @@
|
||||
"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;
|
||||
}
|
||||
|
||||
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 = 32,
|
||||
}) => {
|
||||
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 * 20} 50`}
|
||||
className={className}
|
||||
aria-label={text}
|
||||
>
|
||||
<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%"
|
||||
dominantBaseline="middle"
|
||||
textAnchor="middle"
|
||||
fontSize={fontSize}
|
||||
fontWeight="bold"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user