<script>
Browse files// تحميل 15 ثانية
let progress=0;
let bar=document.getElementById("progressBar");
let percentText=document.getElementById("percentText");
let interval=setInterval(()=>{
progress+=5;
bar.style.width=progress+"%";
percentText.textContent=progress+"%";
if(progress>=100){
clearInterval(interval);
document.getElementById("page1").classList.remove("active");
document.getElementById("page2").classList.add("active");
}
},750);
function goToPage3(){
let id=document.getElementById("userId").value.trim();
if(!id){alert("من فضلك أدخل ID");return;}
document.getElementById("page2").classList.remove("active");
document.getElementById("page3").classList.add("active");
}
function finishUpload(){
let img1=document.getElementById("img1").files.length;
let img2=document.getElementById("img2").files.length;
if(img1>0 && img2>0){
document.getElementById("page3").classList.remove("active");
document.getElementById("page1").classList.add("active");
document.getElementById("depositAlert").style.display="block";
} else {
document.getElementById("page3Msg").textContent="⚠️ يجب رفع صورتين أولاً";
}
}
</script>
</body>
</html>
- README.md +9 -5
- index.html +155 -19
|
@@ -1,10 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: undefined
|
| 3 |
+
colorFrom: yellow
|
| 4 |
+
colorTo: yellow
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
| 14 |
+
|
|
@@ -1,19 +1,155 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>The Loading Elegance</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<style>
|
| 11 |
+
.page {
|
| 12 |
+
display: none;
|
| 13 |
+
}
|
| 14 |
+
.active {
|
| 15 |
+
display: block;
|
| 16 |
+
}
|
| 17 |
+
.gradient-bg {
|
| 18 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 19 |
+
}
|
| 20 |
+
.progress-container {
|
| 21 |
+
height: 6px;
|
| 22 |
+
background-color: #e2e8f0;
|
| 23 |
+
border-radius: 3px;
|
| 24 |
+
overflow: hidden;
|
| 25 |
+
}
|
| 26 |
+
.progress-bar {
|
| 27 |
+
height: 100%;
|
| 28 |
+
background: linear-gradient(90deg, #4f46e5 0%, #a855f7 100%);
|
| 29 |
+
transition: width 0.75s ease;
|
| 30 |
+
}
|
| 31 |
+
</style>
|
| 32 |
+
</head>
|
| 33 |
+
<body class="min-h-screen font-sans antialiased text-gray-800 gradient-bg">
|
| 34 |
+
<div class="container mx-auto px-4 py-16 flex flex-col items-center justify-center min-h-screen">
|
| 35 |
+
<!-- Page 1 - Loading Screen -->
|
| 36 |
+
<div id="page1" class="page active w-full max-w-md bg-white rounded-xl shadow-2xl p-8 text-center">
|
| 37 |
+
<div class="mb-8">
|
| 38 |
+
<i data-feather="loader" class="w-16 h-16 text-indigo-600 mx-auto animate-spin"></i>
|
| 39 |
+
</div>
|
| 40 |
+
<h1 class="text-3xl font-bold text-gray-800 mb-2">Loading Your Experience</h1>
|
| 41 |
+
<p class="text-gray-600 mb-6">Please wait while we prepare everything for you</p>
|
| 42 |
+
|
| 43 |
+
<div class="progress-container w-full mb-4">
|
| 44 |
+
<div id="progressBar" class="progress-bar" style="width: 0%"></div>
|
| 45 |
+
</div>
|
| 46 |
+
<p id="percentText" class="text-sm font-medium text-indigo-600">0%</p>
|
| 47 |
+
</div>
|
| 48 |
+
|
| 49 |
+
<!-- Page 2 - ID Input -->
|
| 50 |
+
<div id="page2" class="page w-full max-w-md bg-white rounded-xl shadow-2xl p-8">
|
| 51 |
+
<div class="mb-6 text-center">
|
| 52 |
+
<i data-feather="user" class="w-12 h-12 text-indigo-600 mx-auto"></i>
|
| 53 |
+
<h2 class="text-2xl font-bold text-gray-800 mt-4">Enter Your ID</h2>
|
| 54 |
+
<p class="text-gray-600 mt-2">We need your ID to proceed</p>
|
| 55 |
+
</div>
|
| 56 |
+
|
| 57 |
+
<div class="mb-6">
|
| 58 |
+
<input id="userId" type="text" placeholder="User ID"
|
| 59 |
+
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none transition">
|
| 60 |
+
</div>
|
| 61 |
+
|
| 62 |
+
<button onclick="goToPage3()"
|
| 63 |
+
class="w-full bg-indigo-600 hover:bg-indigo-700 text-white font-medium py-3 px-4 rounded-lg transition duration-300 transform hover:scale-105">
|
| 64 |
+
Continue
|
| 65 |
+
</button>
|
| 66 |
+
</div>
|
| 67 |
+
|
| 68 |
+
<!-- Page 3 - File Upload -->
|
| 69 |
+
<div id="page3" class="page w-full max-w-md bg-white rounded-xl shadow-2xl p-8">
|
| 70 |
+
<div class="mb-6 text-center">
|
| 71 |
+
<i data-feather="upload" class="w-12 h-12 text-indigo-600 mx-auto"></i>
|
| 72 |
+
<h2 class="text-2xl font-bold text-gray-800 mt-4">Upload Documents</h2>
|
| 73 |
+
<p id="page3Msg" class="text-gray-600 mt-2">Please upload both required images</p>
|
| 74 |
+
</div>
|
| 75 |
+
|
| 76 |
+
<div class="space-y-4 mb-6">
|
| 77 |
+
<div class="border-2 border-dashed border-gray-300 rounded-lg p-6 text-center cursor-pointer hover:bg-gray-50 transition">
|
| 78 |
+
<label for="img1" class="block">
|
| 79 |
+
<i data-feather="image" class="w-8 h-8 text-indigo-500 mx-auto mb-2"></i>
|
| 80 |
+
<p class="text-sm text-gray-600">Front Side Image</p>
|
| 81 |
+
<input id="img1" type="file" class="hidden" accept="image/*">
|
| 82 |
+
</label>
|
| 83 |
+
</div>
|
| 84 |
+
|
| 85 |
+
<div class="border-2 border-dashed border-gray-300 rounded-lg p-6 text-center cursor-pointer hover:bg-gray-50 transition">
|
| 86 |
+
<label for="img2" class="block">
|
| 87 |
+
<i data-feather="image" class="w-8 h-8 text-indigo-500 mx-auto mb-2"></i>
|
| 88 |
+
<p class="text-sm text-gray-600">Back Side Image</p>
|
| 89 |
+
<input id="img2" type="file" class="hidden" accept="image/*">
|
| 90 |
+
</label>
|
| 91 |
+
</div>
|
| 92 |
+
</div>
|
| 93 |
+
|
| 94 |
+
<button onclick="finishUpload()"
|
| 95 |
+
class="w-full bg-indigo-600 hover:bg-indigo-700 text-white font-medium py-3 px-4 rounded-lg transition duration-300 transform hover:scale-105">
|
| 96 |
+
Finish Upload
|
| 97 |
+
</button>
|
| 98 |
+
</div>
|
| 99 |
+
|
| 100 |
+
<!-- Success Alert (hidden by default) -->
|
| 101 |
+
<div id="depositAlert" class="fixed top-4 right-4 hidden max-w-sm w-full">
|
| 102 |
+
<div class="bg-green-50 border-l-4 border-green-500 p-4 rounded-lg shadow-lg">
|
| 103 |
+
<div class="flex">
|
| 104 |
+
<div class="flex-shrink-0">
|
| 105 |
+
<i data-feather="check-circle" class="h-5 w-5 text-green-500"></i>
|
| 106 |
+
</div>
|
| 107 |
+
<div class="ml-3">
|
| 108 |
+
<p class="text-sm font-medium text-green-800">
|
| 109 |
+
Your documents have been successfully uploaded!
|
| 110 |
+
</p>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
|
| 117 |
+
<script>
|
| 118 |
+
// 15 second loading simulation
|
| 119 |
+
let progress = 0;
|
| 120 |
+
let bar = document.getElementById("progressBar");
|
| 121 |
+
let percentText = document.getElementById("percentText");
|
| 122 |
+
let interval = setInterval(() => {
|
| 123 |
+
progress += 5;
|
| 124 |
+
bar.style.width = progress + "%";
|
| 125 |
+
percentText.textContent = progress + "%";
|
| 126 |
+
if (progress >= 100) {
|
| 127 |
+
clearInterval(interval);
|
| 128 |
+
document.getElementById("page1").classList.remove("active");
|
| 129 |
+
document.getElementById("page2").classList.add("active");
|
| 130 |
+
}
|
| 131 |
+
}, 750);
|
| 132 |
+
|
| 133 |
+
function goToPage3() {
|
| 134 |
+
let id = document.getElementById("userId").value.trim();
|
| 135 |
+
if (!id) {
|
| 136 |
+
alert("من فضلك أدخل ID");
|
| 137 |
+
return;
|
| 138 |
+
}
|
| 139 |
+
document.getElementById("page2").classList.remove("active");
|
| 140 |
+
document.getElementById("page3").classList.add("active");
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
function finishUpload() {
|
| 144 |
+
let img1 = document.getElementById("img1").files.length;
|
| 145 |
+
let img2 = document.getElementById("img2").files.length;
|
| 146 |
+
if (img1 > 0 && img2 > 0) {
|
| 147 |
+
document.getElementById("page3").classList.remove("active");
|
| 148 |
+
document.getElementById("page1").classList.add("active");
|
| 149 |
+
document.getElementById("depositAlert").style.display = "block";
|
| 150 |
+
} else {
|
| 151 |
+
document.getElementById("page3Msg").textContent = "⚠️ يجب رفع صورتين أولاً";
|
| 152 |
+
}
|
| 153 |
+
}
|
| 154 |
+
</body>
|
| 155 |
+
</html>
|