Merge version_1 into main #2
@@ -61,22 +61,21 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
title: "Dine-In", description: "Experience our welcoming dining room with scenic views. Family-owned hospitality since 2010.", imageSrc: "http://img.b2bpic.net/free-photo/brunette-woman-brown-cap-white-tee-her-friend-stylish-top-smiles-rests-street-cafe_197531-18193.jpg?_wi=1"
|
||||
title: "Dine-In", description: "Experience our welcoming dining room with scenic views. Family-owned hospitality since 2010.", imageSrc: "http://img.b2bpic.net/free-photo/brunette-woman-brown-cap-white-tee-her-friend-stylish-top-smiles-rests-street-cafe_197531-18193.jpg"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Takeout Available", description: "Enjoy our homemade classics at home. Call ahead at (870) 257-3595 for quick service.", imageSrc: "http://img.b2bpic.net/free-photo/side-view-baked-fish-fillet-with-red-onions-narsharab-plate_140725-11495.jpg?_wi=1"
|
||||
title: "Takeout Available", description: "Enjoy our homemade classics at home. Call ahead at (870) 257-3595 for quick service.", imageSrc: "http://img.b2bpic.net/free-photo/side-view-baked-fish-fillet-with-red-onions-narsharab-plate_140725-11495.jpg"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Open Until 7:00 PM", description: "Visit us for lunch or early dinner. Hours: 11 AM – 7 PM daily. Closed Mondays.", imageSrc: "http://img.b2bpic.net/free-photo/brunette-woman-brown-cap-white-tee-her-friend-stylish-top-smiles-rests-street-cafe_197531-18193.jpg?_wi=2"
|
||||
title: "Open Until 7:00 PM", description: "Visit us for lunch or early dinner. Hours: 11 AM – 7 PM daily. Closed Mondays.", imageSrc: "http://img.b2bpic.net/free-photo/brunette-woman-brown-cap-white-tee-her-friend-stylish-top-smiles-rests-street-cafe_197531-18193.jpg"
|
||||
}
|
||||
]}
|
||||
title="How to Enjoy Our Restaurant"
|
||||
description="Whether you prefer dining in our scenic restaurant or enjoying takeout at home, we're here to serve you."
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
mediaAnimation="slide-up"
|
||||
buttonAnimation="none"
|
||||
/>
|
||||
</div>
|
||||
@@ -85,7 +84,7 @@ export default function LandingPage() {
|
||||
<ProductCardFour
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "The Golden Catfish Dinner", price: "Market Price", variant: "Crispy, Golden, Authentic", imageSrc: "http://img.b2bpic.net/free-photo/side-view-baked-fish-fillet-with-red-onions-narsharab-plate_140725-11495.jpg?_wi=2", imageAlt: "Golden Catfish Dinner"
|
||||
id: "1", name: "The Golden Catfish Dinner", price: "Market Price", variant: "Crispy, Golden, Authentic", imageSrc: "http://img.b2bpic.net/free-photo/side-view-baked-fish-fillet-with-red-onions-narsharab-plate_140725-11495.jpg", imageAlt: "Golden Catfish Dinner"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Wheel-Cover Pancakes", price: "$14.99", variant: "Massive, Homemade, Fluffy", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-pancakes-with-syrup_23-2148454957.jpg", imageAlt: "Wheel-Cover Pancakes"
|
||||
|
||||
@@ -1,51 +1,41 @@
|
||||
"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;
|
||||
fontFamily?: string;
|
||||
fill?: string;
|
||||
dominantBaseline?: 'auto' | 'text-top' | 'hanging' | 'middle' | 'central' | 'text-bottom' | 'ideographic' | 'alphabetic' | 'mathematical' | 'inherit';
|
||||
}
|
||||
|
||||
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,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fill = 'currentColor',
|
||||
dominantBaseline = 'middle'
|
||||
}) => {
|
||||
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 * 30} 100`}
|
||||
className={className}
|
||||
style={{ overflow: 'visible' }}
|
||||
>
|
||||
<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={dominantBaseline}
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fill={fill}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user