Merge version_1 into main #2
@@ -57,15 +57,15 @@ export default function LandingPage() {
|
||||
testimonials={[
|
||||
{
|
||||
name: "Miraj Rahman", handle: "Local Food Lover", testimonial: "Fresh and tasty dishes with great flavors and friendly service. Highly recommend the dumplings and chow mein!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/content-businessman-smiling_74855-3248.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/content-businessman-smiling_74855-3248.jpg"
|
||||
},
|
||||
{
|
||||
name: "Sheikh Kabir", handle: "Regular Customer", testimonial: "Amazing food and excellent service. This place is a gem in the Bronx!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg"
|
||||
},
|
||||
{
|
||||
name: "Saqib Khan", handle: "Community Member", testimonial: "Best Bangladeshi and Chinese food in the Bronx. Clean place and very friendly staff.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-expression_1194-1704.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-expression_1194-1704.jpg"
|
||||
}
|
||||
]}
|
||||
testimonialRotationInterval={5000}
|
||||
@@ -158,22 +158,22 @@ export default function LandingPage() {
|
||||
<TestimonialCardSix
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Miraj Rahman", handle: "@miraj_foodie", testimonial: "Fresh and tasty dishes with great flavors and friendly service. Highly recommend the dumplings and chow mein.", imageSrc: "http://img.b2bpic.net/free-photo/content-businessman-smiling_74855-3248.jpg?_wi=2"
|
||||
id: "1", name: "Miraj Rahman", handle: "@miraj_foodie", testimonial: "Fresh and tasty dishes with great flavors and friendly service. Highly recommend the dumplings and chow mein.", imageSrc: "http://img.b2bpic.net/free-photo/content-businessman-smiling_74855-3248.jpg"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Sheikh Kabir", handle: "@sheikh_k", testimonial: "Amazing food and excellent service. This place is a gem in the Bronx!", imageSrc: "http://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg?_wi=2"
|
||||
id: "2", name: "Sheikh Kabir", handle: "@sheikh_k", testimonial: "Amazing food and excellent service. This place is a gem in the Bronx!", imageSrc: "http://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Saqib Khan", handle: "@saqib_khan", testimonial: "Best Bangladeshi and Chinese food in the Bronx. Clean place and very friendly staff.", imageSrc: "http://img.b2bpic.net/free-photo/happy-expression_1194-1704.jpg?_wi=2"
|
||||
id: "3", name: "Saqib Khan", handle: "@saqib_khan", testimonial: "Best Bangladeshi and Chinese food in the Bronx. Clean place and very friendly staff.", imageSrc: "http://img.b2bpic.net/free-photo/happy-expression_1194-1704.jpg"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Muinul Islam", handle: "@muinul_food", testimonial: "Chicken Tikka Biryani and Beef Tehari were incredible. Worth the visit!", imageSrc: "http://img.b2bpic.net/free-photo/closeup-aged-businessman-looking-straight_1262-1511.jpg"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Rashida Ahmed", handle: "@rashida_loves", testimonial: "The family atmosphere here is unmatched. Feels like dining with extended family.", imageSrc: "http://img.b2bpic.net/free-photo/content-businessman-smiling_74855-3248.jpg?_wi=3"
|
||||
id: "5", name: "Rashida Ahmed", handle: "@rashida_loves", testimonial: "The family atmosphere here is unmatched. Feels like dining with extended family.", imageSrc: "http://img.b2bpic.net/free-photo/content-businessman-smiling_74855-3248.jpg"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Hassan Patel", handle: "@hassan_eats", testimonial: "Authentic halal Chinese fusion done right. Mr. Hasan knows his craft.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg?_wi=3"
|
||||
id: "6", name: "Hassan Patel", handle: "@hassan_eats", testimonial: "Authentic halal Chinese fusion done right. Mr. Hasan knows his craft.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg"
|
||||
}
|
||||
]}
|
||||
title="What Our Community Says"
|
||||
@@ -219,7 +219,7 @@ export default function LandingPage() {
|
||||
<ContactText
|
||||
text="Ready to taste the best halal Chinese food in the Bronx? Order online now or visit us for an unforgettable dining experience."
|
||||
animationType="entrance-slide"
|
||||
background={{ variant: "glowing-orb" }}
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
useInvertedBackground={false}
|
||||
buttons={[
|
||||
{ text: "Order Online", href: "https://www.doordash.com" },
|
||||
@@ -261,4 +261,4 @@ export default function LandingPage() {
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,51 +1,35 @@
|
||||
"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";
|
||||
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
|
||||
text?: string;
|
||||
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 = 'Logo',
|
||||
className = '',
|
||||
...props
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width="200"
|
||||
height="60"
|
||||
viewBox="0 0 200 60"
|
||||
className={className}
|
||||
{...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="10"
|
||||
y="40"
|
||||
fontSize="32"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user