Merge version_1 into main #2
@@ -48,7 +48,7 @@ export default function NammudeCafePage() {
|
||||
tag="Rated 5.0 ⭐"
|
||||
tagIcon={Star}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "circleGradient" }}
|
||||
background={{ variant: "glowing-orb" }}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/empty-coffee-cup-coffee-machine_1232-1982.jpg"
|
||||
imageAlt="Nammude Cafe cozy interior"
|
||||
mediaAnimation="blur-reveal"
|
||||
@@ -56,19 +56,19 @@ export default function NammudeCafePage() {
|
||||
testimonials={[
|
||||
{
|
||||
name: "Priya Sharma", handle: "Regular Customer", testimonial: "Amazing Kerala style snacks. Very rare to get puffs and cutlets this good!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-talking-mobile-phone-coffee-shop_1170-2063.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-talking-mobile-phone-coffee-shop_1170-2063.jpg"
|
||||
},
|
||||
{
|
||||
name: "Rajesh Kumar", handle: "Office Worker", testimonial: "Great food quality in budget. Best cafe to chill out.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-man-posing-with-camera-field_23-2149333929.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-man-posing-with-camera-field_23-2149333929.jpg"
|
||||
},
|
||||
{
|
||||
name: "Ananya Patel", handle: "Friend Group", testimonial: "Affordable, good atmosphere and great service. Highly recommend!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-man-with-curly-hair-wearing-shirt_273609-19767.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-man-with-curly-hair-wearing-shirt_273609-19767.jpg"
|
||||
},
|
||||
{
|
||||
name: "Vikram Singh", handle: "Local Resident", testimonial: "Perfect spot for meetings. Warm vibes and delicious snacks.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-posing_23-2150171293.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-posing_23-2150171293.jpg"
|
||||
}
|
||||
]}
|
||||
buttons={[
|
||||
@@ -140,12 +140,12 @@ export default function NammudeCafePage() {
|
||||
cardAnimation="blur-reveal"
|
||||
useInvertedBackground={false}
|
||||
testimonials={[
|
||||
{ id: "1", name: "Priya Sharma", imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-talking-mobile-phone-coffee-shop_1170-2063.jpg?_wi=2" },
|
||||
{ id: "2", name: "Rajesh Kumar", imageSrc: "http://img.b2bpic.net/free-photo/young-man-posing-with-camera-field_23-2149333929.jpg?_wi=2" },
|
||||
{ id: "3", name: "Ananya Patel", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-man-with-curly-hair-wearing-shirt_273609-19767.jpg?_wi=2" },
|
||||
{ id: "4", name: "Vikram Singh", imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-posing_23-2150171293.jpg?_wi=2" },
|
||||
{ id: "5", name: "Neha Desai", imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-talking-mobile-phone-coffee-shop_1170-2063.jpg?_wi=3" },
|
||||
{ id: "6", name: "Arjun Iyer", imageSrc: "http://img.b2bpic.net/free-photo/young-man-posing-with-camera-field_23-2149333929.jpg?_wi=3" }
|
||||
{ id: "1", name: "Priya Sharma", imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-talking-mobile-phone-coffee-shop_1170-2063.jpg" },
|
||||
{ id: "2", name: "Rajesh Kumar", imageSrc: "http://img.b2bpic.net/free-photo/young-man-posing-with-camera-field_23-2149333929.jpg" },
|
||||
{ id: "3", name: "Ananya Patel", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-man-with-curly-hair-wearing-shirt_273609-19767.jpg" },
|
||||
{ id: "4", name: "Vikram Singh", imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-posing_23-2150171293.jpg" },
|
||||
{ id: "5", name: "Neha Desai", imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-talking-mobile-phone-coffee-shop_1170-2063.jpg" },
|
||||
{ id: "6", name: "Arjun Iyer", imageSrc: "http://img.b2bpic.net/free-photo/young-man-posing-with-camera-field_23-2149333929.jpg" }
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -1,51 +1,37 @@
|
||||
"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";
|
||||
className?: string;
|
||||
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
|
||||
text?: string;
|
||||
fontSize?: number;
|
||||
fontWeight?: "normal" | "bold" | "lighter" | "bolder" | number;
|
||||
fill?: string;
|
||||
dominantBaseline?: "auto" | "baseline" | "before-edge" | "hanging" | "ideographic" | "mathematical" | "central" | "middle" | "after-edge" | "text-after-edge";
|
||||
}
|
||||
|
||||
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 = 24,
|
||||
fontWeight = "bold", fill = "currentColor", dominantBaseline = "middle", ...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 200 100"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
{...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}
|
||||
dominantBaseline={dominantBaseline}
|
||||
textAnchor="middle"
|
||||
dy="0.3em"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user