Merge version_1 into main #2
@@ -52,23 +52,24 @@ export default function LandingPage() {
|
||||
testimonials={[
|
||||
{
|
||||
name: "Shijju Srirder", handle: "Visitor", testimonial: "The food was well organized for the participants. There are a lot of cats in a separate room. They charge a separate amount to play with cats – ₹200 per person.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-with-cheesecake_1303-3946.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-with-cheesecake_1303-3946.jpg"
|
||||
},
|
||||
{
|
||||
name: "Tapan Acharya", handle: "Visitor", testimonial: "Awesome place, good food. Loved the service. If you are a cat lover, must visit. You can catch up with many cats here.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-businessman-holding-his-hand-out_23-2148308624.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-businessman-holding-his-hand-out_23-2148308624.jpg"
|
||||
},
|
||||
{
|
||||
name: "Joe Daniels", handle: "Visitor", testimonial: "Very nice place to visit if you love cats. We found all the cats well behaved and friendly. Loved the ambience and the food.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-sitting-table-holding-mobile-phone-indoors_171337-17096.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-sitting-table-holding-mobile-phone-indoors_171337-17096.jpg"
|
||||
},
|
||||
{
|
||||
name: "Gauri Kae Sharma", handle: "Visitor", testimonial: "The atmosphere is cute. Food is amazing and service is also good. The best part is the cats – you can spend a lot of time.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-cafe_273609-12688.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-cafe_273609-12688.jpg"
|
||||
}
|
||||
]}
|
||||
testimonialRotationInterval={5000}
|
||||
useInvertedBackground={false}
|
||||
background={{ variant: "glowing-orb" }}
|
||||
buttons={[
|
||||
{ text: "Visit Our Café", href: "#contact" },
|
||||
{ text: "Meet Our Cats", href: "#team" }
|
||||
@@ -112,27 +113,27 @@ export default function LandingPage() {
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Sanjay Bhat", handle: "Regular Visitor", testimonial: "Such a cozy and cute café. The cats here are super lovely and playful. Perfect place to unwind.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-with-cheesecake_1303-3946.jpg?_wi=2"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-with-cheesecake_1303-3946.jpg"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Kunal Narayan", handle: "Coffee Lover", testimonial: "Amazing experience. 10/10. Enjoyable cappuccino while kittens play around. Highly recommend!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-businessman-holding-his-hand-out_23-2148308624.jpg?_wi=2"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-businessman-holding-his-hand-out_23-2148308624.jpg"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Xue Yang", handle: "Pet Enthusiast", testimonial: "Food was great. Lovely café atmosphere for pet lovers. Great service and wonderful cats.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-sitting-table-holding-mobile-phone-indoors_171337-17096.jpg?_wi=2"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-sitting-table-holding-mobile-phone-indoors_171337-17096.jpg"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Arno Menglung", handle: "Visitor", testimonial: "The café is very warm and clean and staff were good. Cats are lovely and well-cared for.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-cafe_273609-12688.jpg?_wi=2"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-cafe_273609-12688.jpg"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Priya Sharma", handle: "Food Critic", testimonial: "Exceptional bakery items paired with excellent coffee. The cat interaction adds a unique charm.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-with-cheesecake_1303-3946.jpg?_wi=3"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/girl-with-cheesecake_1303-3946.jpg"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Raj Kumar", handle: "Weekend Visitor", testimonial: "Best weekend spot in Bangalore. Love the ambiance, food quality, and adorable rescue cats!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-businessman-holding-his-hand-out_23-2148308624.jpg?_wi=3"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-businessman-holding-his-hand-out_23-2148308624.jpg"
|
||||
}
|
||||
]}
|
||||
showRating={true}
|
||||
@@ -149,22 +150,22 @@ export default function LandingPage() {
|
||||
description="Discover our carefully crafted selection of premium coffee, fresh bakery items, and delicious snacks."
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Cappuccino", price: "₹120", imageSrc: "http://img.b2bpic.net/free-photo/front-view-coffee-cup_23-2148354707.jpg?_wi=1", imageAlt: "Creamy cappuccino with latte art"
|
||||
id: "1", name: "Cappuccino", price: "₹120", imageSrc: "http://img.b2bpic.net/free-photo/front-view-coffee-cup_23-2148354707.jpg", imageAlt: "Creamy cappuccino with latte art"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Croissant", price: "₹80", imageSrc: "http://img.b2bpic.net/free-photo/croissants-with-powdered-sugar-grey-table_176420-300.jpg", imageAlt: "Golden flaky croissant"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Brownie", price: "₹150", imageSrc: "http://img.b2bpic.net/free-photo/chocolate-cake-sack-with-coffee-beans-wooden-table_1150-20927.jpg?_wi=1", imageAlt: "Fudgy chocolate brownie"
|
||||
id: "3", name: "Brownie", price: "₹150", imageSrc: "http://img.b2bpic.net/free-photo/chocolate-cake-sack-with-coffee-beans-wooden-table_1150-20927.jpg", imageAlt: "Fudgy chocolate brownie"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Latte", price: "₹130", imageSrc: "http://img.b2bpic.net/free-photo/front-view-coffee-cup_23-2148354707.jpg?_wi=2", imageAlt: "Smooth and creamy latte"
|
||||
id: "4", name: "Latte", price: "₹130", imageSrc: "http://img.b2bpic.net/free-photo/front-view-coffee-cup_23-2148354707.jpg", imageAlt: "Smooth and creamy latte"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Mocha", price: "₹150", imageSrc: "http://img.b2bpic.net/free-photo/front-view-coffee-cup_23-2148354707.jpg?_wi=3", imageAlt: "Rich mocha coffee"
|
||||
id: "5", name: "Mocha", price: "₹150", imageSrc: "http://img.b2bpic.net/free-photo/front-view-coffee-cup_23-2148354707.jpg", imageAlt: "Rich mocha coffee"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Cheesecake", price: "₹200", imageSrc: "http://img.b2bpic.net/free-photo/chocolate-cake-sack-with-coffee-beans-wooden-table_1150-20927.jpg?_wi=2", imageAlt: "Creamy cheesecake slice"
|
||||
id: "6", name: "Cheesecake", price: "₹200", imageSrc: "http://img.b2bpic.net/free-photo/chocolate-cake-sack-with-coffee-beans-wooden-table_1150-20927.jpg", imageAlt: "Creamy cheesecake slice"
|
||||
}
|
||||
]}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
@@ -182,22 +183,22 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
members={[
|
||||
{
|
||||
id: "1", name: "Whiskers", imageSrc: "http://img.b2bpic.net/free-photo/vertical-closeup-shot-head-cute-white-grey-cat-with-green-eyes_181624-21541.jpg?_wi=1", imageAlt: "Whiskers the cat"
|
||||
id: "1", name: "Whiskers", imageSrc: "http://img.b2bpic.net/free-photo/vertical-closeup-shot-head-cute-white-grey-cat-with-green-eyes_181624-21541.jpg", imageAlt: "Whiskers the cat"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Mittens", imageSrc: "http://img.b2bpic.net/free-photo/cat-lying_1160-670.jpg?_wi=1", imageAlt: "Mittens the cat"
|
||||
id: "2", name: "Mittens", imageSrc: "http://img.b2bpic.net/free-photo/cat-lying_1160-670.jpg", imageAlt: "Mittens the cat"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Luna", imageSrc: "http://img.b2bpic.net/free-photo/portrait-dog-looking-back-near-lake_181624-39475.jpg?_wi=1", imageAlt: "Luna the cat"
|
||||
id: "3", name: "Luna", imageSrc: "http://img.b2bpic.net/free-photo/portrait-dog-looking-back-near-lake_181624-39475.jpg", imageAlt: "Luna the cat"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Shadow", imageSrc: "http://img.b2bpic.net/free-photo/vertical-closeup-shot-head-cute-white-grey-cat-with-green-eyes_181624-21541.jpg?_wi=2", imageAlt: "Shadow the cat"
|
||||
id: "4", name: "Shadow", imageSrc: "http://img.b2bpic.net/free-photo/vertical-closeup-shot-head-cute-white-grey-cat-with-green-eyes_181624-21541.jpg", imageAlt: "Shadow the cat"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Pepper", imageSrc: "http://img.b2bpic.net/free-photo/cat-lying_1160-670.jpg?_wi=2", imageAlt: "Pepper the cat"
|
||||
id: "5", name: "Pepper", imageSrc: "http://img.b2bpic.net/free-photo/cat-lying_1160-670.jpg", imageAlt: "Pepper the cat"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Sunny", imageSrc: "http://img.b2bpic.net/free-photo/portrait-dog-looking-back-near-lake_181624-39475.jpg?_wi=2", imageAlt: "Sunny the cat"
|
||||
id: "6", name: "Sunny", imageSrc: "http://img.b2bpic.net/free-photo/portrait-dog-looking-back-near-lake_181624-39475.jpg", imageAlt: "Sunny the cat"
|
||||
}
|
||||
]}
|
||||
memberVariant="card"
|
||||
|
||||
@@ -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?: string | number;
|
||||
fill?: string;
|
||||
dominantBaseline?: 'auto' | 'text-top' | 'hanging' | 'central' | 'middle' | 'text-bottom' | 'ideographic' | '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 = 32,
|
||||
fontWeight = 'bold',
|
||||
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 * fontSize} ${fontSize * 1.5}`}
|
||||
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={dominantBaseline}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
fontFamily="system-ui, -apple-system, sans-serif"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user