Merge version_1 into main #2
@@ -36,7 +36,7 @@ export default function LandingPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="small"
|
||||
sizing="mediumLargeSizeMediumTitles"
|
||||
background="floatingGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="solid"
|
||||
primaryButtonStyle="diagonal-gradient"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -61,14 +61,14 @@ export default function LandingPage() {
|
||||
<HeroSplitKpi
|
||||
title="Authentic Mexican Flavor in the Heart of Oakhurst"
|
||||
description="Family-owned restaurant serving traditional Mexican food, fresh cocktails, and unforgettable flavors. Experience the taste of Central Mexico and Guanajuato."
|
||||
background={{ variant: "floatingGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
kpis={[
|
||||
{ value: "4.5★", label: "Guest Rating from 1,622 Reviews" },
|
||||
{ value: "20+ Years", label: "Family Owned & Operated" },
|
||||
{ value: "Est. 1999", label: "Trusted Local Restaurant" },
|
||||
]}
|
||||
enableKpiAnimation={true}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/elevated-view-persons-hand-preparing-wrap-beef-tacos-breakfast_23-2148042487.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/elevated-view-persons-hand-preparing-wrap-beef-tacos-breakfast_23-2148042487.jpg"
|
||||
imageAlt="Authentic Mexican tacos"
|
||||
mediaAnimation="slide-up"
|
||||
buttons={[
|
||||
@@ -120,7 +120,7 @@ export default function LandingPage() {
|
||||
{
|
||||
id: "5", brand: "House Special", name: "Steak Fajitas de Camarón", price: "$18.99", rating: 5,
|
||||
reviewCount: "178", imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/elevated-view-persons-hand-preparing-wrap-beef-tacos-breakfast_23-2148042487.jpg?_wi=2", imageAlt: "Sizzling steak and shrimp fajitas"},
|
||||
"http://img.b2bpic.net/free-photo/elevated-view-persons-hand-preparing-wrap-beef-tacos-breakfast_23-2148042487.jpg", imageAlt: "Sizzling steak and shrimp fajitas"},
|
||||
]}
|
||||
gridVariant="uniform-all-items-equal"
|
||||
animationType="slide-up"
|
||||
@@ -173,12 +173,12 @@ export default function LandingPage() {
|
||||
id: "1", name: "Abner B", role: "Local Customer", testimonial:
|
||||
"The food was really tasty, the service was fast and the staff was super nice. Definitely coming back!", icon: Star,
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg?_wi=1", imageAlt: "professional portrait headshot customer testimonial"},
|
||||
"http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg", imageAlt: "professional portrait headshot customer testimonial"},
|
||||
{
|
||||
id: "2", name: "Mary Sanchez", role: "Regular Guest", testimonial:
|
||||
"Burritos are fire, tons of flavor and stuck to your ribs. Best Mexican food in Oakhurst!", icon: Heart,
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/people-working-elegant-cozy-office-space_23-2149548788.jpg?_wi=1", imageAlt: "professional headshot diverse man portrait"},
|
||||
"http://img.b2bpic.net/free-photo/people-working-elegant-cozy-office-space_23-2149548788.jpg", imageAlt: "professional headshot diverse man portrait"},
|
||||
{
|
||||
id: "3", name: "David Martinez", role: "Yosemite Visitor", testimonial:
|
||||
"Relaxed restaurant offering traditional Mexican cuisine. Exactly what we needed after a day in Yosemite!", icon: Smile,
|
||||
@@ -193,12 +193,12 @@ export default function LandingPage() {
|
||||
id: "5", name: "James Rodriguez", role: "Date Night Guest", testimonial:
|
||||
"Romantic ambiance with authentic flavors. The margaritas are exceptional. Highly recommend!", icon: Star,
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg?_wi=2", imageAlt: "professional portrait headshot customer testimonial"},
|
||||
"http://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg", imageAlt: "professional portrait headshot customer testimonial"},
|
||||
{
|
||||
id: "6", name: "Lisa Chen", role: "Frequent Visitor", testimonial:
|
||||
"Consistently excellent food and service. This is our go-to spot for Mexican food in the area.", icon: ThumbsUp,
|
||||
imageSrc:
|
||||
"http://img.b2bpic.net/free-photo/people-working-elegant-cozy-office-space_23-2149548788.jpg?_wi=2", imageAlt: "professional headshot diverse man portrait"},
|
||||
"http://img.b2bpic.net/free-photo/people-working-elegant-cozy-office-space_23-2149548788.jpg", imageAlt: "professional headshot diverse man portrait"},
|
||||
]}
|
||||
animationType="slide-up"
|
||||
textboxLayout="default"
|
||||
@@ -231,7 +231,7 @@ export default function LandingPage() {
|
||||
useInvertedBackground={false}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/event-hall-furniture-brown-white-colors_114579-2230.jpg"
|
||||
imageAlt="Cozy restaurant dining ambiance"
|
||||
mediaAnimation="fade-in"
|
||||
mediaAnimation="blur-reveal"
|
||||
mediaPosition="right"
|
||||
buttonText="Reserve Table"
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,44 @@
|
||||
"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;
|
||||
fill?: string;
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
dominantBaseline?: 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging';
|
||||
}
|
||||
|
||||
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 = 24,
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
textAnchor = 'middle',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width="auto"
|
||||
height={fontSize}
|
||||
viewBox={`0 0 ${text.length * fontSize * 0.6} ${fontSize}`}
|
||||
className={className}
|
||||
>
|
||||
<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={`${text.length * fontSize * 0.3}`}
|
||||
y={`${fontSize / 2}`}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user