Spaces:
Running
Running
اريد تطبيق محاسبي ،، على ان يمكن التحكم في حجم العرض في الشاشة - Initial Deployment
f988df3 verified Download index.html from alkhteebosama/osama: direct link, hf CLI and curl.
- Browser
- Download file 25.1 kB
-
https://huggingface.co/spaces/alkhteebosama/osama/resolve/main/index.html
- Command line
-
hf download hf://spaces/alkhteebosama/osama/index.html
-
curl -L -o index.html https://huggingface.co/spaces/alkhteebosama/osama/resolve/main/index.html
25.1 kB
| <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> | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .sidebar.collapsed { | |
| width: 70px; | |
| } | |
| .sidebar.collapsed .sidebar-text { | |
| display: none; | |
| } | |
| .sidebar.collapsed .logo-text { | |
| display: none; | |
| } | |
| .sidebar.collapsed .menu-item { | |
| justify-content: center; | |
| } | |
| .main-content { | |
| transition: all 0.3s ease; | |
| } | |
| .main-content.expanded { | |
| margin-right: 70px; | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| position: fixed; | |
| z-index: 50; | |
| height: 100vh; | |
| transform: translateX(0); | |
| } | |
| .sidebar.collapsed { | |
| transform: translateX(-100%); | |
| } | |
| .main-content.expanded { | |
| margin-right: 0; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- الشريط الجانبي --> | |
| <div id="sidebar" class="sidebar bg-blue-800 text-white w-64 flex flex-col"> | |
| <!-- رأس الشريط الجانبي --> | |
| <div class="p-4 flex items-center justify-between border-b border-blue-700"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-calculator text-2xl"></i> | |
| <span class="logo-text mr-2 text-xl font-bold">المحاسبة الذكية</span> | |
| </div> | |
| <button id="toggleSidebar" class="text-white focus:outline-none"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| </div> | |
| <!-- قائمة التنقل --> | |
| <nav class="flex-1 overflow-y-auto"> | |
| <div class="p-4"> | |
| <div class="mb-6"> | |
| <h3 class="sidebar-text text-blue-300 uppercase text-xs font-semibold mb-3">القائمة الرئيسية</h3> | |
| <ul> | |
| <li class="mb-2"> | |
| <a href="#" class="menu-item flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-home ml-2"></i> | |
| <span class="sidebar-text">الرئيسية</span> | |
| </a> | |
| </li> | |
| <li class="mb-2"> | |
| <a href="#" class="menu-item flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-wallet ml-2"></i> | |
| <span class="sidebar-text">المعاملات</span> | |
| </a> | |
| </li> | |
| <li class="mb-2"> | |
| <a href="#" class="menu-item flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-chart-line ml-2"></i> | |
| <span class="sidebar-text">التقارير</span> | |
| </a> | |
| </li> | |
| <li class="mb-2"> | |
| <a href="#" class="menu-item flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-users ml-2"></i> | |
| <span class="sidebar-text">العملاء</span> | |
| </a> | |
| </li> | |
| <li class="mb-2"> | |
| <a href="#" class="menu-item flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-boxes ml-2"></i> | |
| <span class="sidebar-text">المخزون</span> | |
| </a> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="sidebar-text text-blue-300 uppercase text-xs font-semibold mb-3">الإعدادات</h3> | |
| <ul> | |
| <li class="mb-2"> | |
| <a href="#" class="menu-item flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-cog ml-2"></i> | |
| <span class="sidebar-text">الإعدادات</span> | |
| </a> | |
| </li> | |
| <li class="mb-2"> | |
| <a href="#" class="menu-item flex items-center p-2 rounded hover:bg-blue-700"> | |
| <i class="fas fa-user-shield ml-2"></i> | |
| <span class="sidebar-text">المستخدمون</span> | |
| </a> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- تذييل الشريط الجانبي --> | |
| <div class="p-4 border-t border-blue-700"> | |
| <div class="flex items-center"> | |
| <img src="https://via.placeholder.com/40" alt="صورة المستخدم" class="rounded-full"> | |
| <div class="sidebar-text mr-3"> | |
| <p class="font-semibold">محمد أحمد</p> | |
| <p class="text-xs text-blue-300">مدير النظام</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- المحتوى الرئيسي --> | |
| <div id="mainContent" class="main-content flex-1 overflow-auto"> | |
| <!-- شريط الأدوات العلوي --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="flex items-center justify-between p-4"> | |
| <div class="flex items-center"> | |
| <button id="mobileToggle" class="mr-4 text-gray-600 focus:outline-none md:hidden"> | |
| <i class="fas fa-bars text-xl"></i> | |
| </button> | |
| <h1 class="text-xl font-bold text-gray-800">لوحة التحكم</h1> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="relative mr-4"> | |
| <input type="text" placeholder="بحث..." class="pl-10 pr-4 py-2 rounded-full border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"> | |
| <i class="fas fa-search absolute right-3 top-3 text-gray-400"></i> | |
| </div> | |
| <button class="text-gray-600 mr-4"> | |
| <i class="fas fa-bell text-xl"></i> | |
| </button> | |
| <button class="text-gray-600"> | |
| <i class="fas fa-question-circle text-xl"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- المحتوى الفعلي --> | |
| <main class="p-6"> | |
| <!-- بطاقات الإحصائيات --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6"> | |
| <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">25,000 ر.س</h3> | |
| <p class="text-green-500 text-sm mt-1"><i class="fas fa-arrow-up mr-1"></i> 12% عن الشهر الماضي</p> | |
| </div> | |
| <div class="bg-blue-100 p-3 rounded-full"> | |
| <i class="fas fa-dollar-sign text-blue-600 text-xl"></i> | |
| </div> | |
| </div> | |
| </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">15,000 ر.س</h3> | |
| <p class="text-red-500 text-sm mt-1"><i class="fas fa-arrow-down mr-1"></i> 8% عن الشهر الماضي</p> | |
| </div> | |
| <div class="bg-red-100 p-3 rounded-full"> | |
| <i class="fas fa-money-bill-wave text-red-600 text-xl"></i> | |
| </div> | |
| </div> | |
| </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">10,000 ر.س</h3> | |
| <p class="text-green-500 text-sm mt-1"><i class="fas fa-arrow-up mr-1"></i> 20% عن الشهر الماضي</p> | |
| </div> | |
| <div class="bg-green-100 p-3 rounded-full"> | |
| <i class="fas fa-chart-pie text-green-600 text-xl"></i> | |
| </div> | |
| </div> | |
| </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">124</h3> | |
| <p class="text-green-500 text-sm mt-1"><i class="fas fa-arrow-up mr-1"></i> 15 عميل جديد</p> | |
| </div> | |
| <div class="bg-purple-100 p-3 rounded-full"> | |
| <i class="fas fa-users text-purple-600 text-xl"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- الرسوم البيانية والمعاملات الحديثة --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> | |
| <div class="bg-white rounded-lg shadow p-6 lg:col-span-2"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h2 class="text-lg font-semibold">الإيرادات والمصروفات</h2> | |
| <div class="flex"> | |
| <button class="px-3 py-1 text-sm bg-blue-100 text-blue-600 rounded-l-full">شهري</button> | |
| <button class="px-3 py-1 text-sm text-gray-600 border-t border-b border-gray-300">سنوي</button> | |
| <button class="px-3 py-1 text-sm text-gray-600 bg-gray-100 rounded-r-full">إجمالي</button> | |
| </div> | |
| </div> | |
| <div class="h-64"> | |
| <!-- هنا سيتم وضع الرسم البياني --> | |
| <div class="flex items-center justify-center h-full bg-gray-100 rounded"> | |
| <p class="text-gray-500">الرسم البياني للإيرادات والمصروفات</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h2 class="text-lg font-semibold mb-4">آخر المعاملات</h2> | |
| <div class="space-y-4"> | |
| <div class="flex items-center justify-between p-3 hover:bg-gray-50 rounded"> | |
| <div class="flex items-center"> | |
| <div class="bg-blue-100 p-2 rounded-full mr-3"> | |
| <i class="fas fa-receipt text-blue-600"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">فاتورة #1001</p> | |
| <p class="text-sm text-gray-500">12 مايو 2023</p> | |
| </div> | |
| </div> | |
| <span class="font-semibold text-green-600">1,200 ر.س</span> | |
| </div> | |
| <div class="flex items-center justify-between p-3 hover:bg-gray-50 rounded"> | |
| <div class="flex items-center"> | |
| <div class="bg-red-100 p-2 rounded-full mr-3"> | |
| <i class="fas fa-file-invoice-dollar text-red-600"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">فاتورة #1000</p> | |
| <p class="text-sm text-gray-500">10 مايو 2023</p> | |
| </div> | |
| </div> | |
| <span class="font-semibold text-green-600">800 ر.س</span> | |
| </div> | |
| <div class="flex items-center justify-between p-3 hover:bg-gray-50 rounded"> | |
| <div class="flex items-center"> | |
| <div class="bg-yellow-100 p-2 rounded-full mr-3"> | |
| <i class="fas fa-money-bill-alt text-yellow-600"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">مصروفات</p> | |
| <p class="text-sm text-gray-500">8 مايو 2023</p> | |
| </div> | |
| </div> | |
| <span class="font-semibold text-red-600">-500 ر.س</span> | |
| </div> | |
| <div class="flex items-center justify-between p-3 hover:bg-gray-50 rounded"> | |
| <div class="flex items-center"> | |
| <div class="bg-green-100 p-2 rounded-full mr-3"> | |
| <i class="fas fa-hand-holding-usd text-green-600"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">فاتورة #999</p> | |
| <p class="text-sm text-gray-500">5 مايو 2023</p> | |
| </div> | |
| </div> | |
| <span class="font-semibold text-green-600">1,500 ر.س</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- الجداول --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden mb-6"> | |
| <div class="p-6"> | |
| <h2 class="text-lg font-semibold mb-4">آخر الفواتير</h2> | |
| <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> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#1001</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">شركة التقنية المحدودة</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12/05/2023</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1,200 ر.س</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold 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 mr-3"><i class="fas fa-eye"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-print"></i></button> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#1000</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">أحمد محمد</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">10/05/2023</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">800 ر.س</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold 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 mr-3"><i class="fas fa-eye"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-print"></i></button> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#999</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">شركة النجاح</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">05/05/2023</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1,500 ر.س</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-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 mr-3"><i class="fas fa-eye"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-print"></i></button> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#998</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">سالم عبدالله</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">03/05/2023</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2,300 ر.س</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold 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 mr-3"><i class="fas fa-eye"></i></button> | |
| <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-print"></i></button> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| // التحكم في الشريط الجانبي | |
| const toggleSidebar = document.getElementById('toggleSidebar'); | |
| const mobileToggle = document.getElementById('mobileToggle'); | |
| const sidebar = document.getElementById('sidebar'); | |
| const mainContent = document.getElementById('mainContent'); | |
| toggleSidebar.addEventListener('click', () => { | |
| sidebar.classList.toggle('collapsed'); | |
| mainContent.classList.toggle('expanded'); | |
| }); | |
| mobileToggle.addEventListener('click', () => { | |
| sidebar.classList.toggle('collapsed'); | |
| }); | |
| // تغيير حجم النافذة | |
| window.addEventListener('resize', () => { | |
| if (window.innerWidth > 768) { | |
| sidebar.classList.remove('collapsed'); | |
| mainContent.classList.remove('expanded'); | |
| } | |
| }); | |
| // محاكاة بيانات الرسم البياني (يمكن استبدالها بمكتبة رسم بياني حقيقية) | |
| function simulateChart() { | |
| console.log("سيتم هنا تحميل بيانات الرسم البياني"); | |
| } | |
| // تشغيل المحاكاة عند تحميل الصفحة | |
| window.addEventListener('load', simulateChart); | |
| </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=alkhteebosama/osama" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |