diff --git a/src/Components/Sections/Services/Services.jsx b/src/Components/Sections/Services/Services.jsx
index 5f64f29..f59d8d0 100644
--- a/src/Components/Sections/Services/Services.jsx
+++ b/src/Components/Sections/Services/Services.jsx
@@ -1,656 +1,132 @@
-import React, { useState, useEffect } from "react";
-import { Element } from "react-scroll";
-import { useTranslation } from "react-i18next";
-import { motion, AnimatePresence } from "framer-motion";
-import {
- Globe,
- MessageSquare,
- Bell,
- Package,
- BarChart3,
- Zap,
- Shield,
- Users,
- Clock,
- CheckCircle
-} from "lucide-react";
-
-const CARDS_PER_PAGE = 4;
+import React from "react";
+import { Wallet, Zap, Users, PieChart, ChevronRight, Sparkles } from "lucide-react";
const Services = () => {
- const { t, ready } = useTranslation();
- const servicesData = [
+ const features = [
{
- id: "service-1",
- title: t('tradesafe.services.platform.title'),
- description: t('tradesafe.services.platform.description'),
- details: t('tradesafe.services.platform.details'),
- icon:
,
- color: "from-[#23558f] to-[#3360b2]",
- bgColor: "bg-gradient-to-br from-[#23558f]/20 to-[#3360b2]/20",
- features: t('tradesafe.services.platform.features', { returnObjects: true })
+ id: 1,
+ icon:
,
+title: "تصميم وتنفيذ خطوط إنتاج صناعية متكاملة",
+ description: "تشمل قطاعات الحديد، الإسمنت، الغذائيات، الأدوية، والبلاستيك بأعلى معايير الجودة والسلامة",
},
{
- id: "service-2",
- title: t('tradesafe.services.orders.title'),
- description: t('tradesafe.services.orders.description'),
- details: t('tradesafe.services.orders.details'),
- icon:
,
- color: "from-[#3360b2] to-[#3c5ee3]",
- bgColor: "bg-gradient-to-br from-[#3360b2]/20 to-[#3c5ee3]/20",
- features: t('tradesafe.services.orders.features', { returnObjects: true })
- },
- {
- id: "service-3",
- title: t('tradesafe.services.communication.title'),
- description: t('tradesafe.services.communication.description'),
- details: t('tradesafe.services.communication.details'),
- icon:
,
- color: "from-[#3c5ee3] to-[#5c7ce3]",
- bgColor: "bg-gradient-to-br from-[#3c5ee3]/20 to-[#5c7ce3]/20",
- features: t('tradesafe.services.communication.features', { returnObjects: true })
- },
- {
- id: "service-4",
- title: t('tradesafe.services.notifications.title'),
- description: t('tradesafe.services.notifications.description'),
- details: t('tradesafe.services.notifications.details'),
- icon:
,
- color: "from-[#4a90e2] to-[#6aa8f2]",
- bgColor: "bg-gradient-to-br from-[#4a90e2]/20 to-[#6aa8f2]/20",
- features: t('tradesafe.services.notifications.features', { returnObjects: true })
- },
- {
- id: "service-5",
- title: t('tradesafe.services.dashboard.title'),
- description: t('tradesafe.services.dashboard.description'),
- details: t('tradesafe.services.dashboard.details'),
- icon:
,
- color: "from-[#2ecc71] to-[#1abc9c]",
- bgColor: "bg-gradient-to-br from-[#2ecc71]/20 to-[#1abc9c]/20",
- features: t('tradesafe.services.dashboard.features', { returnObjects: true })
- },
- {
- id: "service-6",
- title: t('tradesafe.services.solutions.title'),
- description: t('tradesafe.services.solutions.description'),
- details: t('tradesafe.services.solutions.details'),
- icon:
,
- color: "from-[#9b59b6] to-[#8e44ad]",
- bgColor: "bg-gradient-to-br from-[#9b59b6]/20 to-[#8e44ad]/20",
- features: t('tradesafe.services.solutions.features', { returnObjects: true })
- },
- {
- id: "service-7",
- title: t('tradesafe.services.speed.title'),
- description: t('tradesafe.services.speed.description'),
- details: t('tradesafe.services.speed.details'),
- icon:
,
- color: "from-[#f39c12] to-[#e67e22]",
- bgColor: "bg-gradient-to-br from-[#f39c12]/20 to-[#e67e22]/20",
- features: t('tradesafe.services.speed.features', { returnObjects: true })
- },
- {
- id: "service-8",
- title: t('tradesafe.services.network.title'),
- description: t('tradesafe.services.network.description'),
- details: t('tradesafe.services.network.details'),
- icon:
,
- color: "from-[#3498db] to-[#2980b9]",
- bgColor: "bg-gradient-to-br from-[#3498db]/20 to-[#2980b9]/20",
- features: t('tradesafe.services.network.features', { returnObjects: true })
- }
- ];
-
- const reasonsToChooseUs = [
- {
+ id: 2,
icon:
,
- text: t('tradesafe.reasons.speed.text'),
- description: t('tradesafe.reasons.speed.description')
+ title: "تنفيذ مشاريع سكنية وخدمية متكاملة",
+ description: "وحدات سكنية مسبقة الصنع، مباني خدمية وإدارية، مع الالتزام بأعلى المعايير الهندسية",
},
{
- icon:
,
- text: t('tradesafe.reasons.reliability.text'),
- description: t('tradesafe.reasons.reliability.description')
+ id: 3,
+ icon:
,
+ title: "إنشاء وصيانة مرافق البنية التحتية",
+ description: "محطات الوقود، المنشآت النفطية، المحطات المائية، وأنظمة ضخ ومعالجة المياه",
},
{
- icon:
,
- text: t('tradesafe.reasons.connection.text'),
- description: t('tradesafe.reasons.connection.description')
+ id: 4,
+ icon:
,
+ title: "تشغيل وصيانة متكاملة للمنشآت",
+ description: "أنظمة أتمتة متقدمة، إدارة محطات، صيانة على مدار الساعة، وتطوير مستمر للمرافق",
},
- {
- icon:
,
- text: t('tradesafe.reasons.communication.text'),
- description: t('tradesafe.reasons.communication.description')
- },
- {
- icon:
,
- text: t('tradesafe.reasons.time.text'),
- description: t('tradesafe.reasons.time.description')
- },
- {
- icon:
,
- text: t('tradesafe.reasons.solutions.text'),
- description: t('tradesafe.reasons.solutions.description')
- }
];
- const [expandedCards, setExpandedCards] = useState({});
- const [hoveredCard, setHoveredCard] = useState(null);
- const [page, setPage] = useState(0);
-
- const startIndex = page * CARDS_PER_PAGE;
- const endIndex = startIndex + CARDS_PER_PAGE;
- const visibleServices = servicesData.slice(startIndex, endIndex);
- const totalPages = Math.ceil(servicesData.length / CARDS_PER_PAGE);
-
- const toggleCard = (cardId) => {
- setExpandedCards(prev => ({
- ...prev,
- [cardId]: !prev[cardId]
- }));
- };
-
- const toggleAllCards = () => {
- const allExpanded = Object.values(expandedCards).every(Boolean);
- const newState = {};
- visibleServices.forEach(service => {
- newState[service.id] = !allExpanded;
- });
- setExpandedCards(newState);
- };
-
- const handleNextPage = () => {
- const newExpandedState = {};
- visibleServices.forEach(service => {
- newExpandedState[service.id] = false;
- });
- setExpandedCards(newExpandedState);
- setPage((prev) => (prev + 1) % totalPages);
- };
-
- const handlePrevPage = () => {
- const newExpandedState = {};
- visibleServices.forEach(service => {
- newExpandedState[service.id] = false;
- });
- setExpandedCards(newExpandedState);
- setPage((prev) => (prev - 1 + totalPages) % totalPages);
- };
-
- useEffect(() => {
- const newExpandedState = {};
- visibleServices.forEach(service => {
- newExpandedState[service.id] = expandedCards[service.id] || false;
- });
- setExpandedCards(newExpandedState);
- }, [page]);
-
- const openPdfPresentation = () => {
- const pdfUrl = `${window.location.origin}/trader-safe.pdf`;
- window.open(pdfUrl, "_blank", "noopener,noreferrer");
- };
-
- const openPlatformLink = () => {
- const platformUrl = "http://45.93.137.91/";
- window.open(platformUrl, "_blank", "noopener,noreferrer");
- };
-
- if (!ready) return (
-
- );
-
return (
- <>
-
-
-
-
-
-
-
-
- {t('tradesafe.services.title')}
-
-
-
- {t('tradesafe.subtitle')}
-
-
-
- {Object.values(expandedCards).every(Boolean) ? (
- <>
-
- {t('tradesafe.buttons.collapseAll')}
- >
- ) : (
- <>
-
- {t('tradesafe.buttons.showDetails')}
- >
- )}
-
-
-
-
-
-
-
- {visibleServices.map((service, index) => {
- const isExpanded = expandedCards[service.id] || false;
- const isHovered = hoveredCard === service.id;
- return (
- setHoveredCard(service.id)}
- onHoverEnd={() => setHoveredCard(null)}
- onClick={() => toggleCard(service.id)}
- className={`relative cursor-pointer transition-all duration-300 ease-in-out p-6 rounded-2xl shadow-lg backdrop-blur-sm bg-white/90 border-2 ${
- isExpanded
- ? 'border-[#3c5ee3] shadow-xl'
- : 'border-white/20 hover:border-[#3c5ee3]/30'
- }`}
- >
-
-
-
-
- {service.icon}
-
-
-
-
-
-
-
- {service.title}
-
-
- {service.description}
-
-
- {isExpanded && (
-
-
-
- {service.details}
-
-
- {Array.isArray(service.features) && service.features.map((feature, idx) => (
-
- {feature}
-
- ))}
-
-
-
- )}
-
-
- {!isExpanded && isHovered && (
-
-
-
- {service.details.split(' - ')[0]}
-
-
- {Array.isArray(service.features) && service.features.slice(0, 2).map((feature, idx) => (
-
- {feature}
-
- ))}
-
-
-
- )}
-
-
-
- {isHovered && !isExpanded && (
-
- )}
- {isExpanded && (
-
- )}
-
- );
- })}
-
-
-
-
-
-
-
- {Array.from({ length: totalPages }).map((_, idx) => (
- {
- const newExpandedState = {};
- visibleServices.forEach(service => {
- newExpandedState[service.id] = false;
- });
- setExpandedCards(newExpandedState);
- setPage(idx);
- }}
- className={`w-10 h-10 rounded-full flex items-center justify-center font-medium transition-all ${
- page === idx
- ? 'bg-gradient-to-r from-[#3c5ee3] to-[#2ecc71] text-white shadow-lg scale-110'
- : 'bg-white/80 text-gray-600 hover:bg-white'
- }`}
- >
- {idx + 1}
-
- ))}
-
-
-
-
-
-
-
- {t('tradesafe.buttons.page', { current: page + 1, total: totalPages })}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ {features.map((feature) => (
+
- {t('tradesafe.reasons.title')}
-
-
-
- {reasonsToChooseUs.map((reason, index) => (
-
-
-
- {reason.icon}
-
-
+
+
+
+
+
+ {feature.icon}
+
-
- {reason.text}
+
+ {feature.title}
-
- {reason.description}
+
+ {feature.description}
-
-
-
- ))}
-
-
-
-
-
-
- {t('tradesafe.reasons.cta.title')}
-
-
- {t('tradesafe.reasons.cta.subtitle')}
-
-
-
-
- {t('tradesafe.buttons.startNow')}
-
-
-
- {t('tradesafe.buttons.viewPresentation')}
-
-
+ ))}
-
-
- >
+
+
+
+
+
+
+
+ خلاصة أعمالنا
+
+
+
+
+ خدماتنا
+
+
+
+
+ خبرات تراكمية واسعة في تنفيذ المشاريع الصناعية والإنشائية
+
+
+
+
+ تنفيذ مشاريع متكاملة مع الشركاء بأعلى معايير الجودة والسلامة
+
+
+
+
+
+
);
};
-export default Services;
+export default Services;
\ No newline at end of file