Merge version_1 into main #2

Merged
bender merged 3 commits from version_1 into main 2026-03-11 15:37:55 +00:00
3 changed files with 101 additions and 268 deletions

View File

@@ -33,9 +33,7 @@ export default function ContactPage() {
{ name: "التوصيل", id: "delivery" },
]}
button={{
text: "اطلب الآن",
href: "whatsapp://send?phone=966138892123&text=مرحبا، أود طلب باقة زهور",
}}
text: "اطلب الآن", href: "whatsapp://send?phone=966138892123&text=مرحبا، أود طلب باقة زهور"}}
animateOnLoad={true}
/>
</div>
@@ -46,37 +44,26 @@ export default function ContactPage() {
description="Contact us today to place your flower order or learn more about our services. We're available via phone, WhatsApp, and this contact form."
tag="تسليم سريع"
tagIcon={Zap}
imageSrc="http://img.b2bpic.net/free-photo/minimal-floral-arrangement-red-surface_58702-17423.jpg?_wi=5"
imageSrc="http://img.b2bpic.net/free-photo/minimal-floral-arrangement-red-surface_58702-17423.jpg"
imageAlt="Beautiful fresh flower bouquet arrangement"
mediaAnimation="blur-reveal"
background={{ variant: "plain" }}
testimonials={[
{
name: "فاطمة أحمد",
handle: "عميلة سعيدة",
testimonial:
"خدمة ممتازة وزهور طازجة جداً! التوصيل سريع جداً وصلت الباقة في نفس اليوم",
rating: 5,
name: "فاطمة أحمد", handle: "عميلة سعيدة", testimonial:
"خدمة ممتازة وزهور طازجة جداً! التوصيل سريع جداً وصلت الباقة في نفس اليوم", rating: 5,
imageSrc:
"http://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148135.jpg?_wi=5",
},
"http://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148135.jpg"},
{
name: "محمد علي",
handle: "عميل دائم",
testimonial:
"أفضل متجر زهور في المدينة. الموظفون احترافيون والجودة عالية جداً",
rating: 5,
name: "محمد علي", handle: "عميل دائم", testimonial:
"أفضل متجر زهور في المدينة. الموظفون احترافيون والجودة عالية جداً", rating: 5,
imageSrc:
"http://img.b2bpic.net/free-photo/optimistic-cheerful-european-male-clenches-fists-with-triumph-celebrates-his-success-work-had-friendly-smile-dressed-white-shirt-poses-indoor-successful-businessman-gestures-indoor_176532-6514.jpg?_wi=5",
},
"http://img.b2bpic.net/free-photo/optimistic-cheerful-european-male-clenches-fists-with-triumph-celebrates-his-success-work-had-friendly-smile-dressed-white-shirt-poses-indoor-successful-businessman-gestures-indoor_176532-6514.jpg"},
{
name: "عائشة محمود",
handle: "زوجة سعيدة",
testimonial:
"استخدمت WhatsApp وكان سهل جداً. الزهور وصلت طازجة وجميلة جداً شكراً",
rating: 5,
name: "عائشة محمود", handle: "زوجة سعيدة", testimonial:
"استخدمت WhatsApp وكان سهل جداً. الزهور وصلت طازجة وجميلة جداً شكراً", rating: 5,
imageSrc:
"http://img.b2bpic.net/free-photo/pretty-european-woman-casual-knitted-sweater-pink-wall_343596-5789.jpg?_wi=5",
},
"http://img.b2bpic.net/free-photo/pretty-european-woman-casual-knitted-sweater-pink-wall_343596-5789.jpg"},
]}
useInvertedBackground={false}
/>
@@ -88,34 +75,20 @@ export default function ContactPage() {
description="Order your stunning bouquet today through WhatsApp or call us directly. We deliver same-day throughout Medina."
inputs={[
{
name: "name",
type: "text",
placeholder: "Your Name",
required: true,
name: "name", type: "text", placeholder: "Your Name", required: true,
},
{
name: "phone",
type: "tel",
placeholder: "Your Phone Number",
required: true,
name: "phone", type: "tel", placeholder: "Your Phone Number", required: true,
},
{
name: "bouquet",
type: "text",
placeholder: "Select Bouquet Type",
required: true,
name: "bouquet", type: "text", placeholder: "Select Bouquet Type", required: true,
},
{
name: "address",
type: "text",
placeholder: "Delivery Address",
required: true,
name: "address", type: "text", placeholder: "Delivery Address", required: true,
},
]}
textarea={{
name: "message",
placeholder: "Special message or delivery instructions (optional)",
rows: 4,
name: "message", placeholder: "Special message or delivery instructions (optional)", rows: 4,
required: false,
}}
buttonText="Submit Order"
@@ -128,35 +101,20 @@ export default function ContactPage() {
<TestimonialCardThirteen
testimonials={[
{
id: "1",
name: "فاطمة أحمد",
handle: "@fatima_medina",
testimonial:
"خدمة ممتازة وزهور طازجة جداً! التوصيل سريع جداً وصلت الباقة في نفس اليوم. شكراً نارينا!",
rating: 5,
id: "1", name: "فاطمة أحمد", handle: "@fatima_medina", testimonial:
"خدمة ممتازة وزهور طازجة جداً! التوصيل سريع جداً وصلت الباقة في نفس اليوم. شكراً نارينا!", rating: 5,
imageSrc:
"http://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148135.jpg?_wi=6",
},
"http://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148135.jpg"},
{
id: "2",
name: "محمد علي",
handle: "@mohammad_flowers",
testimonial:
"أفضل متجر زهور في المدينة. الموظفون احترافيون والجودة عالية جداً. أنصح به بشدة.",
rating: 5,
id: "2", name: "محمد علي", handle: "@mohammad_flowers", testimonial:
"أفضل متجر زهور في المدينة. الموظفون احترافيون والجودة عالية جداً. أنصح به بشدة.", rating: 5,
imageSrc:
"http://img.b2bpic.net/free-photo/optimistic-cheerful-european-male-clenches-fists-with-triumph-celebrates-his-success-work-had-friendly-smile-dressed-white-shirt-poses-indoor-successful-businessman-gestures-indoor_176532-6514.jpg?_wi=6",
},
"http://img.b2bpic.net/free-photo/optimistic-cheerful-european-male-clenches-fists-with-triumph-celebrates-his-success-work-had-friendly-smile-dressed-white-shirt-poses-indoor-successful-businessman-gestures-indoor_176532-6514.jpg"},
{
id: "3",
name: "عائشة محمود",
handle: "@aisha_medina",
testimonial:
"استخدمت WhatsApp وكان سهل جداً. الزهور وصلت طازجة وجميلة جداً. شكراً نارينا.",
rating: 5,
id: "3", name: "عائشة محمود", handle: "@aisha_medina", testimonial:
"استخدمت WhatsApp وكان سهل جداً. الزهور وصلت طازجة وجميلة جداً. شكراً نارينا.", rating: 5,
imageSrc:
"http://img.b2bpic.net/free-photo/pretty-european-woman-casual-knitted-sweater-pink-wall_343596-5789.jpg?_wi=6",
},
"http://img.b2bpic.net/free-photo/pretty-european-woman-casual-knitted-sweater-pink-wall_343596-5789.jpg"},
]}
showRating={true}
title="What Our Customers Say"
@@ -171,13 +129,9 @@ export default function ContactPage() {
<FooterLogoReveal
logoText="نارينا للزهور"
leftLink={{
text: "Privacy Policy",
href: "#privacy",
}}
text: "Privacy Policy", href: "#privacy"}}
rightLink={{
text: "Terms of Service",
href: "#terms",
}}
text: "Terms of Service", href: "#terms"}}
/>
</div>
</ThemeProvider>

View File

@@ -39,9 +39,7 @@ export default function HomePage() {
brandName="نارينا للزهور"
navItems={navItems}
button={{
text: "اطلب الآن",
href: "whatsapp://send?phone=966138892123&text=مرحبا، أود طلب باقة زهور",
}}
text: "اطلب الآن", href: "whatsapp://send?phone=966138892123&text=مرحبا، أود طلب باقة زهور"}}
animateOnLoad={true}
/>
</div>
@@ -52,44 +50,26 @@ export default function HomePage() {
description="Fresh flowers for every occasion. Fast ordering and delivery. Get stunning floral arrangements delivered to your doorstep in Medina."
tag="تسليم سريع"
tagIcon={Zap}
imageSrc="http://img.b2bpic.net/free-photo/minimal-floral-arrangement-red-surface_58702-17423.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/minimal-floral-arrangement-red-surface_58702-17423.jpg"
imageAlt="Beautiful fresh flower bouquet arrangement"
mediaAnimation="blur-reveal"
background={{ variant: "plain" }}
buttons={[
{
text: "Order Now on WhatsApp",
href: "whatsapp://send?phone=966138892123&text=مرحبا، أود طلب باقة زهور",
},
text: "Order Now on WhatsApp", href: "whatsapp://send?phone=966138892123&text=مرحبا، أود طلب باقة زهور"},
{
text: "Browse Bouquets",
href: "/bouquets",
},
text: "Browse Bouquets", href: "/bouquets"},
]}
testimonials={[
{
name: "فاطمة أحمد",
handle: "عميلة سعيدة",
testimonial: "خدمة ممتازة وزهور طازجة جداً! التوصيل سريع جداً وصلت الباقة في نفس اليوم",
rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148135.jpg?_wi=1",
imageAlt: "happy customer smiling woman flower shop",
},
name: "فاطمة أحمد", handle: "عميلة سعيدة", testimonial: "خدمة ممتازة وزهور طازجة جداً! التوصيل سريع جداً وصلت الباقة في نفس اليوم", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148135.jpg", imageAlt: "happy customer smiling woman flower shop"},
{
name: "محمد علي",
handle: "عميل دائم",
testimonial: "أفضل متجر زهور في المدينة. الموظفون احترافيون والجودة عالية جداً",
rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/optimistic-cheerful-european-male-clenches-fists-with-triumph-celebrates-his-success-work-had-friendly-smile-dressed-white-shirt-poses-indoor-successful-businessman-gestures-indoor_176532-6514.jpg?_wi=1",
imageAlt: "happy man customer portrait smiling face",
},
name: "محمد علي", handle: "عميل دائم", testimonial: "أفضل متجر زهور في المدينة. الموظفون احترافيون والجودة عالية جداً", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/optimistic-cheerful-european-male-clenches-fists-with-triumph-celebrates-his-success-work-had-friendly-smile-dressed-white-shirt-poses-indoor-successful-businessman-gestures-indoor_176532-6514.jpg", imageAlt: "happy man customer portrait smiling face"},
{
name: "عائشة محمود",
handle: "زوجة سعيدة",
testimonial: "استخدمت WhatsApp وكان سهل جداً. الزهور وصلت طازجة وجميلة جداً شكراً",
rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/pretty-european-woman-casual-knitted-sweater-pink-wall_343596-5789.jpg?_wi=1",
imageAlt: "happy woman customer portrait satisfied expression",
},
name: "عائشة محمود", handle: "زوجة سعيدة", testimonial: "استخدمت WhatsApp وكان سهل جداً. الزهور وصلت طازجة وجميلة جداً شكراً", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/pretty-european-woman-casual-knitted-sweater-pink-wall_343596-5789.jpg", imageAlt: "happy woman customer portrait satisfied expression"},
]}
useInvertedBackground={false}
/>
@@ -101,33 +81,13 @@ export default function HomePage() {
description="Handcrafted bouquets perfect for every occasion. Premium fresh flowers arranged by our expert florists."
products={[
{
id: "1",
name: "Romantic Red Roses",
price: "180 ريال",
imageSrc: "http://img.b2bpic.net/free-photo/composition-valentine-s-day-with-bouquet-red-drink-cup_169016-26067.jpg?_wi=1",
imageAlt: "Romantic red roses bouquet",
},
id: "1", name: "Romantic Red Roses", price: "180 ريال", imageSrc: "http://img.b2bpic.net/free-photo/composition-valentine-s-day-with-bouquet-red-drink-cup_169016-26067.jpg", imageAlt: "Romantic red roses bouquet"},
{
id: "2",
name: "Luxury Pink Bouquet",
price: "200 ريال",
imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-valentine-s-day-concept-with-copy-space_23-2148752582.jpg?_wi=1",
imageAlt: "Luxury pink flowers bouquet",
},
id: "2", name: "Luxury Pink Bouquet", price: "200 ريال", imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-valentine-s-day-concept-with-copy-space_23-2148752582.jpg", imageAlt: "Luxury pink flowers bouquet"},
{
id: "3",
name: "White Elegance Flowers",
price: "190 ريال",
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-spring-flowers_23-2151919562.jpg?_wi=1",
imageAlt: "White elegance flower arrangement",
},
id: "3", name: "White Elegance Flowers", price: "190 ريال", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-spring-flowers_23-2151919562.jpg", imageAlt: "White elegance flower arrangement"},
{
id: "4",
name: "Mixed Celebration Bouquet",
price: "170 ريال",
imageSrc: "http://img.b2bpic.net/free-photo/close-up-assortment-cute-roses_23-2148388002.jpg?_wi=1",
imageAlt: "Mixed celebration flowers",
},
id: "4", name: "Mixed Celebration Bouquet", price: "170 ريال", imageSrc: "http://img.b2bpic.net/free-photo/close-up-assortment-cute-roses_23-2148388002.jpg", imageAlt: "Mixed celebration flowers"},
]}
gridVariant="two-columns-alternating-heights"
animationType="slide-up"
@@ -142,48 +102,30 @@ export default function HomePage() {
description="Experience the difference with our premium flower arrangement service."
features={[
{
title: "Fresh Flowers Daily",
description: "All our flowers are sourced fresh daily from the finest suppliers to ensure maximum freshness and beauty.",
icon: Flower2,
title: "Fresh Flowers Daily", description: "All our flowers are sourced fresh daily from the finest suppliers to ensure maximum freshness and beauty.", icon: Flower2,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/composition-valentine-s-day-with-bouquet-red-drink-cup_169016-26067.jpg?_wi=2",
imageAlt: "Fresh roses arrangement",
},
imageSrc: "http://img.b2bpic.net/free-photo/composition-valentine-s-day-with-bouquet-red-drink-cup_169016-26067.jpg", imageAlt: "Fresh roses arrangement"},
{
imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-valentine-s-day-concept-with-copy-space_23-2148752582.jpg?_wi=2",
imageAlt: "Fresh pink flowers",
},
imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-valentine-s-day-concept-with-copy-space_23-2148752582.jpg", imageAlt: "Fresh pink flowers"},
],
},
{
title: "Handcrafted Bouquets",
description: "Each arrangement is carefully designed by our expert florists with attention to detail and artistic vision.",
icon: Wand2,
title: "Handcrafted Bouquets", description: "Each arrangement is carefully designed by our expert florists with attention to detail and artistic vision.", icon: Wand2,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-spring-flowers_23-2151919562.jpg?_wi=2",
imageAlt: "Handcrafted white arrangement",
},
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-spring-flowers_23-2151919562.jpg", imageAlt: "Handcrafted white arrangement"},
{
imageSrc: "http://img.b2bpic.net/free-photo/close-up-assortment-cute-roses_23-2148388002.jpg?_wi=2",
imageAlt: "Mixed flower arrangement",
},
imageSrc: "http://img.b2bpic.net/free-photo/close-up-assortment-cute-roses_23-2148388002.jpg", imageAlt: "Mixed flower arrangement"},
],
},
{
title: "Fast & Reliable Delivery",
description: "We guarantee same-day delivery throughout Medina with professional handling to ensure flowers arrive pristine.",
icon: Truck,
title: "Fast & Reliable Delivery", description: "We guarantee same-day delivery throughout Medina with professional handling to ensure flowers arrive pristine.", icon: Truck,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/composition-valentine-s-day-with-bouquet-red-drink-cup_169016-26067.jpg?_wi=3",
imageAlt: "Delivery ready bouquet",
},
imageSrc: "http://img.b2bpic.net/free-photo/composition-valentine-s-day-with-bouquet-red-drink-cup_169016-26067.jpg", imageAlt: "Delivery ready bouquet"},
{
imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-valentine-s-day-concept-with-copy-space_23-2148752582.jpg?_wi=3",
imageAlt: "Premium delivery service",
},
imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-valentine-s-day-concept-with-copy-space_23-2148752582.jpg", imageAlt: "Premium delivery service"},
],
},
]}
@@ -199,24 +141,16 @@ export default function HomePage() {
metrics={[
{
icon: Star,
label: "Customer Rating",
value: "4.8/5",
},
label: "Customer Rating", value: "4.8/5"},
{
icon: Truck,
label: "Fast Delivery",
value: "Same Day",
},
label: "Fast Delivery", value: "Same Day"},
{
icon: Heart,
label: "Happy Customers",
value: "5,000+",
},
label: "Happy Customers", value: "5,000+"},
{
icon: Clock,
label: "Service Hours",
value: "Until 11 PM",
},
label: "Service Hours", value: "Until 11 PM"},
]}
metricsAnimation="slide-up"
useInvertedBackground={false}
@@ -229,59 +163,23 @@ export default function HomePage() {
description="Real reviews from happy customers who trust us with their special moments."
testimonials={[
{
id: "1",
name: "فاطمة أحمد",
handle: "@fatima_medina",
testimonial: "خدمة ممتازة وزهور طازجة جداً! التوصيل سريع جداً وصلت الباقة في نفس اليوم. شكراً نارينا!",
rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148135.jpg?_wi=2",
imageAlt: "testimonial-1",
},
id: "1", name: "فاطمة أحمد", handle: "@fatima_medina", testimonial: "خدمة ممتازة وزهور طازجة جداً! التوصيل سريع جداً وصلت الباقة في نفس اليوم. شكراً نارينا!", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148135.jpg", imageAlt: "testimonial-1"},
{
id: "2",
name: "محمد علي",
handle: "@mohammad_flowers",
testimonial: "أفضل متجر زهور في المدينة. الموظفون احترافيون والجودة عالية جداً. أنصح به بشدة.",
rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/optimistic-cheerful-european-male-clenches-fists-with-triumph-celebrates-his-success-work-had-friendly-smile-dressed-white-shirt-poses-indoor-successful-businessman-gestures-indoor_176532-6514.jpg?_wi=2",
imageAlt: "testimonial-2",
},
id: "2", name: "محمد علي", handle: "@mohammad_flowers", testimonial: "أفضل متجر زهور في المدينة. الموظفون احترافيون والجودة عالية جداً. أنصح به بشدة.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/optimistic-cheerful-european-male-clenches-fists-with-triumph-celebrates-his-success-work-had-friendly-smile-dressed-white-shirt-poses-indoor-successful-businessman-gestures-indoor_176532-6514.jpg", imageAlt: "testimonial-2"},
{
id: "3",
name: "عائشة محمود",
handle: "@aisha_medina",
testimonial: "استخدمت WhatsApp وكان سهل جداً. الزهور وصلت طازجة وجميلة جداً. شكراً نارينا.",
rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/pretty-european-woman-casual-knitted-sweater-pink-wall_343596-5789.jpg?_wi=2",
imageAlt: "testimonial-3",
},
id: "3", name: "عائشة محمود", handle: "@aisha_medina", testimonial: "استخدمت WhatsApp وكان سهل جداً. الزهور وصلت طازجة وجميلة جداً. شكراً نارينا.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/pretty-european-woman-casual-knitted-sweater-pink-wall_343596-5789.jpg", imageAlt: "testimonial-3"},
{
id: "4",
name: "سارة إبراهيم",
handle: "@sarah_events",
testimonial: "استخدمتهم لحفل زفافي وكانوا مذهلين! الترتيبات جميلة جداً والفريق احترافي جداً.",
rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/young-serious-businessman-looking-camera-meeting-headshot-portrait_1163-3923.jpg?_wi=1",
imageAlt: "testimonial-4",
},
id: "4", name: "سارة إبراهيم", handle: "@sarah_events", testimonial: "استخدمتهم لحفل زفافي وكانوا مذهلين! الترتيبات جميلة جداً والفريق احترافي جداً.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/young-serious-businessman-looking-camera-meeting-headshot-portrait_1163-3923.jpg", imageAlt: "testimonial-4"},
{
id: "5",
name: "خالد السعيد",
handle: "@khalid_medina",
testimonial: "أفضل خيار للهدايا. توصيل سريع وجودة عالية. أنصح الجميع بالطلب منهم.",
rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/portrait-cheerful-woman-posing-with-stylish-glasses_114579-55292.jpg?_wi=1",
imageAlt: "testimonial-5",
},
id: "5", name: "خالد السعيد", handle: "@khalid_medina", testimonial: "أفضل خيار للهدايا. توصيل سريع وجودة عالية. أنصح الجميع بالطلب منهم.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/portrait-cheerful-woman-posing-with-stylish-glasses_114579-55292.jpg", imageAlt: "testimonial-5"},
{
id: "6",
name: "ليلى محمد",
handle: "@leila_flowers",
testimonial: "خدمة توصيل رائعة وزهور طازجة. أطلب منهم كل مناسبة. شكراً على الاحترافية.",
rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/teen-with-big-smile-showing-positive-gesture_1149-940.jpg?_wi=1",
imageAlt: "testimonial-6",
},
id: "6", name: "ليلى محمد", handle: "@leila_flowers", testimonial: "خدمة توصيل رائعة وزهور طازجة. أطلب منهم كل مناسبة. شكراً على الاحترافية.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/teen-with-big-smile-showing-positive-gesture_1149-940.jpg", imageAlt: "testimonial-6"},
]}
showRating={true}
animationType="slide-up"
@@ -295,15 +193,7 @@ export default function HomePage() {
title="Trusted by Leading Organizations"
description="Partnering with premium venues and services across Medina"
names={[
"مستشفى المواساة",
"فندق أجياد المدينة",
"قاعة أفراح الحرم",
"مركز الأحداث الراقي",
"عيادات الحرم الطبية",
"مطاعم الحرم الشرقي",
"قصور الأفراح الملكية",
"صالون الزفاف الأنيق",
]}
"مستشفى المواساة", "فندق أجياد المدينة", "قاعة أفراح الحرم", "مركز الأحداث الراقي", "عيادات الحرم الطبية", "مطاعم الحرم الشرقي", "قصور الأفراح الملكية", "صالون الزفاف الأنيق"]}
textboxLayout="default"
useInvertedBackground={false}
speed={40}
@@ -315,13 +205,9 @@ export default function HomePage() {
<FooterLogoReveal
logoText="نارينا للزهور"
leftLink={{
text: "Privacy Policy",
href: "#privacy",
}}
text: "Privacy Policy", href: "#privacy"}}
rightLink={{
text: "Terms of Service",
href: "#terms",
}}
text: "Terms of Service", href: "#terms"}}
/>
</div>
</ThemeProvider>

View File

@@ -1,51 +1,44 @@
"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;
letterSpacing?: number;
dominantBaseline?: SVGTextElementAttributes<SVGTextElement>['dominantBaseline'];
}
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 = '700',
letterSpacing = 0,
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 300 100"
xmlns="http://www.w3.org/2000/svg"
className={className}
preserveAspectRatio="xMidYMid meet"
>
<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}
letterSpacing={letterSpacing}
fill="currentColor"
fontFamily="system-ui, -apple-system, sans-serif"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;