Merge version_1 into main #1
@@ -46,12 +46,12 @@ export default function LandingPage() {
|
||||
description="Discover SAKURA Restaurant - your premier destination for exquisite Asian cuisine in Kouba. From signature wok dishes to fresh seafood specialties, we craft every meal with passion and quality ingredients."
|
||||
tag="Premium Asian Cuisine"
|
||||
tagIcon={Sparkles}
|
||||
tagAnimation="entrance-slide"
|
||||
tagAnimation="none"
|
||||
buttons={[
|
||||
{ text: "Reserve a Table", href: "#contact" },
|
||||
{ text: "Order Online", href: "#contact" }
|
||||
]}
|
||||
buttonAnimation="entrance-slide"
|
||||
buttonAnimation="none"
|
||||
background={{ variant: "plain" }}
|
||||
carouselItems={[
|
||||
{
|
||||
@@ -101,7 +101,7 @@ export default function LandingPage() {
|
||||
description="Explore our curated selection of premium Asian dishes, each prepared with fresh ingredients and authentic techniques."
|
||||
tag="Menu Highlights"
|
||||
tagIcon={ChefHat}
|
||||
tagAnimation="entrance-slide"
|
||||
tagAnimation="none"
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
@@ -129,7 +129,7 @@ export default function LandingPage() {
|
||||
description="Join thousands of satisfied customers who trust SAKURA for authentic Asian cuisine and exceptional service. Our 4.9-star rating reflects our commitment to excellence."
|
||||
tag="Customer Reviews"
|
||||
tagIcon={Star}
|
||||
tagAnimation="entrance-slide"
|
||||
tagAnimation="none"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Fatima M.", role: "Regular Customer", company: "Kouba Local", rating: 5,
|
||||
@@ -167,7 +167,7 @@ export default function LandingPage() {
|
||||
description="SAKURA is recognized as a top destination for Asian cuisine in Kouba"
|
||||
tag="Recognition"
|
||||
tagIcon={Award}
|
||||
tagAnimation="entrance-slide"
|
||||
tagAnimation="none"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
names={[
|
||||
|
||||
@@ -1,51 +1,40 @@
|
||||
"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";
|
||||
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
|
||||
text?: string;
|
||||
fontSize?: number;
|
||||
fontWeight?: number | string;
|
||||
fill?: string;
|
||||
className?: 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 = 'Logo',
|
||||
fontSize = 48,
|
||||
fontWeight = 700,
|
||||
fill = 'currentColor',
|
||||
className = '',
|
||||
...props
|
||||
}) => {
|
||||
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 * 0.6} ${fontSize * 1.5}`}
|
||||
className={className}
|
||||
{...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%"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
textAnchor="middle"
|
||||
dominantBaseline="central"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user