my-store / index.html
muflhi001's picture
undefined - Initial Deployment
b9f66b0 verified
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>نظام إدارة المتاجر الإلكترونية</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');
body {
font-family: 'Tajawal', sans-serif;
}
.sidebar {
transition: all 0.3s ease;
}
.sidebar.collapsed {
width: 80px;
}
.sidebar.collapsed .sidebar-text {
display: none;
}
.main-content {
transition: all 0.3s ease;
}
.main-content.expanded {
margin-right: 80px;
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body class="bg-gray-50 text-gray-800">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-blue-800 text-white w-64 flex flex-col">
<!-- Logo -->
<div class="p-4 flex items-center justify-between border-b border-blue-700">
<div class="flex items-center">
<i class="fas fa-store text-2xl ml-2"></i>
<span class="sidebar-text text-xl font-bold">متجرنا الإلكتروني</span>
</div>
<button id="toggleSidebar" class="text-white focus:outline-none">
<i class="fas fa-bars"></i>
</button>
</div>
<!-- User Profile -->
<div class="p-4 flex items-center border-b border-blue-700">
<img src="https://via.placeholder.com/40" alt="صورة المستخدم" class="rounded-full w-10 h-10">
<div class="sidebar-text mr-3">
<p class="font-medium">محمد أحمد</p>
<p class="text-xs text-blue-200">مدير المتجر</p>
</div>
</div>
<!-- Navigation -->
<nav class="flex-1 overflow-y-auto">
<ul>
<li>
<a href="#" class="flex items-center p-4 hover:bg-blue-700 text-blue-100">
<i class="fas fa-tachometer-alt ml-2"></i>
<span class="sidebar-text">لوحة التحكم</span>
</a>
</li>
<li>
<a href="#" class="flex items-center p-4 hover:bg-blue-700 bg-blue-700 text-white">
<i class="fas fa-box-open ml-2"></i>
<span class="sidebar-text">المنتجات</span>
</a>
</li>
<li>
<a href="#" class="flex items-center p-4 hover:bg-blue-700 text-blue-100">
<i class="fas fa-shopping-cart ml-2"></i>
<span class="sidebar-text">الطلبات</span>
<span class="sidebar-text bg-blue-600 text-xs px-2 py-1 rounded-full mr-auto">15</span>
</a>
</li>
<li>
<a href="#" class="flex items-center p-4 hover:bg-blue-700 text-blue-100">
<i class="fas fa-users ml-2"></i>
<span class="sidebar-text">العملاء</span>
</a>
</li>
<li>
<a href="#" class="flex items-center p-4 hover:bg-blue-700 text-blue-100">
<i class="fas fa-chart-line ml-2"></i>
<span class="sidebar-text">التقارير</span>
</a>
</li>
<li>
<a href="#" class="flex items-center p-4 hover:bg-blue-700 text-blue-100">
<i class="fas fa-tags ml-2"></i>
<span class="sidebar-text">التخفيضات</span>
</a>
</li>
<li>
<a href="#" class="flex items-center p-4 hover:bg-blue-700 text-blue-100">
<i class="fas fa-cog ml-2"></i>
<span class="sidebar-text">الإعدادات</span>
</a>
</li>
</ul>
</nav>
<!-- Logout -->
<div class="p-4 border-t border-blue-700">
<a href="#" class="flex items-center text-blue-200 hover:text-white">
<i class="fas fa-sign-out-alt ml-2"></i>
<span class="sidebar-text">تسجيل الخروج</span>
</a>
</div>
</div>
<!-- Main Content -->
<div class="main-content flex-1 overflow-auto">
<!-- Header -->
<header class="bg-white shadow-sm p-4 flex items-center justify-between">
<h1 class="text-2xl font-bold text-gray-800">إدارة المنتجات</h1>
<div class="flex items-center space-x-4 space-x-reverse">
<div class="relative">
<input type="text" placeholder="بحث..." class="border border-gray-300 rounded-lg py-2 px-4 pr-10 focus:outline-none focus:ring-2 focus:ring-blue-500">
<i class="fas fa-search absolute right-3 top-3 text-gray-400"></i>
</div>
<div class="relative">
<button class="text-gray-600 hover:text-gray-800 focus:outline-none">
<i class="fas fa-bell text-xl"></i>
<span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full w-5 h-5 flex items-center justify-center">3</span>
</button>
</div>
</div>
</header>
<!-- Content -->
<main class="p-6">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">إجمالي المنتجات</p>
<h3 class="text-2xl font-bold">245</h3>
</div>
<div class="bg-blue-100 text-blue-600 p-3 rounded-full">
<i class="fas fa-box-open text-xl"></i>
</div>
</div>
<p class="text-green-500 text-sm mt-2"><i class="fas fa-arrow-up ml-1"></i> 12% عن الشهر الماضي</p>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">الطلبات اليوم</p>
<h3 class="text-2xl font-bold">32</h3>
</div>
<div class="bg-green-100 text-green-600 p-3 rounded-full">
<i class="fas fa-shopping-cart text-xl"></i>
</div>
</div>
<p class="text-green-500 text-sm mt-2"><i class="fas fa-arrow-up ml-1"></i> 8% عن الأمس</p>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">إجمالي المبيعات</p>
<h3 class="text-2xl font-bold">24,500 ر.س</h3>
</div>
<div class="bg-purple-100 text-purple-600 p-3 rounded-full">
<i class="fas fa-money-bill-wave text-xl"></i>
</div>
</div>
<p class="text-red-500 text-sm mt-2"><i class="fas fa-arrow-down ml-1"></i> 5% عن الشهر الماضي</p>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">عملاء جدد</p>
<h3 class="text-2xl font-bold">18</h3>
</div>
<div class="bg-yellow-100 text-yellow-600 p-3 rounded-full">
<i class="fas fa-user-plus text-xl"></i>
</div>
</div>
<p class="text-green-500 text-sm mt-2"><i class="fas fa-arrow-up ml-1"></i> 20% عن الأسبوع الماضي</p>
</div>
</div>
<!-- Products Section -->
<div class="bg-white rounded-lg shadow overflow-hidden mb-8">
<div class="p-6 border-b border-gray-200 flex items-center justify-between">
<h2 class="text-xl font-bold">قائمة المنتجات</h2>
<button class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-lg flex items-center">
<i class="fas fa-plus ml-2"></i>
<span>إضافة منتج جديد</span>
</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">الصورة</th>
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">اسم المنتج</th>
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">السعر</th>
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">الكمية</th>
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">التصنيف</th>
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">الحالة</th>
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">الإجراءات</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<img src="https://via.placeholder.com/40" alt="صورة المنتج" class="w-10 h-10 rounded">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-900">هاتف سامسونج جالكسي S22</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">3,499 ر.س</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">45</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">إلكترونيات</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">متوفر</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash-alt"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<img src="https://via.placeholder.com/40" alt="صورة المنتج" class="w-10 h-10 rounded">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-900">حذاء رياضي نايكي</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">499 ر.س</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">32</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-purple-100 text-purple-800">أحذية</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">متوفر</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash-alt"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<img src="https://via.placeholder.com/40" alt="صورة المنتج" class="w-10 h-10 rounded">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-900">ساعة ذكية هواوي</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">799 ر.س</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">0</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">إلكترونيات</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">غير متوفر</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash-alt"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<img src="https://via.placeholder.com/40" alt="صورة المنتج" class="w-10 h-10 rounded">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-900">حقيبة ظهر</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">199 ر.س</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">15</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">أكسسوارات</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">متوفر</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash-alt"></i></button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between">
<div class="text-sm text-gray-500">
عرض <span class="font-medium">1</span> إلى <span class="font-medium">4</span> من <span class="font-medium">245</span> منتج
</div>
<div class="flex space-x-2 space-x-reverse">
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
السابق
</button>
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-white bg-blue-600 hover:bg-blue-700">
1
</button>
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
2
</button>
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
3
</button>
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
التالي
</button>
</div>
</div>
</div>
<!-- Recent Orders -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-6 border-b border-gray-200">
<h2 class="text-xl font-bold">أحدث الطلبات</h2>
</div>
<div class="divide-y divide-gray-200">
<div class="p-4 flex items-center justify-between hover:bg-gray-50">
<div class="flex items-center">
<div class="bg-blue-100 text-blue-600 p-3 rounded-full">
<i class="fas fa-shopping-cart"></i>
</div>
<div class="mr-4">
<p class="font-medium">طلب #ORD-2023-0012</p>
<p class="text-sm text-gray-500">محمد علي - 12/05/2023</p>
</div>
</div>
<div>
<span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">قيد المعالجة</span>
<span class="text-sm font-medium">1,250 ر.س</span>
</div>
</div>
<div class="p-4 flex items-center justify-between hover:bg-gray-50">
<div class="flex items-center">
<div class="bg-green-100 text-green-600 p-3 rounded-full">
<i class="fas fa-shopping-cart"></i>
</div>
<div class="mr-4">
<p class="font-medium">طلب #ORD-2023-0011</p>
<p class="text-sm text-gray-500">أحمد محمد - 11/05/2023</p>
</div>
</div>
<div>
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">مكتمل</span>
<span class="text-sm font-medium">899 ر.س</span>
</div>
</div>
<div class="p-4 flex items-center justify-between hover:bg-gray-50">
<div class="flex items-center">
<div class="bg-purple-100 text-purple-600 p-3 rounded-full">
<i class="fas fa-shopping-cart"></i>
</div>
<div class="mr-4">
<p class="font-medium">طلب #ORD-2023-0010</p>
<p class="text-sm text-gray-500">سارة خالد - 10/05/2023</p>
</div>
</div>
<div>
<span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">تم الشحن</span>
<span class="text-sm font-medium">2,450 ر.س</span>
</div>
</div>
</div>
<div class="p-4 border-t border-gray-200 text-center">
<a href="#" class="text-blue-600 hover:text-blue-800 font-medium">عرض جميع الطلبات</a>
</div>
</div>
</main>
</div>
</div>
<!-- AI Assistant -->
<div class="fixed bottom-6 left-6 z-50">
<button id="toggleAssistant" class="bg-blue-600 text-white w-14 h-14 rounded-full shadow-lg hover:bg-blue-700 transition-all flex items-center justify-center">
<i class="fas fa-robot text-2xl"></i>
</button>
<div id="assistantContainer" class="hidden bg-white rounded-lg shadow-xl w-80 h-96 mt-2 overflow-hidden flex flex-col">
<div class="bg-blue-600 text-white p-3 flex items-center justify-between">
<h3 class="font-bold">مساعد المتجر الذكي</h3>
<button id="closeAssistant" class="text-white hover:text-blue-200">
<i class="fas fa-times"></i>
</button>
</div>
<div id="assistantMessages" class="flex-1 p-4 overflow-y-auto bg-gray-50">
<div class="mb-4">
<div class="bg-blue-100 text-gray-800 p-3 rounded-lg max-w-xs">
مرحبا! كيف يمكنني مساعدتك اليوم؟
</div>
</div>
</div>
<div class="p-3 border-t border-gray-200">
<div class="flex items-center">
<input type="text" id="assistantInput" placeholder="اكتب رسالتك..." class="flex-1 border border-gray-300 rounded-l-lg py-2 px-3 focus:outline-none focus:ring-1 focus:ring-blue-500">
<button id="sendMessage" class="bg-blue-600 text-white py-2 px-4 rounded-r-lg hover:bg-blue-700">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
</div>
<script>
// Toggle sidebar
document.getElementById('toggleSidebar').addEventListener('click', function() {
const sidebar = document.querySelector('.sidebar');
const mainContent = document.querySelector('.main-content');
sidebar.classList.toggle('collapsed');
mainContent.classList.toggle('expanded');
});
// Responsive adjustments
function handleResize() {
const sidebar = document.querySelector('.sidebar');
const mainContent = document.querySelector('.main-content');
if (window.innerWidth < 768) {
sidebar.classList.add('collapsed');
mainContent.classList.add('expanded');
} else {
sidebar.classList.remove('collapsed');
mainContent.classList.remove('expanded');
}
}
window.addEventListener('resize', handleResize);
handleResize(); // Run on initial load
// AI Assistant functionality
const toggleAssistant = document.getElementById('toggleAssistant');
const closeAssistant = document.getElementById('closeAssistant');
const assistantContainer = document.getElementById('assistantContainer');
const assistantInput = document.getElementById('assistantInput');
const sendMessage = document.getElementById('sendMessage');
const assistantMessages = document.getElementById('assistantMessages');
toggleAssistant.addEventListener('click', () => {
assistantContainer.classList.toggle('hidden');
});
closeAssistant.addEventListener('click', () => {
assistantContainer.classList.add('hidden');
});
function addMessage(message, isUser = false) {
const messageDiv = document.createElement('div');
messageDiv.className = 'mb-4 flex ' + (isUser ? 'justify-end' : 'justify-start');
const contentDiv = document.createElement('div');
contentDiv.className = isUser
? 'bg-blue-600 text-white p-3 rounded-lg max-w-xs'
: 'bg-blue-100 text-gray-800 p-3 rounded-lg max-w-xs';
contentDiv.textContent = message;
messageDiv.appendChild(contentDiv);
assistantMessages.appendChild(messageDiv);
assistantMessages.scrollTop = assistantMessages.scrollHeight;
}
sendMessage.addEventListener('click', () => {
const message = assistantInput.value.trim();
if (message) {
addMessage(message, true);
assistantInput.value = '';
// Simulate AI response after a short delay
setTimeout(() => {
const responses = [
"لقد تلقيت طلبك وسأساعدك في ذلك",
"هل يمكنك توضيح سؤالك أكثر؟",
"لدي هذه المعلومات المتاحة لك...",
"سأقوم بالبحث عن ذلك من أجلك"
];
const randomResponse = responses[Math.floor(Math.random() * responses.length)];
addMessage(randomResponse);
}, 1000);
}
});
assistantInput.addEventListener('keypress', (e) => {
if (e.key === 'Enter') {
sendMessage.click();
}
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=muflhi001/my-store" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>