Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="mediumSmall"
|
||||
sizing="mediumLargeSizeLargeTitles"
|
||||
background="noiseDiagonalGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="glass-elevated"
|
||||
primaryButtonStyle="gradient"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -43,7 +43,7 @@ export default function LandingPage() {
|
||||
<HeroCentered
|
||||
title="Authentic Veg Food & Comfortable Stay in Deulgaon Raja"
|
||||
description="Loved by travelers and families for genuine hospitality, clean rooms, and delicious traditional cuisine. Your trusted destination for food and rest."
|
||||
background={{ variant: "noiseDiagonalGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
avatars={[
|
||||
{ src: "http://img.b2bpic.net/free-photo/happy-mature-businessman-black-suit-with-office-building-background_23-2147955273.jpg", alt: "Business traveler guest" },
|
||||
{ src: "http://img.b2bpic.net/free-photo/thoughtful-business-woman-sitting-couch_23-2148095697.jpg", alt: "Family visitor guest" },
|
||||
@@ -70,7 +70,7 @@ export default function LandingPage() {
|
||||
buttons={[
|
||||
{ text: "View Our Rooms", href: "#rooms" }
|
||||
]}
|
||||
buttonAnimation="fade"
|
||||
buttonAnimation="slide-up"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -85,13 +85,13 @@ export default function LandingPage() {
|
||||
useInvertedBackground={false}
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Traditional Thali", price: "₹150-250", imageSrc: "http://img.b2bpic.net/free-photo/healthy-dish-with-chicken-vegetables-grunge-wooden-desk_23-2148113625.jpg?_wi=1", imageAlt: "Traditional vegetarian thali meal"
|
||||
id: "1", name: "Traditional Thali", price: "₹150-250", imageSrc: "http://img.b2bpic.net/free-photo/healthy-dish-with-chicken-vegetables-grunge-wooden-desk_23-2148113625.jpg", imageAlt: "Traditional vegetarian thali meal"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Homestyle Curries", price: "₹80-180", imageSrc: "http://img.b2bpic.net/free-photo/elevated-view-person-s-hand-slicing-red-tomato-chopping-board_23-2147944239.jpg", imageAlt: "Authentic vegetarian curry dishes"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Fresh Breads & Rice", price: "₹30-100", imageSrc: "http://img.b2bpic.net/free-photo/healthy-dish-with-chicken-vegetables-grunge-wooden-desk_23-2148113625.jpg?_wi=2", imageAlt: "Traditional breads and rice preparations"
|
||||
id: "3", name: "Fresh Breads & Rice", price: "₹30-100", imageSrc: "http://img.b2bpic.net/free-photo/healthy-dish-with-chicken-vegetables-grunge-wooden-desk_23-2148113625.jpg", imageAlt: "Traditional breads and rice preparations"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -170,12 +170,11 @@ export default function LandingPage() {
|
||||
logos={[
|
||||
"http://img.b2bpic.net/free-psd/gradient-abstract-logo_23-2150689652.jpg", "http://img.b2bpic.net/free-vector/detailed-click-collect-sign_23-2148782062.jpg", "http://img.b2bpic.net/free-vector/travel-lettering-background-with-photo_23-2148236087.jpg", "http://img.b2bpic.net/free-vector/pin-map-logo_1043-275.jpg", "http://img.b2bpic.net/free-photo/freelancer-traveler-waiting-transport-station_1163-1458.jpg", "http://img.b2bpic.net/free-photo/portrait-asian-girl-takes-selfie-mobile-phone-korean-woman-smiling-video-chat-smartphone_1258-193054.jpg", "http://img.b2bpic.net/free-vector/contact-us-icons-set_98292-6887.jpg"
|
||||
]}
|
||||
animationType="fade"
|
||||
speed={35}
|
||||
showCard={true}
|
||||
names={[
|
||||
"Google", "Booking.com", "TripAdvisor", "Airbnb", "OTA", "WhatsApp", "Phone"
|
||||
]}
|
||||
speed={35}
|
||||
showCard={true}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -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;
|
||||
size?: number;
|
||||
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, size = 32, className = '' }) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={size}
|
||||
height={size}
|
||||
viewBox={`0 0 ${size} ${size}`}
|
||||
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%"
|
||||
dominantBaseline="middle"
|
||||
textAnchor="middle"
|
||||
fontSize={size * 0.6}
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user