|
|
<!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 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> |
|
|
|
|
|
|
|
|
<div class="flex flex-col lg:flex-row gap-12 items-center justify-center"> |
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
<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"> |
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
<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'); |
|
|
|
|
|
|
|
|
deployBtn.disabled = true; |
|
|
deployBtn.classList.add('opacity-50'); |
|
|
|
|
|
|
|
|
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => { |
|
|
dropArea.addEventListener(eventName, preventDefaults, false); |
|
|
document.body.addEventListener(eventName, preventDefaults, false); |
|
|
}); |
|
|
|
|
|
function preventDefaults(e) { |
|
|
e.preventDefault(); |
|
|
e.stopPropagation(); |
|
|
} |
|
|
|
|
|
|
|
|
['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'); |
|
|
} |
|
|
|
|
|
|
|
|
dropArea.addEventListener('drop', handleDrop, false); |
|
|
|
|
|
function handleDrop(e) { |
|
|
const dt = e.dataTransfer; |
|
|
const files = dt.files; |
|
|
handleFiles(files); |
|
|
} |
|
|
|
|
|
|
|
|
dropArea.addEventListener('click', () => { |
|
|
fileInput.click(); |
|
|
}); |
|
|
|
|
|
fileInput.addEventListener('change', function() { |
|
|
handleFiles(this.files); |
|
|
}); |
|
|
|
|
|
function handleFiles(files) { |
|
|
if (files.length > 0) { |
|
|
const file = files[0]; |
|
|
|
|
|
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.'); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
deployBtn.addEventListener('click', function() { |
|
|
if (fileName.textContent && !deployBtn.disabled) { |
|
|
deploymentModal.classList.remove('hidden'); |
|
|
document.body.classList.add('overflow-hidden'); |
|
|
|
|
|
|
|
|
simulateDeployment(); |
|
|
} else { |
|
|
alert('Veuillez sélectionner un fichier ZIP à déployer.'); |
|
|
} |
|
|
}); |
|
|
|
|
|
|
|
|
cancelBtn.addEventListener('click', function() { |
|
|
deploymentModal.classList.add('hidden'); |
|
|
document.body.classList.remove('overflow-hidden'); |
|
|
}); |
|
|
|
|
|
|
|
|
function simulateDeployment() { |
|
|
let progress = 0; |
|
|
const interval = setInterval(() => { |
|
|
progress += Math.random() * 10; |
|
|
if (progress >= 100) { |
|
|
progress = 100; |
|
|
clearInterval(interval); |
|
|
|
|
|
|
|
|
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}%`; |
|
|
} |
|
|
|
|
|
|
|
|
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> |