From 7497854a57085449a0a72eaf5d875989dad0f657 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 19:27:33 +0000 Subject: [PATCH 1/3] Update src/app/about/page.tsx --- src/app/about/page.tsx | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index 6420fb5..eab1848 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -33,8 +33,7 @@ export default function AboutPage() { { name: "اتصل بنا", id: "/contact" } ]} button={{ - text: "اطلب الآن", - href: "/contact" + text: "اطلب الآن", href: "/contact" }} /> @@ -49,10 +48,11 @@ export default function AboutPage() { { value: "+10 سنوات", title: "خبرة في الطهي" }, { value: "100%", title: "مكونات طازة يومية" } ]} - imageSrc="http://img.b2bpic.net/free-photo/close-up-colleagues-eating-pizza_23-2149103778.jpg?_wi=2" + imageSrc="http://img.b2bpic.net/free-photo/close-up-colleagues-eating-pizza_23-2149103778.jpg" imageAlt="فريق مطعم السور" useInvertedBackground={false} mediaAnimation="slide-up" + metricsAnimation="slide-up" /> @@ -62,16 +62,12 @@ export default function AboutPage() { description="نحن نوفر لك أفضل التجارب الغذائية مع الراحة والجودة العالية" negativeCard={{ items: [ - "مطاعم عادية وخدمة سيئة", - "طعام غير طازة وجودة منخفضة", - "أسعار مرتفعة جداً" + "مطاعم عادية وخدمة سيئة", "طعام غير طازة وجودة منخفضة", "أسعار مرتفعة جداً" ] }} positiveCard={{ items: [ - "خدمة عائلية ودية وراقية", - "طعام طازة من أفضل المكونات", - "أسعار معقولة وعادلة" + "خدمة عائلية ودية وراقية", "طعام طازة من أفضل المكونات", "أسعار معقولة وعادلة" ] }} animationType="slide-up" @@ -101,24 +97,21 @@ export default function AboutPage() { copyrightText="© 2025 مطعم السور | جميع الحقوق محفوظة" columns={[ { - title: "القائمة", - items: [ + title: "القائمة", items: [ { label: "الرئيسية", href: "/" }, { label: "قائمة الطعام", href: "/menu" }, { label: "عن المطعم", href: "/about" } ] }, { - title: "معلومات الاتصال", - items: [ + title: "معلومات الاتصال", items: [ { label: "الهاتف: 07710222552", href: "tel:07710222552" }, { label: "العنوان: 30 ص، صوملا", href: "#" }, { label: "الموقع: 949R+4C صوملا", href: "#" } ] }, { - title: "تابعنا", - items: [ + title: "تابعنا", items: [ { label: "Facebook", href: "https://www.facebook.com" }, { label: "سياسة الخصوصية", href: "#" }, { label: "الشروط والأحكام", href: "#" } From 0f457beabf186b13a76925b18aee33f6f6cc43aa Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 19:27:33 +0000 Subject: [PATCH 2/3] Update src/app/page.tsx --- src/app/page.tsx | 140 ++++++++++++----------------------------------- 1 file changed, 35 insertions(+), 105 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index cb2edb1..639b7a4 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -37,9 +37,7 @@ export default function HomePage() { brandName="مطعم السور" navItems={navItems} button={{ - text: "اطلب الآن", - href: "#contact", - }} + text: "اطلب الآن", href: "#contact"}} /> @@ -50,17 +48,13 @@ export default function HomePage() { background={{ variant: "sparkles-gradient" }} tag="مطعم عائلي" tagIcon={Heart} - imageSrc="http://img.b2bpic.net/free-photo/young-people-reunited-table_23-2147668877.jpg?_wi=1" + imageSrc="http://img.b2bpic.net/free-photo/young-people-reunited-table_23-2147668877.jpg" imageAlt="مطعم السور العائلي" buttons={[ { - text: "اطلب الآن", - href: "#contact", - }, + text: "اطلب الآن", href: "#contact"}, { - text: "اعرف المزيد", - href: "#about", - }, + text: "اعرف المزيد", href: "#about"}, ]} /> @@ -73,18 +67,15 @@ export default function HomePage() { description="نقدم لكم أطباق عربية أصيلة تعكس تراث وحضارتنا. كل طبق يتم تحضيره بحب واهتمام من قبل طاقمنا المتخصص. نؤمن بأهمية الطعام الصحي والطازج والخدمة الراقية لعائلتكم." metrics={[ { - value: "+10 سنوات", - title: "خبرة في الطهي", - }, + value: "+10 سنوات", title: "خبرة في الطهي"}, { - value: "100%", - title: "مكونات طازة يومية", - }, + value: "100%", title: "مكونات طازة يومية"}, ]} - imageSrc="http://img.b2bpic.net/free-photo/close-up-colleagues-eating-pizza_23-2149103778.jpg?_wi=1" + imageSrc="http://img.b2bpic.net/free-photo/close-up-colleagues-eating-pizza_23-2149103778.jpg" imageAlt="فريق مطعم السور" useInvertedBackground={false} mediaAnimation="slide-up" + metricsAnimation="slide-up" /> @@ -94,17 +85,11 @@ export default function HomePage() { description="نحن نوفر لك أفضل التجارب الغذائية مع الراحة والجودة العالية" negativeCard={{ items: [ - "مطاعم عادية وخدمة سيئة", - "طعام غير طازة وجودة منخفضة", - "أسعار مرتفعة جداً", - ], + "مطاعم عادية وخدمة سيئة", "طعام غير طازة وجودة منخفضة", "أسعار مرتفعة جداً"], }} positiveCard={{ items: [ - "خدمة عائلية ودية وراقية", - "طعام طازة من أفضل المكونات", - "أسعار معقولة وعادلة", - ], + "خدمة عائلية ودية وراقية", "طعام طازة من أفضل المكونات", "أسعار معقولة وعادلة"], }} animationType="slide-up" textboxLayout="default" @@ -123,55 +108,25 @@ export default function HomePage() { animationType="slide-up" testimonials={[ { - id: "1", - name: "محمد علي", - role: "رجل أعمال", - company: "بغداد", - rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/young-woman-smiling-isolated-yellow_23-2149088349.jpg", - imageAlt: "محمد علي", - }, + id: "1", name: "محمد علي", role: "رجل أعمال", company: "بغداد", rating: 5, + imageSrc: "http://img.b2bpic.net/free-photo/young-woman-smiling-isolated-yellow_23-2149088349.jpg", imageAlt: "محمد علي"}, { - id: "2", - name: "فاطمة حسن", - role: "ربة بيت", - company: "الكاظمية", - rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/summer-fashion-concept-with-young-woman-front-plants_23-2147811322.jpg", - imageAlt: "فاطمة حسن", - }, + id: "2", name: "فاطمة حسن", role: "ربة بيت", company: "الكاظمية", rating: 5, + imageSrc: "http://img.b2bpic.net/free-photo/summer-fashion-concept-with-young-woman-front-plants_23-2147811322.jpg", imageAlt: "فاطمة حسن"}, { - id: "3", - name: "علي محمود", - role: "موظف حكومي", - company: "الرصافة", - rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/boy-having-beer-restaurant_23-2148172692.jpg", - imageAlt: "علي محمود", - }, + id: "3", name: "علي محمود", role: "موظف حكومي", company: "الرصافة", rating: 5, + imageSrc: "http://img.b2bpic.net/free-photo/boy-having-beer-restaurant_23-2148172692.jpg", imageAlt: "علي محمود"}, { - id: "4", - name: "الأسرة السعيدة", - role: "عائلة", - company: "بغداد", - rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/happy-family-smelling-fresh-cooked-turkey_23-2148314876.jpg", - imageAlt: "عائلة سعيدة", - }, + id: "4", name: "الأسرة السعيدة", role: "عائلة", company: "بغداد", rating: 5, + imageSrc: "http://img.b2bpic.net/free-photo/happy-family-smelling-fresh-cooked-turkey_23-2148314876.jpg", imageAlt: "عائلة سعيدة"}, ]} kpiItems={[ { - value: "+5,000", - label: "زبون سعيد", - }, + value: "+5,000", label: "زبون سعيد"}, { - value: "10 سنوات", - label: "في الخدمة", - }, + value: "10 سنوات", label: "في الخدمة"}, { - value: "100%", - label: "رضا الزبائن", - }, + value: "100%", label: "رضا الزبائن"}, ]} /> @@ -184,13 +139,9 @@ export default function HomePage() { description="اتصل بنا الآن واطلب وجبتك المفضلة. فريقنا في انتظارك لتقديم أفضل خدمة." buttons={[ { - text: "اتصل بنا: 07710222552", - href: "tel:07710222552", - }, + text: "اتصل بنا: 07710222552", href: "tel:07710222552"}, { - text: "زرنا على Facebook", - href: "https://www.facebook.com", - }, + text: "زرنا على Facebook", href: "https://www.facebook.com"}, ]} background={{ variant: "plain" }} useInvertedBackground={false} @@ -203,54 +154,33 @@ export default function HomePage() { copyrightText="© 2025 مطعم السور | جميع الحقوق محفوظة" columns={[ { - title: "القائمة", - items: [ + title: "القائمة", items: [ { - label: "الرئيسية", - href: "/", - }, + label: "الرئيسية", href: "/"}, { - label: "قائمة الطعام", - href: "/menu", - }, + label: "قائمة الطعام", href: "/menu"}, { - label: "عن المطعم", - href: "#about", - }, + label: "عن المطعم", href: "#about"}, ], }, { - title: "معلومات الاتصال", - items: [ + title: "معلومات الاتصال", items: [ { - label: "الهاتف: 07710222552", - href: "tel:07710222552", - }, + label: "الهاتف: 07710222552", href: "tel:07710222552"}, { - label: "العنوان: 30 ص، صوملا", - href: "#", - }, + label: "العنوان: 30 ص، صوملا", href: "#"}, { - label: "الموقع: 949R+4C صوملا", - href: "#", - }, + label: "الموقع: 949R+4C صوملا", href: "#"}, ], }, { - title: "تابعنا", - items: [ + title: "تابعنا", items: [ { - label: "Facebook", - href: "https://www.facebook.com", - }, + label: "Facebook", href: "https://www.facebook.com"}, { - label: "سياسة الخصوصية", - href: "#", - }, + label: "سياسة الخصوصية", href: "#"}, { - label: "الشروط والأحكام", - href: "#", - }, + label: "الشروط والأحكام", href: "#"}, ], }, ]} From c196218fae35a27f4dbffafda72955cc010a3fd2 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 19:27:33 +0000 Subject: [PATCH 3/3] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 71 +++++++++---------- 1 file changed, 33 insertions(+), 38 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..7652868 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,46 @@ -"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 { + text: string; + fontSize?: number; + fontFamily?: string; + fontWeight?: number | string; + letterSpacing?: number; + dominantBaseline?: "middle" | "auto" | "hanging" | "mathematical" | "central" | "text-after-edge" | "ideographic"; + textAnchor?: "start" | "middle" | "end"; + fill?: string; className?: string; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +const SvgTextLogo: React.FC = ({ + text, + fontSize = 32, + fontFamily = "Arial, sans-serif", fontWeight = 700, + letterSpacing = 0, + dominantBaseline = "middle", textAnchor = "middle", fill = "currentColor", className = "", ...svgProps +}) => { return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file