Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function SakuraPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="small"
|
||||
sizing="large"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="layered-gradient"
|
||||
primaryButtonStyle="shadow"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -46,18 +46,18 @@ export default function SakuraPage() {
|
||||
tag="Luxury Dining"
|
||||
tagIcon={Sparkles}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "plain" }}
|
||||
leftCarouselItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-people-eating-sushi_23-2151344990.jpg?_wi=1", imageAlt: "Premium salmon nigiri sushi" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-friends-having-lunch-luxury-restaurant_23-2151081506.jpg?_wi=1", imageAlt: "Chef preparing sushi rolls" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/salad-salmon-avocado_1203-2484.jpg?_wi=1", imageAlt: "Maki roll assortment" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-seaweed-snacks_23-2150519971.jpg?_wi=1", imageAlt: "Sushi condiments and setup" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-people-eating-sushi_23-2151344990.jpg", imageAlt: "Premium salmon nigiri sushi" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-friends-having-lunch-luxury-restaurant_23-2151081506.jpg", imageAlt: "Chef preparing sushi rolls" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/salad-salmon-avocado_1203-2484.jpg", imageAlt: "Maki roll assortment" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-seaweed-snacks_23-2150519971.jpg", imageAlt: "Sushi condiments and setup" }
|
||||
]}
|
||||
rightCarouselItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-seaweed-snacks_23-2150519971.jpg?_wi=2", imageAlt: "Wasabi and condiments" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/salad-salmon-avocado_1203-2484.jpg?_wi=2", imageAlt: "Fresh sashimi platter" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-people-eating-sushi_23-2151344990.jpg?_wi=2", imageAlt: "Toro premium tuna" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-friends-having-lunch-luxury-restaurant_23-2151081506.jpg?_wi=2", imageAlt: "Master craftsmanship" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-seaweed-snacks_23-2150519971.jpg", imageAlt: "Wasabi and condiments" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/salad-salmon-avocado_1203-2484.jpg", imageAlt: "Fresh sashimi platter" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-people-eating-sushi_23-2151344990.jpg", imageAlt: "Toro premium tuna" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-friends-having-lunch-luxury-restaurant_23-2151081506.jpg", imageAlt: "Master craftsmanship" }
|
||||
]}
|
||||
buttons={[
|
||||
{ text: "Reserve Now", href: "contact" },
|
||||
@@ -82,6 +82,7 @@ export default function SakuraPage() {
|
||||
imageSrc="http://img.b2bpic.net/free-photo/dining-table-background-zoom-calls_23-2149684444.jpg"
|
||||
imageAlt="Sakura luxury sushi restaurant interior"
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
@@ -105,7 +106,7 @@ export default function SakuraPage() {
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Sushi Making Process", description: "Each piece crafted with traditional techniques", bentoComponent: "3d-task-list", title: "Sushi Making Process", items: [
|
||||
title: "Sushi Making Process", description: "Each piece crafted with traditional techniques", bentoComponent: "3d-task-list", items: [
|
||||
{ icon: Utensils, label: "Select Premium Fish", time: "5 mins" },
|
||||
{ icon: Flame, label: "Perfect Rice Temperature", time: "10 mins" },
|
||||
{ icon: CheckCircle, label: "Hand-Roll with Precision", time: "2 mins" }
|
||||
@@ -140,15 +141,15 @@ export default function SakuraPage() {
|
||||
products={[
|
||||
{
|
||||
id: "1", brand: "Sakura Signature", name: "Toro Nigiri (3 pieces)", price: "$18.00", rating: 5,
|
||||
reviewCount: "243", imageSrc: "http://img.b2bpic.net/free-photo/sushi-rolls-with-rice-shrimps-avocado-cream-cheese-with-soy-sauce-table_141793-2922.jpg?_wi=1", imageAlt: "Toro nigiri premium sushi"
|
||||
reviewCount: "243", imageSrc: "http://img.b2bpic.net/free-photo/sushi-rolls-with-rice-shrimps-avocado-cream-cheese-with-soy-sauce-table_141793-2922.jpg", imageAlt: "Toro nigiri premium sushi"
|
||||
},
|
||||
{
|
||||
id: "2", brand: "Sakura Signature", name: "Dragon Roll", price: "$16.00", rating: 5,
|
||||
reviewCount: "189", imageSrc: "http://img.b2bpic.net/free-photo/sushi-rolls-with-rice-shrimps-avocado-cream-cheese-with-soy-sauce-table_141793-2922.jpg?_wi=2", imageAlt: "Dragon roll specialty sushi"
|
||||
reviewCount: "189", imageSrc: "http://img.b2bpic.net/free-photo/sushi-rolls-with-rice-shrimps-avocado-cream-cheese-with-soy-sauce-table_141793-2922.jpg", imageAlt: "Dragon roll specialty sushi"
|
||||
},
|
||||
{
|
||||
id: "3", brand: "Sakura Signature", name: "Uni Nigiri (3 pieces)", price: "$20.00", rating: 5,
|
||||
reviewCount: "156", imageSrc: "http://img.b2bpic.net/free-photo/sushi-rolls-with-rice-shrimps-avocado-cream-cheese-with-soy-sauce-table_141793-2922.jpg?_wi=3", imageAlt: "Uni sea urchin nigiri"
|
||||
reviewCount: "156", imageSrc: "http://img.b2bpic.net/free-photo/sushi-rolls-with-rice-shrimps-avocado-cream-cheese-with-soy-sauce-table_141793-2922.jpg", imageAlt: "Uni sea urchin nigiri"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -197,7 +198,7 @@ export default function SakuraPage() {
|
||||
tagAnimation="slide-up"
|
||||
title="Reserve Your Culinary Experience"
|
||||
description="Book a table at Sakura and discover the art of authentic Japanese sushi craftsmanship. Limited seating to ensure personalized attention."
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={false}
|
||||
inputPlaceholder="your@email.com"
|
||||
buttonText="Request Reservation"
|
||||
|
||||
@@ -1,51 +1,42 @@
|
||||
"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;
|
||||
fontWeight?: number | string;
|
||||
letterSpacing?: number;
|
||||
fill?: 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,
|
||||
className = '',
|
||||
fontSize = 48,
|
||||
fontWeight = 700,
|
||||
letterSpacing = 2,
|
||||
fill = 'currentColor',
|
||||
}) => {
|
||||
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 * 40} 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%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="central"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
fill={fill}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user