Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 18:38:39 +00:00
2 changed files with 36 additions and 79 deletions

View File

@@ -19,8 +19,7 @@ export default function HomePage() {
const footerColumns = [
{
title: "المتجر",
items: [
title: "المتجر", items: [
{ label: "المنتجات", href: "/products" },
{ label: "الفئات", href: "/products" },
{ label: "المبيعات الخاصة", href: "#" },
@@ -28,8 +27,7 @@ export default function HomePage() {
],
},
{
title: "عن المتجر",
items: [
title: "عن المتجر", items: [
{ label: "من نحن", href: "#about" },
{ label: "الأسئلة الشائعة", href: "#faq" },
{ label: "سياسة الخصوصية", href: "#" },
@@ -37,8 +35,7 @@ export default function HomePage() {
],
},
{
title: "التواصل",
items: [
title: "التواصل", items: [
{ label: "البريد الإلكتروني", href: "#contact" },
{ label: "رقم الهاتف", href: "#" },
{ label: "الموقع", href: "#" },
@@ -54,7 +51,7 @@ export default function HomePage() {
borderRadius="pill"
contentWidth="compact"
sizing="largeSizeMediumTitles"
background="circleGradient"
background="none"
cardStyle="gradient-bordered"
primaryButtonStyle="gradient"
secondaryButtonStyle="radial-glow"
@@ -73,7 +70,7 @@ export default function HomePage() {
<HeroSplit
title="متجرك الإلكتروني المتميز"
description="استكشف مجموعة رائعة من المنتجات المختارة بعناية. كل منتج معروض بصورة احترافية مع معلومات تفصيلية وروابط شراء آمنة لأفضل الماركات العالمية."
background={{ variant: "circleGradient" }}
background={{ variant: "glowing-orb" }}
tag="عرض احترافي"
tagIcon={Sparkles}
buttons={[
@@ -96,49 +93,19 @@ export default function HomePage() {
tagIcon={Star}
products={[
{
id: "1",
name: "حقيبة يد فاخرة - كود A001",
price: "500 ريال",
variant: "أسود، بني، أحمر - 3 ألوان متاحة",
imageSrc: "http://img.b2bpic.net/free-vector/illuminated-stage-background_23-2147592305.jpg?_wi=1",
imageAlt: "حقيبة يد فاخرة",
isFavorited: false,
id: "1", name: "حقيبة يد فاخرة - كود A001", price: "500 ريال", variant: "أسود، بني، أحمر - 3 ألوان متاحة", imageSrc: "http://img.b2bpic.net/free-vector/illuminated-stage-background_23-2147592305.jpg", imageAlt: "حقيبة يد فاخرة", isFavorited: false,
},
{
id: "2",
name: "ساعة يد ذكية - كود A002",
price: "1200 ريال",
variant: "فضي، ذهبي، أسود - خاصية Bluetooth",
imageSrc: "http://img.b2bpic.net/free-psd/perfume-template-design_23-2151519473.jpg?_wi=1",
imageAlt: "ساعة يد ذكية",
isFavorited: false,
id: "2", name: "ساعة يد ذكية - كود A002", price: "1200 ريال", variant: "فضي، ذهبي، أسود - خاصية Bluetooth", imageSrc: "http://img.b2bpic.net/free-psd/perfume-template-design_23-2151519473.jpg", imageAlt: "ساعة يد ذكية", isFavorited: false,
},
{
id: "3",
name: "حذاء رياضي محترف - كود A003",
price: "450 ريال",
variant: "أسود/أبيض، أحمر/أسود - مريح للجري",
imageSrc: "http://img.b2bpic.net/free-vector/flat-design-shopping-landing-page-template_23-2149325242.jpg?_wi=1",
imageAlt: "حذاء رياضي احترافي",
isFavorited: false,
id: "3", name: "حذاء رياضي محترف - كود A003", price: "450 ريال", variant: "أسود/أبيض، أحمر/أسود - مريح للجري", imageSrc: "http://img.b2bpic.net/free-vector/flat-design-shopping-landing-page-template_23-2149325242.jpg", imageAlt: "حذاء رياضي احترافي", isFavorited: false,
},
{
id: "4",
name: "نظارة شمسية عصرية - كود A004",
price: "350 ريال",
variant: "بني داكن، أسود، ذهبي - حماية UV",
imageSrc: "http://img.b2bpic.net/free-psd/store-sale-landing-page-template_23-2148667985.jpg?_wi=1",
imageAlt: "نظارة شمسية عصرية",
isFavorited: false,
id: "4", name: "نظارة شمسية عصرية - كود A004", price: "350 ريال", variant: "بني داكن، أسود، ذهبي - حماية UV", imageSrc: "http://img.b2bpic.net/free-psd/store-sale-landing-page-template_23-2148667985.jpg", imageAlt: "نظارة شمسية عصرية", isFavorited: false,
},
{
id: "5",
name: "قميص قطن عالي الجودة - كود A005",
price: "280 ريال",
variant: "أبيض، أزرق، رمادي - أحجام متعددة",
imageSrc: "http://img.b2bpic.net/free-photo/still-life-spring-wardrobe-switch_23-2150478952.jpg?_wi=1",
imageAlt: "قميص قطن فاخر",
isFavorited: false,
id: "5", name: "قميص قطن عالي الجودة - كود A005", price: "280 ريال", variant: "أبيض، أزرق، رمادي - أحجام متعددة", imageSrc: "http://img.b2bpic.net/free-photo/still-life-spring-wardrobe-switch_23-2150478952.jpg", imageAlt: "قميص قطن فاخر", isFavorited: false,
},
]}
gridVariant="three-columns-all-equal-width"

View File

@@ -1,51 +1,41 @@
"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?: number | string;
fill?: string;
className?: string;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
fontSize = 24,
fontFamily = 'Arial, sans-serif',
fontWeight = 'bold',
fill = 'currentColor',
className,
}) => {
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 ${text.length * fontSize} ${fontSize + 10}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<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"
}}
y={fontSize}
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
fill={fill}
dominantBaseline="auto"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;