Merge version_1 into main #2

Merged
bender merged 3 commits from version_1 into main 2026-03-12 19:27:38 +00:00
3 changed files with 76 additions and 158 deletions

View File

@@ -33,8 +33,7 @@ export default function AboutPage() {
{ name: "اتصل بنا", id: "/contact" }
]}
button={{
text: "اطلب الآن",
href: "/contact"
text: "اطلب الآن", href: "/contact"
}}
/>
</div>
@@ -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"
/>
</div>
@@ -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: "#" }

View File

@@ -37,9 +37,7 @@ export default function HomePage() {
brandName="مطعم السور"
navItems={navItems}
button={{
text: "اطلب الآن",
href: "#contact",
}}
text: "اطلب الآن", href: "#contact"}}
/>
</div>
@@ -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"},
]}
/>
</div>
@@ -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"
/>
</div>
@@ -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: "رضا الزبائن"},
]}
/>
</div>
@@ -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: "#"},
],
},
]}

View File

@@ -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<SVGSVGElement> {
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<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
fontSize = 32,
fontFamily = "Arial, sans-serif", fontWeight = 700,
letterSpacing = 0,
dominantBaseline = "middle", textAnchor = "middle", fill = "currentColor", className = "", ...svgProps
}) => {
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 400 100"
xmlns="http://www.w3.org/2000/svg"
className={className}
{...svgProps}
>
<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}
fontFamily={fontFamily}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
dominantBaseline={dominantBaseline}
textAnchor={textAnchor}
fill={fill}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;