Merge version_1 into main
Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
@@ -69,6 +69,7 @@ export default function LandingPage() {
|
||||
imageSrc="http://img.b2bpic.net/free-photo/view-chef-working-kitchen_23-2149727962.jpg"
|
||||
imageAlt="Durbin Bangla Restaurant Kitchen"
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
@@ -84,25 +85,25 @@ export default function LandingPage() {
|
||||
id: "breakfast", title: "Shokaler Sohor (Breakfast)", descriptions: [
|
||||
"Soft and crispy paratha with traditional bharta", "Authentic dal bhaji and egg preparations", "Brain masala and chicken soup specialties", "Sweet semolina halwa and Bengali tea"
|
||||
],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/top-view-from-afar-cup-tea-plate-cake-sliced-limes-bowls-different-sweets-dried-pineapples-turkish-delight-cup-tea-white-background_140725-111862.jpg?_wi=1", imageAlt: "Bengali Breakfast Special"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/top-view-from-afar-cup-tea-plate-cake-sliced-limes-bowls-different-sweets-dried-pineapples-turkish-delight-cup-tea-white-background_140725-111862.jpg", imageAlt: "Bengali Breakfast Special"
|
||||
},
|
||||
{
|
||||
id: "lunch", title: "Bhor Dupure (Lunch)", descriptions: [
|
||||
"Fragrant rice with aromatic dal preparations", "Fresh mixed vegetables and lentil combinations", "Tender chicken curry with Bengali spices", "Traditional fish curry and bharta items"
|
||||
],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/cod-with-potatoes-wooden-table_123827-37173.jpg?_wi=1", imageAlt: "Bengali Lunch Specialties"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/cod-with-potatoes-wooden-table_123827-37173.jpg", imageAlt: "Bengali Lunch Specialties"
|
||||
},
|
||||
{
|
||||
id: "specialties", title: "Cheka Pora (Grilled Specialties)", descriptions: [
|
||||
"Mache Bhate Bangali - Traditional Bengali fish dishes", "Grilled preparations with authentic Bengali flavors", "House specialty brain masala preparation", "Premium quality meat selections"
|
||||
],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/pre-prepared-food-showcasing-ready-eat-delicious-meals-go_23-2151246083.jpg?_wi=1", imageAlt: "Bengali Grilled Specialties"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/pre-prepared-food-showcasing-ready-eat-delicious-meals-go_23-2151246083.jpg", imageAlt: "Bengali Grilled Specialties"
|
||||
},
|
||||
{
|
||||
id: "desserts", title: "Bengali Sweets & Desserts", descriptions: [
|
||||
"Traditional semolina halwa with ghee and nuts", "Authentic rasgolla in light sugar syrup", "Bengali sweet preparations", "Perfect ending to your dining experience"
|
||||
],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/candlelit-still-life-with-orange-dessert-flowers_23-2152004266.jpg?_wi=1", imageAlt: "Bengali Traditional Desserts"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/candlelit-still-life-with-orange-dessert-flowers_23-2152004266.jpg", imageAlt: "Bengali Traditional Desserts"
|
||||
}
|
||||
]}
|
||||
gridVariant="two-columns-alternating-heights"
|
||||
@@ -128,15 +129,15 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
id: "2", brand: "Bhor Dupure", name: "Bengali Fish Curry", price: "৳120", rating: 5,
|
||||
reviewCount: "320+", imageSrc: "http://img.b2bpic.net/free-photo/cod-with-potatoes-wooden-table_123827-37173.jpg?_wi=2", imageAlt: "Authentic Fish Curry"
|
||||
reviewCount: "320+", imageSrc: "http://img.b2bpic.net/free-photo/cod-with-potatoes-wooden-table_123827-37173.jpg", imageAlt: "Authentic Fish Curry"
|
||||
},
|
||||
{
|
||||
id: "3", brand: "Cheka Pora", name: "Brain Masala", price: "৳150", rating: 5,
|
||||
reviewCount: "280+", imageSrc: "http://img.b2bpic.net/free-photo/pre-prepared-food-showcasing-ready-eat-delicious-meals-go_23-2151246083.jpg?_wi=2", imageAlt: "Brain Masala Specialty"
|
||||
reviewCount: "280+", imageSrc: "http://img.b2bpic.net/free-photo/pre-prepared-food-showcasing-ready-eat-delicious-meals-go_23-2151246083.jpg", imageAlt: "Brain Masala Specialty"
|
||||
},
|
||||
{
|
||||
id: "4", brand: "Bengali Sweets", name: "Rasgolla", price: "৳50", rating: 5,
|
||||
reviewCount: "380+", imageSrc: "http://img.b2bpic.net/free-photo/candlelit-still-life-with-orange-dessert-flowers_23-2152004266.jpg?_wi=2", imageAlt: "Traditional Rasgolla"
|
||||
reviewCount: "380+", imageSrc: "http://img.b2bpic.net/free-photo/candlelit-still-life-with-orange-dessert-flowers_23-2152004266.jpg", imageAlt: "Traditional Rasgolla"
|
||||
},
|
||||
{
|
||||
id: "5", brand: "Bengali Sweets", name: "Semolina Halwa", price: "৳60", rating: 5,
|
||||
@@ -144,7 +145,7 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
id: "6", brand: "Shokaler Sohor", name: "Breakfast Plate", price: "৳100", rating: 5,
|
||||
reviewCount: "290+", imageSrc: "http://img.b2bpic.net/free-photo/top-view-from-afar-cup-tea-plate-cake-sliced-limes-bowls-different-sweets-dried-pineapples-turkish-delight-cup-tea-white-background_140725-111862.jpg?_wi=2", imageAlt: "Complete Breakfast Set"
|
||||
reviewCount: "290+", imageSrc: "http://img.b2bpic.net/free-photo/top-view-from-afar-cup-tea-plate-cake-sliced-limes-bowls-different-sweets-dried-pineapples-turkish-delight-cup-tea-white-background_140725-111862.jpg", imageAlt: "Complete Breakfast Set"
|
||||
}
|
||||
]}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
@@ -164,22 +165,22 @@ export default function LandingPage() {
|
||||
useInvertedBackground={true}
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", title: "Authentic Bengali Excellence", quote: "Too crowded during lunch hours but food tastes really good. Rasgolla was awesome. The flavors are exactly as I remember from my grandmother's kitchen.", name: "রহিম আহমেদ", role: "Office Professional", imageSrc: "http://img.b2bpic.net/free-photo/happy-young-businessman-walking-near-business-center_171337-19784.jpg?_wi=1", imageAlt: "Rahim Ahmed"
|
||||
id: "1", title: "Authentic Bengali Excellence", quote: "Too crowded during lunch hours but food tastes really good. Rasgolla was awesome. The flavors are exactly as I remember from my grandmother's kitchen.", name: "রহিম আহমেদ", role: "Office Professional", imageSrc: "http://img.b2bpic.net/free-photo/happy-young-businessman-walking-near-business-center_171337-19784.jpg", imageAlt: "Rahim Ahmed"
|
||||
},
|
||||
{
|
||||
id: "2", title: "Perfect Hidden Gem", quote: "Chicken soup was sweet but liver tasted great. Halwa was the highlight. This place has become my go-to spot for authentic Bengali food in Mohakhali.", name: "ফাতিমা খান", role: "Local Regular", imageSrc: "http://img.b2bpic.net/free-photo/confident-european-businesswoman-mockup-psd-smiling-closeup-port_53876-143277.jpg?_wi=1", imageAlt: "Fatima Khan"
|
||||
id: "2", title: "Perfect Hidden Gem", quote: "Chicken soup was sweet but liver tasted great. Halwa was the highlight. This place has become my go-to spot for authentic Bengali food in Mohakhali.", name: "ফাতিমা খান", role: "Local Regular", imageSrc: "http://img.b2bpic.net/free-photo/confident-european-businesswoman-mockup-psd-smiling-closeup-port_53876-143277.jpg", imageAlt: "Fatima Khan"
|
||||
},
|
||||
{
|
||||
id: "3", title: "Soft Paratha Paradise", quote: "Paratha was soft and thin. Vegetables and lentils combo was amazing. The quality never compromises even during peak hours. Highly recommended!", name: "করিম সাহেব", role: "Food Enthusiast", imageSrc: "http://img.b2bpic.net/free-photo/thrilled-confident-manager-business-attire-celebrates-victorious-milestone_482257-111932.jpg?_wi=1", imageAlt: "Karim Saheb"
|
||||
id: "3", title: "Soft Paratha Paradise", quote: "Paratha was soft and thin. Vegetables and lentils combo was amazing. The quality never compromises even during peak hours. Highly recommended!", name: "করিম সাহেব", role: "Food Enthusiast", imageSrc: "http://img.b2bpic.net/free-photo/thrilled-confident-manager-business-attire-celebrates-victorious-milestone_482257-111932.jpg", imageAlt: "Karim Saheb"
|
||||
},
|
||||
{
|
||||
id: "4", title: "Worth Every Visit", quote: "Every dish reflects authentic Bengali heritage. The brain masala is a specialty that keeps me coming back. Clean, warm atmosphere perfect for business meetings.", name: "সালমা আক্তার", role: "Business Executive", imageSrc: "http://img.b2bpic.net/free-photo/happy-young-businessman-walking-near-business-center_171337-19784.jpg?_wi=2", imageAlt: "Salma Akhtar"
|
||||
id: "4", title: "Worth Every Visit", quote: "Every dish reflects authentic Bengali heritage. The brain masala is a specialty that keeps me coming back. Clean, warm atmosphere perfect for business meetings.", name: "সালমা আক্তার", role: "Business Executive", imageSrc: "http://img.b2bpic.net/free-photo/happy-young-businessman-walking-near-business-center_171337-19784.jpg", imageAlt: "Salma Akhtar"
|
||||
},
|
||||
{
|
||||
id: "5", title: "Family Favorite", quote: "We bring our family every weekend. The staff is friendly and the portions are generous. Authentic Bengali taste that reminds us of home.", name: "হাসান মিয়া", role: "Family Person", imageSrc: "http://img.b2bpic.net/free-photo/confident-european-businesswoman-mockup-psd-smiling-closeup-port_53876-143277.jpg?_wi=2", imageAlt: "Hasan Mia"
|
||||
id: "5", title: "Family Favorite", quote: "We bring our family every weekend. The staff is friendly and the portions are generous. Authentic Bengali taste that reminds us of home.", name: "হাসান মিয়া", role: "Family Person", imageSrc: "http://img.b2bpic.net/free-photo/confident-european-businesswoman-mockup-psd-smiling-closeup-port_53876-143277.jpg", imageAlt: "Hasan Mia"
|
||||
},
|
||||
{
|
||||
id: "6", title: "Best in Mohakhali", quote: "After trying many Bengali restaurants, this is truly the best. The quality, authenticity, and warmth of service are unmatched. Durbin Bangla is a treasure!", name: "নাজমা বেগম", role: "Food Critic", imageSrc: "http://img.b2bpic.net/free-photo/thrilled-confident-manager-business-attire-celebrates-victorious-milestone_482257-111932.jpg?_wi=2", imageAlt: "Nazma Begum"
|
||||
id: "6", title: "Best in Mohakhali", quote: "After trying many Bengali restaurants, this is truly the best. The quality, authenticity, and warmth of service are unmatched. Durbin Bangla is a treasure!", name: "নাজমা বেগম", role: "Food Critic", imageSrc: "http://img.b2bpic.net/free-photo/thrilled-confident-manager-business-attire-celebrates-victorious-milestone_482257-111932.jpg", imageAlt: "Nazma Begum"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,47 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fontWeight?: string | number;
|
||||
className?: string;
|
||||
textClassName?: 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,
|
||||
fontSize = 48,
|
||||
fontFamily = 'system-ui, -apple-system, sans-serif',
|
||||
fontWeight = 'bold',
|
||||
className = '',
|
||||
textClassName = '',
|
||||
}) => {
|
||||
const padding = 20;
|
||||
const estimatedWidth = text.length * (fontSize * 0.6) + padding * 2;
|
||||
const estimatedHeight = fontSize + padding * 2;
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={estimatedWidth}
|
||||
height={estimatedHeight}
|
||||
viewBox={`0 0 ${estimatedWidth} ${estimatedHeight}`}
|
||||
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={padding}
|
||||
y={fontSize + padding}
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
dominantBaseline="text-bottom"
|
||||
className={textClassName}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user