File size: 24,006 Bytes
3902caf 593f5af 3902caf 593f5af 3902caf 593f5af 3902caf 593f5af 3902caf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 |
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Déploiement Simplifié - Publiez en un clic</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>
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.file-drop-area {
border: 2px dashed rgba(255, 255, 255, 0.4);
transition: all 0.3s ease;
}
.file-drop-area:hover {
border-color: rgba(255, 255, 255, 0.8);
background-color: rgba(255, 255, 255, 0.05);
}
.file-drop-area.active {
border-color: rgba(255, 255, 255, 1);
background-color: rgba(255, 255, 255, 0.1);
}
.platform-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.deploy-btn {
transition: all 0.3s ease;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.deploy-btn:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}
70% {
transform: scale(1.05);
box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
}
100% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}
}
</style>
</head>
<body class="gradient-bg min-h-screen text-white font-sans">
<div class="container mx-auto px-4 py-12">
<!-- Header -->
<header class="text-center mb-16">
<h1 class="text-4xl md:text-5xl font-bold mb-4">Déploiement Simplifié</h1>
<p class="text-xl md:text-2xl opacity-90 max-w-3xl mx-auto">
Publiez votre application sur les meilleures plateformes sans configuration complexe
</p>
</header>
<!-- Main Content -->
<div class="flex flex-col lg:flex-row gap-12 items-center justify-center">
<!-- File Upload Section -->
<div class="w-full lg:w-1/2">
<div class="bg-white bg-opacity-10 backdrop-blur-sm rounded-2xl p-8 shadow-xl">
<h2 class="text-2xl font-semibold mb-6 flex items-center">
<i class="fas fa-file-archive mr-3"></i> Déploiement FICHIER ZIP
</h2>
<div id="dropArea" class="file-drop-area rounded-xl p-8 mb-6 text-center cursor-pointer">
<i class="fas fa-cloud-upload-alt text-4xl mb-4 opacity-80"></i>
<p class="text-lg mb-2">Glissez-déposez votre fichier ZIP ici</p>
<p class="text-sm opacity-70">ou cliquez pour sélectionner</p>
<input type="file" id="fileInput" class="hidden" accept=".zip,.rar,.7z">
<div id="fileName" class="mt-4 text-sm font-medium hidden"></div>
</div>
<div class="mb-6">
<label class="block text-sm font-medium mb-2" for="projectName">Nom du projet</label>
<input type="text" id="projectName" class="w-full bg-white bg-opacity-20 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-white focus:ring-opacity-50 placeholder-white placeholder-opacity-70" placeholder="MonSuperProjet">
</div>
<div class="mb-6">
<label class="block text-sm font-medium mb-2">Plateformes de déploiement</label>
<div class="grid grid-cols-2 gap-3">
<div class="flex items-center">
<input type="checkbox" id="aws" class="form-checkbox h-5 w-5 text-indigo-600" checked>
<label for="aws" class="ml-2">AWS</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="azure" class="form-checkbox h-5 w-5 text-indigo-600" checked>
<label for="azure" class="ml-2">Azure</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="google" class="form-checkbox h-5 w-5 text-indigo-600">
<label for="google" class="ml-2">Google Cloud</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="vercel" class="form-checkbox h-5 w-5 text-indigo-600" checked>
<label for="vercel" class="ml-2">Vercel</label>
</div>
</div>
</div>
<button id="deployBtn" class="w-full deploy-btn pulse bg-white text-indigo-700 font-bold py-4 px-6 rounded-xl text-lg flex items-center justify-center">
<i class="fas fa-rocket mr-3"></i> Déployer maintenant
</button>
</div>
</div>
<!-- Platform Info Section -->
<div class="w-full lg:w-1/2">
<h2 class="text-2xl font-semibold mb-6 flex items-center">
<i class="fas fa-server mr-3"></i> Plateformes supportées
</h2>
<div class="grid md:grid-cols-2 gap-6">
<!-- AWS Card -->
<div class="platform-card bg-white bg-opacity-10 backdrop-blur-sm rounded-xl p-6 transition-all duration-300 hover:shadow-lg">
<div class="flex items-center mb-4">
<img src="https://upload.wikimedia.org/wikipedia/commons/9/93/Amazon_Web_Services_Logo.svg" alt="AWS" class="h-10 mr-3">
<h3 class="text-xl font-semibold">AWS</h3>
</div>
<p class="text-sm opacity-80 mb-4">Déployez sur Amazon Web Services avec une configuration automatique des services nécessaires.</p>
<div class="flex items-center text-sm">
<i class="fas fa-check-circle text-green-400 mr-2"></i>
<span>Déploiement automatique</span>
</div>
</div>
<!-- Azure Card -->
<div class="platform-card bg-white bg-opacity-10 backdrop-blur-sm rounded-xl p-6 transition-all duration-300 hover:shadow-lg">
<div class="flex items-center mb-4">
<img src="https://upload.wikimedia.org/wikipedia/commons/a/a8/Microsoft_Azure_Logo.svg" alt="Azure" class="h-10 mr-3">
<h3 class="text-xl font-semibold">Microsoft Azure</h3>
</div>
<p class="text-sm opacity-80 mb-4">Configuration simplifiée pour Azure App Services avec scaling automatique.</p>
<div class="flex items-center text-sm">
<i class="fas fa-check-circle text-green-400 mr-2"></i>
<span>Scaling automatique</span>
</div>
</div>
<!-- Vercel Card -->
<div class="platform-card bg-white bg-opacity-10 backdrop-blur-sm rounded-xl p-6 transition-all duration-300 hover:shadow-lg">
<div class="flex items-center mb-4">
<img src="https://assets.vercel.com/image/upload/front/favicon/vercel/180x180.png" alt="Vercel" class="h-10 mr-3">
<h3 class="text-xl font-semibold">Vercel</h3>
</div>
<p class="text-sm opacity-80 mb-4">Déploiement instantané pour les applications frontales avec prévisualisation.</p>
<div class="flex items-center text-sm">
<i class="fas fa-check-circle text-green-400 mr-2"></i>
<span>Prévisualisation instantanée</span>
</div>
</div>
<!-- Google Cloud Card -->
<div class="platform-card bg-white bg-opacity-10 backdrop-blur-sm rounded-xl p-6 transition-all duration-300 hover:shadow-lg">
<div class="flex items-center mb-4">
<img src="https://upload.wikimedia.org/wikipedia/commons/5/51/Google_Cloud_logo.svg" alt="Google Cloud" class="h-10 mr-3">
<h3 class="text-xl font-semibold">Google Cloud</h3>
</div>
<p class="text-sm opacity-80 mb-4">Déploiement sur App Engine avec configuration optimisée pour les performances.</p>
<div class="flex items-center text-sm">
<i class="fas fa-check-circle text-green-400 mr-2"></i>
<span>Optimisation automatique</span>
</div>
</div>
</div>
<div class="mt-8 bg-white bg-opacity-10 backdrop-blur-sm rounded-xl p-6">
<h3 class="text-lg font-semibold mb-3 flex items-center">
<i class="fas fa-bolt mr-2"></i> Pourquoi choisir notre solution ?
</h3>
<ul class="space-y-2">
<li class="flex items-start">
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
<span>Aucune configuration complexe nécessaire</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
<span>Déploiement simultané sur plusieurs plateformes</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
<span>Surveillance automatique des performances</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
<span>Rapports de déploiement détaillés</span>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Deployment Modal -->
<div id="deploymentModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 hidden">
<div class="bg-white bg-opacity-10 backdrop-blur-sm rounded-2xl p-8 max-w-md w-full mx-4">
<div class="text-center">
<div class="w-20 h-20 mx-auto mb-6 flex items-center justify-center">
<div class="relative">
<div class="w-20 h-20 rounded-full bg-white bg-opacity-20 animate-ping absolute"></div>
<div class="w-20 h-20 rounded-full bg-white bg-opacity-30 flex items-center justify-center">
<i class="fas fa-rocket text-3xl animate-bounce"></i>
</div>
</div>
</div>
<h3 class="text-2xl font-bold mb-2">Déploiement en cours</h3>
<p class="mb-6 opacity-80">Votre application est en train d'être déployée sur les plateformes sélectionnées.</p>
<div class="bg-black bg-opacity-30 rounded-lg p-4 mb-6 text-left">
<div class="flex items-center mb-2">
<div class="w-3 h-3 rounded-full bg-green-400 mr-2"></div>
<span class="text-sm font-mono">Préparation du package...</span>
</div>
<div class="flex items-center mb-2">
<div class="w-3 h-3 rounded-full bg-green-400 mr-2"></div>
<span class="text-sm font-mono">Connexion aux plateformes...</span>
</div>
<div class="flex items-center mb-2">
<div class="w-3 h-3 rounded-full bg-yellow-400 mr-2"></div>
<span class="text-sm font-mono">Déploiement sur AWS (25%)</span>
</div>
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-gray-400 mr-2"></div>
<span class="text-sm font-mono">En attente de déploiement sur Azure</span>
</div>
</div>
<div class="w-full bg-gray-700 bg-opacity-50 rounded-full h-2.5 mb-6">
<div class="bg-blue-500 h-2.5 rounded-full" style="width: 45%"></div>
</div>
<button id="cancelBtn" class="text-sm opacity-70 hover:opacity-100">
<i class="fas fa-times mr-1"></i> Annuler le déploiement
</button>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const dropArea = document.getElementById('dropArea');
const fileInput = document.getElementById('fileInput');
const fileName = document.getElementById('fileName');
const deployBtn = document.getElementById('deployBtn');
const deploymentModal = document.getElementById('deploymentModal');
const cancelBtn = document.getElementById('cancelBtn');
// Initialiser le bouton comme désactivé
deployBtn.disabled = true;
deployBtn.classList.add('opacity-50');
// Prevent default drag behaviors
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
dropArea.addEventListener(eventName, preventDefaults, false);
document.body.addEventListener(eventName, preventDefaults, false);
});
function preventDefaults(e) {
e.preventDefault();
e.stopPropagation();
}
// Highlight drop area when item is dragged over it
['dragenter', 'dragover'].forEach(eventName => {
dropArea.addEventListener(eventName, highlight, false);
});
['dragleave', 'drop'].forEach(eventName => {
dropArea.addEventListener(eventName, unhighlight, false);
});
function highlight() {
dropArea.classList.add('active');
}
function unhighlight() {
dropArea.classList.remove('active');
}
// Handle dropped files
dropArea.addEventListener('drop', handleDrop, false);
function handleDrop(e) {
const dt = e.dataTransfer;
const files = dt.files;
handleFiles(files);
}
// Handle clicked files
dropArea.addEventListener('click', () => {
fileInput.click();
});
fileInput.addEventListener('change', function() {
handleFiles(this.files);
});
function handleFiles(files) {
if (files.length > 0) {
const file = files[0];
// Vérification plus souple du type de fichier
if (file.type === 'application/zip' || file.type === 'application/x-zip-compressed' ||
file.name.toLowerCase().endsWith('.zip')) {
fileName.textContent = `Fichier sélectionné: ${file.name}`;
fileName.classList.remove('hidden');
deployBtn.disabled = false;
deployBtn.classList.remove('opacity-50');
} else {
alert('Veuillez sélectionner un fichier ZIP valide.');
}
}
}
// Deploy button click
deployBtn.addEventListener('click', function() {
if (fileName.textContent && !deployBtn.disabled) {
deploymentModal.classList.remove('hidden');
document.body.classList.add('overflow-hidden');
// Simulate deployment progress
simulateDeployment();
} else {
alert('Veuillez sélectionner un fichier ZIP à déployer.');
}
});
// Cancel button
cancelBtn.addEventListener('click', function() {
deploymentModal.classList.add('hidden');
document.body.classList.remove('overflow-hidden');
});
// Simulate deployment progress
function simulateDeployment() {
let progress = 0;
const interval = setInterval(() => {
progress += Math.random() * 10;
if (progress >= 100) {
progress = 100;
clearInterval(interval);
// Update modal to show success
setTimeout(() => {
const modalContent = deploymentModal.querySelector('div > div');
modalContent.innerHTML = `
<div class="text-center">
<div class="w-20 h-20 mx-auto mb-6 flex items-center justify-center">
<div class="w-20 h-20 rounded-full bg-green-500 bg-opacity-30 flex items-center justify-center">
<i class="fas fa-check text-3xl"></i>
</div>
</div>
<h3 class="text-2xl font-bold mb-2">Déploiement réussi!</h3>
<p class="mb-6 opacity-80">Votre application a été déployée avec succès.</p>
<div class="grid grid-cols-2 gap-4 mb-6">
<div class="bg-green-500 bg-opacity-20 p-3 rounded-lg">
<p class="text-xs opacity-70">AWS</p>
<p class="font-mono text-sm">https://aws.example.com</p>
</div>
<div class="bg-blue-500 bg-opacity-20 p-3 rounded-lg">
<p class="text-xs opacity-70">Azure</p>
<p class="font-mono text-sm">https://azure.example.com</p>
</div>
</div>
<button id="closeBtn" class="bg-white text-indigo-700 font-bold py-3 px-6 rounded-lg">
<i class="fas fa-times mr-2"></i> Fermer
</button>
</div>
`;
document.getElementById('closeBtn').addEventListener('click', function() {
deploymentModal.classList.add('hidden');
document.body.classList.remove('overflow-hidden');
});
}, 1000);
}
const progressBar = deploymentModal.querySelector('.bg-blue-500');
if (progressBar) {
progressBar.style.width = `${progress}%`;
}
// Update status messages
const statusLines = deploymentModal.querySelectorAll('.font-mono');
if (statusLines.length >= 3) {
if (progress < 30) {
statusLines[2].textContent = `Déploiement sur AWS (${Math.floor(progress)}%)`;
statusLines[2].previousElementChild.querySelector('.w-3').classList.add('bg-yellow-400');
statusLines[2].previousElementChild.querySelector('.w-3').classList.remove('bg-gray-400');
} else if (progress < 60) {
statusLines[2].textContent = 'Déploiement sur AWS terminé';
statusLines[2].previousElementChild.querySelector('.w-3').classList.add('bg-green-400');
statusLines[2].previousElementChild.querySelector('.w-3').classList.remove('bg-yellow-400');
statusLines[3].textContent = `Déploiement sur Azure (${Math.floor(progress - 30)}%)`;
statusLines[3].previousElementChild.querySelector('.w-3').classList.add('bg-yellow-400');
statusLines[3].previousElementChild.querySelector('.w-3').classList.remove('bg-gray-400');
} else if (progress < 90) {
statusLines[3].textContent = 'Déploiement sur Azure terminé';
statusLines[3].previousElementChild.querySelector('.w-3').classList.add('bg-green-400');
statusLines[3].previousElementChild.querySelector('.w-3').classList.remove('bg-yellow-400');
statusLines[4]?.textContent = 'Configuration finale...';
statusLines[4]?.previousElementChild.querySelector('.w-3').classList.add('bg-yellow-400');
statusLines[4]?.previousElementChild.querySelector('.w-3').classList.remove('bg-gray-400');
}
}
}, 300);
}
});
</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=docto41/deployer" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |