Spaces:
Running
Running
Download index.html from Moha5m/sinf-store: direct link, hf CLI and curl.
- Browser
- Download file 16.7 kB
-
https://huggingface.co/spaces/Moha5m/sinf-store/resolve/main/index.html
- Command line
-
hf download hf://spaces/Moha5m/sinf-store/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Moha5m/sinf-store/resolve/main/index.html
16.7 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"> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: '#F97316', | |
| secondary: '#EA580C', | |
| dark: '#1E293B', | |
| light: '#F8FAFC' | |
| }, | |
| fontFamily: { | |
| 'tajawal': ['Tajawal', 'sans-serif'] | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap'); | |
| body { | |
| font-family: 'Tajawal', sans-serif; | |
| background-color: #F8FAFC; | |
| } | |
| .btn-primary { | |
| background-color: #F97316; | |
| transition: all 0.3s ease; | |
| box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3); | |
| } | |
| .btn-primary:hover { | |
| background-color: #EA580C; | |
| transform: translateY(-2px); | |
| box-shadow: 0 6px 8px rgba(249, 115, 22, 0.4); | |
| } | |
| .btn-primary:active { | |
| transform: translateY(0); | |
| } | |
| .input-field { | |
| transition: all 0.3s ease; | |
| border: 1px solid #E2E8F0; | |
| } | |
| .input-field:focus { | |
| border-color: #F97316; | |
| box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2); | |
| } | |
| .social-btn { | |
| transition: all 0.3s ease; | |
| } | |
| .social-btn:hover { | |
| transform: translateY(-2px); | |
| } | |
| .floating-label { | |
| transition: all 0.2s ease; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| } | |
| .input-field:focus + .floating-label, | |
| .input-field:not(:placeholder-shown) + .floating-label { | |
| top: 0; | |
| background-color: white; | |
| padding: 0 0.5rem; | |
| font-size: 0.75rem; | |
| color: #F97316; | |
| } | |
| .logo-text { | |
| text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); | |
| } | |
| .construction-bg { | |
| background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80'); | |
| background-size: cover; | |
| background-position: center; | |
| position: relative; | |
| } | |
| .construction-bg::after { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: rgba(31, 41, 55, 0.7); | |
| } | |
| .animate-bounce-slow { | |
| animation: bounce-slow 2s infinite; | |
| } | |
| @keyframes bounce-slow { | |
| 0%, 100% { | |
| transform: translateY(0); | |
| } | |
| 50% { | |
| transform: translateY(-10px); | |
| } | |
| } | |
| .tooltip:hover .tooltip-text { | |
| visibility: visible; | |
| opacity: 1; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <div class="min-h-screen flex flex-col lg:flex-row"> | |
| <!-- الجانب الأيسر (الصورة) --> | |
| <div class="lg:w-1/2 construction-bg text-white flex items-center justify-center p-12 relative z-10 hidden lg:flex"> | |
| <div class="max-w-md z-20"> | |
| <h1 class="text-4xl font-bold mb-6">مرحباً بك في <span class="text-primary">صنف</span></h1> | |
| <p class="text-lg mb-8">المتجر الرائد في أدوات ومواد البناء. نوفر لك كل ما تحتاجه لبناء أحلامك.</p> | |
| <div class="flex items-center space-x-4 space-x-reverse mb-6"> | |
| <div class="flex items-center justify-center w-12 h-12 bg-primary rounded-full animate-bounce-slow"> | |
| <i class="fas fa-hammer text-xl"></i> | |
| </div> | |
| <div class="flex items-center justify-center w-12 h-12 bg-primary rounded-full animate-bounce-slow" style="animation-delay: 0.2s"> | |
| <i class="fas fa-tools text-xl"></i> | |
| </div> | |
| <div class="flex items-center justify-center w-12 h-12 bg-primary rounded-full animate-bounce-slow" style="animation-delay: 0.4s"> | |
| <i class="fas fa-hard-hat text-xl"></i> | |
| </div> | |
| </div> | |
| <div class="bg-white bg-opacity-20 backdrop-blur-sm rounded-lg p-6 border border-white border-opacity-30"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 bg-primary rounded-full flex items-center justify-center mr-3"> | |
| <i class="fas fa-quote-left"></i> | |
| </div> | |
| <p class="text-sm italic">"مع صنف، وجدت كل ما أحتاجه لبناء منزلي بجودة عالية وأسعار مناسبة."</p> | |
| </div> | |
| <div class="flex items-center"> | |
| <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="عميل" class="w-10 h-10 rounded-full mr-3"> | |
| <div> | |
| <p class="font-bold">أحمد محمد</p> | |
| <p class="text-sm text-gray-200">مقاول</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- الجانب الأيمن (النموذج) --> | |
| <div class="lg:w-1/2 flex items-center justify-center p-8"> | |
| <div class="w-full max-w-md"> | |
| <div class="flex justify-center mb-8 lg:hidden"> | |
| <div class="flex items-center"> | |
| <div class="w-12 h-12 bg-primary rounded-lg flex items-center justify-center mr-3"> | |
| <i class="fas fa-hard-hat text-white text-2xl"></i> | |
| </div> | |
| <h1 class="text-3xl font-bold text-dark logo-text">صنف</h1> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-xl p-8 border border-gray-100"> | |
| <div class="text-center mb-8"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-2">تسجيل الدخول</h2> | |
| <p class="text-gray-600">أدخل بياناتك للوصول إلى حسابك</p> | |
| </div> | |
| <form id="loginForm" class="space-y-6"> | |
| <div class="relative"> | |
| <input type="email" id="email" class="w-full px-4 py-3 rounded-lg input-field pr-12" placeholder=" " required> | |
| <label for="email" class="floating-label right-4 text-gray-500">البريد الإلكتروني</label> | |
| <div class="absolute left-4 top-1/2 transform -translate-y-1/2"> | |
| <i class="fas fa-envelope text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div class="relative"> | |
| <input type="password" id="password" class="w-full px-4 py-3 rounded-lg input-field pr-12" placeholder=" " required> | |
| <label for="password" class="floating-label right-4 text-gray-500">كلمة المرور</label> | |
| <div class="absolute left-4 top-1/2 transform -translate-y-1/2"> | |
| <i class="fas fa-lock text-gray-400"></i> | |
| </div> | |
| <button type="button" class="absolute left-12 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600 focus:outline-none"> | |
| <i class="far fa-eye-slash"></i> | |
| </button> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="remember" class="w-4 h-4 text-primary rounded border-gray-300 focus:ring-primary"> | |
| <label for="remember" class="mr-2 text-sm text-gray-600">تذكرني</label> | |
| </div> | |
| <a href="#" class="text-sm text-primary hover:text-secondary font-medium">نسيت كلمة المرور؟</a> | |
| </div> | |
| <button type="submit" class="w-full py-3 px-4 rounded-lg btn-primary text-white font-bold flex items-center justify-center"> | |
| <span>تسجيل الدخول</span> | |
| <i class="fas fa-arrow-left mr-2"></i> | |
| </button> | |
| <div class="relative flex items-center justify-center"> | |
| <div class="flex-grow border-t border-gray-200"></div> | |
| <span class="flex-shrink mx-4 text-gray-400">أو</span> | |
| <div class="flex-grow border-t border-gray-200"></div> | |
| </div> | |
| <div class="grid grid-cols-2 gap-4"> | |
| <a href="#" class="social-btn flex items-center justify-center py-2 px-4 border border-gray-200 rounded-lg hover:bg-gray-50"> | |
| <i class="fab fa-google text-red-500 mr-2"></i> | |
| <span class="text-sm">جوجل</span> | |
| </a> | |
| <a href="#" class="social-btn flex items-center justify-center py-2 px-4 border border-gray-200 rounded-lg hover:bg-gray-50"> | |
| <i class="fab fa-apple text-gray-800 mr-2"></i> | |
| <span class="text-sm">آبل</span> | |
| </a> | |
| </div> | |
| </form> | |
| <div class="mt-6 text-center"> | |
| <p class="text-gray-600">ليس لديك حساب؟ <a href="#" class="text-primary font-medium hover:text-secondary">سجل الآن</a></p> | |
| </div> | |
| </div> | |
| <div class="mt-8 bg-white rounded-xl shadow-sm p-6 border border-gray-100"> | |
| <div class="flex items-center"> | |
| <div class="p-3 bg-orange-100 rounded-full mr-4"> | |
| <i class="fas fa-truck text-primary"></i> | |
| </div> | |
| <div> | |
| <h4 class="font-bold text-gray-800">توصيل سريع وآمن</h4> | |
| <p class="text-sm text-gray-600">نضمن وصول طلبك خلال 24-48 ساعة</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // عرض/إخفاء كلمة المرور | |
| document.querySelector('button[type="button"]').addEventListener('click', function() { | |
| const passwordInput = document.getElementById('password'); | |
| const icon = this.querySelector('i'); | |
| if (passwordInput.type === 'password') { | |
| passwordInput.type = 'text'; | |
| icon.classList.remove('fa-eye-slash'); | |
| icon.classList.add('fa-eye'); | |
| } else { | |
| passwordInput.type = 'password'; | |
| icon.classList.remove('fa-eye'); | |
| icon.classList.add('fa-eye-slash'); | |
| } | |
| }); | |
| // تحريك الأيقونات عند التركيز | |
| const inputs = document.querySelectorAll('.input-field'); | |
| inputs.forEach(input => { | |
| input.addEventListener('focus', function() { | |
| const icon = this.previousElementSibling.querySelector('i'); | |
| icon.classList.remove('text-gray-400'); | |
| icon.classList.add('text-primary'); | |
| }); | |
| input.addEventListener('blur', function() { | |
| const icon = this.previousElementSibling.querySelector('i'); | |
| icon.classList.remove('text-primary'); | |
| icon.classList.add('text-gray-400'); | |
| }); | |
| }); | |
| // معالجة تسجيل الدخول | |
| document.getElementById('loginForm').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| const email = document.getElementById('email').value; | |
| const password = document.getElementById('password').value; | |
| // هنا يمكنك إضافة منطق تسجيل الدخول الفعلي | |
| console.log('تسجيل الدخول بمعلومات:', { email, password }); | |
| // عرض رسالة نجاح (مؤقتة لأغراض العرض) | |
| const submitBtn = this.querySelector('button[type="submit"]'); | |
| const originalText = submitBtn.innerHTML; | |
| submitBtn.innerHTML = ` | |
| <svg class="animate-spin -ml-1 mr-2 h-5 w-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> | |
| <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> | |
| <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> | |
| </svg> | |
| جاري التحقق... | |
| `; | |
| submitBtn.disabled = true; | |
| setTimeout(() => { | |
| submitBtn.innerHTML = originalText; | |
| submitBtn.disabled = false; | |
| // إنشاء عنصر التنبيه | |
| const alertDiv = document.createElement('div'); | |
| alertDiv.className = 'fixed top-4 right-4 z-50'; | |
| alertDiv.innerHTML = ` | |
| <div class="bg-green-100 border-l-4 border-green-500 text-green-700 p-4 rounded-lg shadow-lg flex items-start" role="alert"> | |
| <div class="mr-3"> | |
| <i class="fas fa-check-circle text-green-500"></i> | |
| </div> | |
| <div> | |
| <p class="font-bold">تم بنجاح!</p> | |
| <p class="text-sm">تم تسجيل الدخول بنجاح، جاري التوجيه...</p> | |
| </div> | |
| <button type="button" class="mr-auto text-green-700 hover:text-green-900" onclick="this.parentElement.parentElement.remove()"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| `; | |
| document.body.appendChild(alertDiv); | |
| // إخفاء التنبيه بعد 3 ثواني | |
| setTimeout(() => { | |
| alertDiv.remove(); | |
| }, 3000); | |
| }, 2000); | |
| }); | |
| </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=Moha5m/sinf-store" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |