Spaces:
Running
Running
Add 2 files
Browse files- README.md +7 -5
- index.html +246 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: connection-minehost
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,246 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="fr">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>MineHost2 - Connexion & Inscription</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.gradient-bg {
|
| 11 |
+
background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 50%, #22d3ee 100%);
|
| 12 |
+
}
|
| 13 |
+
.card-glass {
|
| 14 |
+
backdrop-filter: blur(16px) saturate(180%);
|
| 15 |
+
-webkit-backdrop-filter: blur(16px) saturate(180%);
|
| 16 |
+
background-color: rgba(255, 255, 255, 0.1);
|
| 17 |
+
border-radius: 12px;
|
| 18 |
+
border: 1px solid rgba(255, 255, 255, 0.125);
|
| 19 |
+
}
|
| 20 |
+
.input-glass {
|
| 21 |
+
backdrop-filter: blur(16px) saturate(180%);
|
| 22 |
+
-webkit-backdrop-filter: blur(16px) saturate(180%);
|
| 23 |
+
background-color: rgba(255, 255, 255, 0.1);
|
| 24 |
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
| 25 |
+
}
|
| 26 |
+
.input-glass:focus {
|
| 27 |
+
background-color: rgba(255, 255, 255, 0.2);
|
| 28 |
+
outline: none;
|
| 29 |
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
|
| 30 |
+
}
|
| 31 |
+
.toggle-form {
|
| 32 |
+
position: relative;
|
| 33 |
+
overflow: hidden;
|
| 34 |
+
height: 500px;
|
| 35 |
+
}
|
| 36 |
+
.form-container {
|
| 37 |
+
position: absolute;
|
| 38 |
+
width: 100%;
|
| 39 |
+
transition: all 0.6s ease-in-out;
|
| 40 |
+
}
|
| 41 |
+
.sign-in-container {
|
| 42 |
+
left: 0;
|
| 43 |
+
opacity: 1;
|
| 44 |
+
z-index: 2;
|
| 45 |
+
}
|
| 46 |
+
.sign-up-container {
|
| 47 |
+
left: 100%;
|
| 48 |
+
opacity: 0;
|
| 49 |
+
z-index: 1;
|
| 50 |
+
}
|
| 51 |
+
.toggle-form.active .sign-in-container {
|
| 52 |
+
left: -100%;
|
| 53 |
+
opacity: 0;
|
| 54 |
+
}
|
| 55 |
+
.toggle-form.active .sign-up-container {
|
| 56 |
+
left: 0;
|
| 57 |
+
opacity: 1;
|
| 58 |
+
z-index: 3;
|
| 59 |
+
}
|
| 60 |
+
</style>
|
| 61 |
+
</head>
|
| 62 |
+
<body class="gradient-bg min-h-screen flex items-center justify-center p-4">
|
| 63 |
+
<div class="w-full max-w-md">
|
| 64 |
+
<div class="text-center mb-8">
|
| 65 |
+
<img src="https://via.placeholder.com/150x50/1e3a8a/ffffff?text=MineHost2" alt="MineHost2 Logo" class="mx-auto h-12 mb-4">
|
| 66 |
+
<h1 class="text-3xl font-bold text-white">Bienvenue sur MineHost2</h1>
|
| 67 |
+
<p class="text-white/80 mt-2">Gérez vos serveurs Minecraft en toute simplicité</p>
|
| 68 |
+
</div>
|
| 69 |
+
|
| 70 |
+
<div class="card-glass p-8 rounded-xl shadow-2xl">
|
| 71 |
+
<div class="toggle-form" id="formContainer">
|
| 72 |
+
<!-- Formulaire de Connexion -->
|
| 73 |
+
<div class="form-container sign-in-container" id="signIn">
|
| 74 |
+
<h2 class="text-2xl font-bold text-white mb-6">Connexion</h2>
|
| 75 |
+
<form id="loginForm" class="space-y-4">
|
| 76 |
+
<div>
|
| 77 |
+
<label for="login-email" class="block text-sm font-medium text-white/80 mb-1">Email</label>
|
| 78 |
+
<div class="relative">
|
| 79 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 80 |
+
<i class="fas fa-envelope text-white/60"></i>
|
| 81 |
+
</div>
|
| 82 |
+
<input type="email" id="login-email" class="input-glass w-full pl-10 pr-3 py-2 rounded-lg text-white placeholder-white/50" placeholder="votre@email.com" required>
|
| 83 |
+
</div>
|
| 84 |
+
</div>
|
| 85 |
+
<div>
|
| 86 |
+
<label for="login-password" class="block text-sm font-medium text-white/80 mb-1">Mot de passe</label>
|
| 87 |
+
<div class="relative">
|
| 88 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 89 |
+
<i class="fas fa-lock text-white/60"></i>
|
| 90 |
+
</div>
|
| 91 |
+
<input type="password" id="login-password" class="input-glass w-full pl-10 pr-3 py-2 rounded-lg text-white placeholder-white/50" placeholder="••••••••" required>
|
| 92 |
+
</div>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="flex items-center justify-between">
|
| 95 |
+
<div class="flex items-center">
|
| 96 |
+
<input id="remember-me" type="checkbox" class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500">
|
| 97 |
+
<label for="remember-me" class="ml-2 block text-sm text-white/80">Se souvenir de moi</label>
|
| 98 |
+
</div>
|
| 99 |
+
<a href="#" class="text-sm text-blue-300 hover:text-blue-200">Mot de passe oublié?</a>
|
| 100 |
+
</div>
|
| 101 |
+
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition duration-200 flex items-center justify-center">
|
| 102 |
+
<i class="fas fa-sign-in-alt mr-2"></i> Se connecter
|
| 103 |
+
</button>
|
| 104 |
+
</form>
|
| 105 |
+
<div class="mt-6 text-center">
|
| 106 |
+
<p class="text-white/80">Pas encore de compte? <button id="showSignUp" class="text-blue-300 hover:text-blue-200 font-medium">S'inscrire</button></p>
|
| 107 |
+
</div>
|
| 108 |
+
<div class="mt-6">
|
| 109 |
+
<div class="relative">
|
| 110 |
+
<div class="absolute inset-0 flex items-center">
|
| 111 |
+
<div class="w-full border-t border-white/20"></div>
|
| 112 |
+
</div>
|
| 113 |
+
<div class="relative flex justify-center text-sm">
|
| 114 |
+
<span class="px-2 bg-transparent text-white/80">Ou connectez-vous avec</span>
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
<div class="mt-4 grid grid-cols-3 gap-3">
|
| 118 |
+
<button type="button" class="input-glass text-white py-2 px-4 rounded-lg flex items-center justify-center hover:bg-white/20 transition">
|
| 119 |
+
<i class="fab fa-google text-lg"></i>
|
| 120 |
+
</button>
|
| 121 |
+
<button type="button" class="input-glass text-white py-2 px-4 rounded-lg flex items-center justify-center hover:bg-white/20 transition">
|
| 122 |
+
<i class="fab fa-github text-lg"></i>
|
| 123 |
+
</button>
|
| 124 |
+
<button type="button" class="input-glass text-white py-2 px-4 rounded-lg flex items-center justify-center hover:bg-white/20 transition">
|
| 125 |
+
<i class="fab fa-discord text-lg"></i>
|
| 126 |
+
</button>
|
| 127 |
+
</div>
|
| 128 |
+
</div>
|
| 129 |
+
</div>
|
| 130 |
+
|
| 131 |
+
<!-- Formulaire d'Inscription -->
|
| 132 |
+
<div class="form-container sign-up-container" id="signUp">
|
| 133 |
+
<h2 class="text-2xl font-bold text-white mb-6">Créer un compte</h2>
|
| 134 |
+
<form id="registerForm" class="space-y-4">
|
| 135 |
+
<div>
|
| 136 |
+
<label for="register-username" class="block text-sm font-medium text-white/80 mb-1">Nom d'utilisateur</label>
|
| 137 |
+
<div class="relative">
|
| 138 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 139 |
+
<i class="fas fa-user text-white/60"></i>
|
| 140 |
+
</div>
|
| 141 |
+
<input type="text" id="register-username" class="input-glass w-full pl-10 pr-3 py-2 rounded-lg text-white placeholder-white/50" placeholder="minecraftfan42" required>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
<div>
|
| 145 |
+
<label for="register-email" class="block text-sm font-medium text-white/80 mb-1">Email</label>
|
| 146 |
+
<div class="relative">
|
| 147 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 148 |
+
<i class="fas fa-envelope text-white/60"></i>
|
| 149 |
+
</div>
|
| 150 |
+
<input type="email" id="register-email" class="input-glass w-full pl-10 pr-3 py-2 rounded-lg text-white placeholder-white/50" placeholder="votre@email.com" required>
|
| 151 |
+
</div>
|
| 152 |
+
</div>
|
| 153 |
+
<div>
|
| 154 |
+
<label for="register-password" class="block text-sm font-medium text-white/80 mb-1">Mot de passe</label>
|
| 155 |
+
<div class="relative">
|
| 156 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 157 |
+
<i class="fas fa-lock text-white/60"></i>
|
| 158 |
+
</div>
|
| 159 |
+
<input type="password" id="register-password" class="input-glass w-full pl-10 pr-3 py-2 rounded-lg text-white placeholder-white/50" placeholder="••••••••" required>
|
| 160 |
+
</div>
|
| 161 |
+
<p class="mt-1 text-xs text-white/60">8 caractères minimum avec des chiffres et lettres</p>
|
| 162 |
+
</div>
|
| 163 |
+
<div>
|
| 164 |
+
<label for="register-confirm-password" class="block text-sm font-medium text-white/80 mb-1">Confirmer le mot de passe</label>
|
| 165 |
+
<div class="relative">
|
| 166 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 167 |
+
<i class="fas fa-lock text-white/60"></i>
|
| 168 |
+
</div>
|
| 169 |
+
<input type="password" id="register-confirm-password" class="input-glass w-full pl-10 pr-3 py-2 rounded-lg text-white placeholder-white/50" placeholder="••••••••" required>
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
<div class="flex items-center">
|
| 173 |
+
<input id="accept-terms" type="checkbox" class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500" required>
|
| 174 |
+
<label for="accept-terms" class="ml-2 block text-sm text-white/80">J'accepte les <a href="#" class="text-blue-300 hover:text-blue-200">conditions d'utilisation</a></label>
|
| 175 |
+
</div>
|
| 176 |
+
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition duration-200 flex items-center justify-center">
|
| 177 |
+
<i class="fas fa-user-plus mr-2"></i> S'inscrire
|
| 178 |
+
</button>
|
| 179 |
+
</form>
|
| 180 |
+
<div class="mt-6 text-center">
|
| 181 |
+
<p class="text-white/80">Déjà un compte? <button id="showSignIn" class="text-blue-300 hover:text-blue-200 font-medium">Se connecter</button></p>
|
| 182 |
+
</div>
|
| 183 |
+
</div>
|
| 184 |
+
</div>
|
| 185 |
+
</div>
|
| 186 |
+
|
| 187 |
+
<div class="mt-8 text-center text-white/60 text-sm">
|
| 188 |
+
<p>© 2023 MineHost2. Tous droits réservés.</p>
|
| 189 |
+
</div>
|
| 190 |
+
</div>
|
| 191 |
+
|
| 192 |
+
<script>
|
| 193 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 194 |
+
const formContainer = document.getElementById('formContainer');
|
| 195 |
+
const showSignUp = document.getElementById('showSignUp');
|
| 196 |
+
const showSignIn = document.getElementById('showSignIn');
|
| 197 |
+
|
| 198 |
+
showSignUp.addEventListener('click', function() {
|
| 199 |
+
formContainer.classList.add('active');
|
| 200 |
+
});
|
| 201 |
+
|
| 202 |
+
showSignIn.addEventListener('click', function() {
|
| 203 |
+
formContainer.classList.remove('active');
|
| 204 |
+
});
|
| 205 |
+
|
| 206 |
+
// Gestion des formulaires
|
| 207 |
+
document.getElementById('loginForm').addEventListener('submit', function(e) {
|
| 208 |
+
e.preventDefault();
|
| 209 |
+
const email = document.getElementById('login-email').value;
|
| 210 |
+
const password = document.getElementById('login-password').value;
|
| 211 |
+
|
| 212 |
+
// Ici vous ajouteriez la logique de connexion
|
| 213 |
+
console.log('Tentative de connexion avec:', email, password);
|
| 214 |
+
|
| 215 |
+
// Simulation de succès
|
| 216 |
+
setTimeout(() => {
|
| 217 |
+
alert('Connexion réussie! Redirection...');
|
| 218 |
+
// window.location.href = 'dashboard.html';
|
| 219 |
+
}, 500);
|
| 220 |
+
});
|
| 221 |
+
|
| 222 |
+
document.getElementById('registerForm').addEventListener('submit', function(e) {
|
| 223 |
+
e.preventDefault();
|
| 224 |
+
const username = document.getElementById('register-username').value;
|
| 225 |
+
const email = document.getElementById('register-email').value;
|
| 226 |
+
const password = document.getElementById('register-password').value;
|
| 227 |
+
const confirmPassword = document.getElementById('register-confirm-password').value;
|
| 228 |
+
|
| 229 |
+
if (password !== confirmPassword) {
|
| 230 |
+
alert('Les mots de passe ne correspondent pas!');
|
| 231 |
+
return;
|
| 232 |
+
}
|
| 233 |
+
|
| 234 |
+
// Ici vous ajouteriez la logique d'inscription
|
| 235 |
+
console.log('Tentative d\'inscription avec:', username, email, password);
|
| 236 |
+
|
| 237 |
+
// Simulation de succès
|
| 238 |
+
setTimeout(() => {
|
| 239 |
+
alert('Inscription réussie! Vous pouvez maintenant vous connecter.');
|
| 240 |
+
formContainer.classList.remove('active');
|
| 241 |
+
}, 500);
|
| 242 |
+
});
|
| 243 |
+
});
|
| 244 |
+
</script>
|
| 245 |
+
<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=Hanoxbh/connection-minehost" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 246 |
+
</html>
|