Spaces:
Running
Running
undefined - Initial Deployment
Browse files- README.md +6 -4
- index.html +477 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: gray
|
| 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: formulaire
|
| 3 |
+
emoji: 🐳
|
| 4 |
colorFrom: gray
|
| 5 |
+
colorTo: red
|
| 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,477 @@
|
|
| 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>Formulaire d'inscription Premium</title>
|
| 7 |
+
|
| 8 |
+
<!-- Importation de Tailwind CSS -->
|
| 9 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
+
|
| 11 |
+
<!-- Importation de la police Inter de Google Fonts -->
|
| 12 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 13 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 14 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
| 15 |
+
|
| 16 |
+
<!-- Importation des icônes Heroicons -->
|
| 17 |
+
<script src="https://unpkg.com/@heroicons/react@1.0.6/dist/heroicons.js"></script>
|
| 18 |
+
|
| 19 |
+
<style>
|
| 20 |
+
/* Appliquer la police Inter comme police par défaut */
|
| 21 |
+
body {
|
| 22 |
+
font-family: 'Inter', sans-serif;
|
| 23 |
+
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
/* Animation pour le bouton */
|
| 27 |
+
@keyframes pulse {
|
| 28 |
+
0% { transform: scale(1); }
|
| 29 |
+
50% { transform: scale(1.05); }
|
| 30 |
+
100% { transform: scale(1); }
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.pulse:hover {
|
| 34 |
+
animation: pulse 1.5s infinite;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
/* Style personnalisé pour les messages d'erreur */
|
| 38 |
+
.error-message {
|
| 39 |
+
display: none;
|
| 40 |
+
color: #ef4444;
|
| 41 |
+
font-size: 0.875rem;
|
| 42 |
+
margin-top: 0.25rem;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
/* Style pour les champs valides/invalides */
|
| 46 |
+
.input-valid {
|
| 47 |
+
border-color: #10b981;
|
| 48 |
+
box-shadow: 0 0 0 1px #10b981;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.input-invalid {
|
| 52 |
+
border-color: #ef4444;
|
| 53 |
+
box-shadow: 0 0 0 1px #ef4444;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
/* Style pour la force du mot de passe */
|
| 57 |
+
.password-strength {
|
| 58 |
+
height: 4px;
|
| 59 |
+
margin-top: 0.5rem;
|
| 60 |
+
border-radius: 2px;
|
| 61 |
+
transition: all 0.3s ease;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
.strength-0 {
|
| 65 |
+
width: 20%;
|
| 66 |
+
background-color: #ef4444;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.strength-1 {
|
| 70 |
+
width: 40%;
|
| 71 |
+
background-color: #f59e0b;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
.strength-2 {
|
| 75 |
+
width: 60%;
|
| 76 |
+
background-color: #f59e0b;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
.strength-3 {
|
| 80 |
+
width: 80%;
|
| 81 |
+
background-color: #10b981;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
.strength-4 {
|
| 85 |
+
width: 100%;
|
| 86 |
+
background-color: #10b981;
|
| 87 |
+
}
|
| 88 |
+
</style>
|
| 89 |
+
</head>
|
| 90 |
+
<body class="flex items-center justify-center min-h-screen p-4">
|
| 91 |
+
<!-- Conteneur principal du formulaire -->
|
| 92 |
+
<div class="w-full max-w-lg bg-white rounded-2xl shadow-xl overflow-hidden">
|
| 93 |
+
<!-- Bandeau coloré en haut -->
|
| 94 |
+
<div class="bg-gradient-to-r from-indigo-500 to-purple-600 h-2"></div>
|
| 95 |
+
|
| 96 |
+
<div class="p-8 space-y-6">
|
| 97 |
+
<!-- En-tête du formulaire avec icône -->
|
| 98 |
+
<div class="text-center">
|
| 99 |
+
<div class="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-indigo-100 mb-4">
|
| 100 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-indigo-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 101 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 11c0 3.517-1.009 6.799-2.753 9.571m-3.44-2.04l.054-.09A13.916 13.916 0 008 11a4 4 0 118 0c0 1.017-.07 2.019-.203 3m-2.118 6.844A21.88 21.88 0 0015.171 17m3.839 1.132c.645-2.266.99-4.659.99-7.132A8 8 0 008 4.07M3 15.364c.64-1.319 1-2.8 1-4.364 0-1.457.39-2.823 1.07-4" />
|
| 102 |
+
</svg>
|
| 103 |
+
</div>
|
| 104 |
+
<h1 class="text-3xl font-bold text-gray-900">Rejoignez notre communauté</h1>
|
| 105 |
+
<p class="mt-2 text-sm text-gray-600">
|
| 106 |
+
Commencez votre voyage avec nous en créant un compte
|
| 107 |
+
</p>
|
| 108 |
+
</div>
|
| 109 |
+
|
| 110 |
+
<!-- Formulaire -->
|
| 111 |
+
<form id="registration-form" class="space-y-6" action="#" method="POST">
|
| 112 |
+
<!-- Champs Nom et Prénom sur la même ligne -->
|
| 113 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
| 114 |
+
<div>
|
| 115 |
+
<label for="first-name" class="block text-sm font-medium text-gray-700 mb-1">Prénom</label>
|
| 116 |
+
<div class="relative">
|
| 117 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 118 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 119 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
|
| 120 |
+
</svg>
|
| 121 |
+
</div>
|
| 122 |
+
<input id="first-name" name="first-name" type="text" required
|
| 123 |
+
class="pl-10 mt-1 block w-full px-3 py-2 bg-white border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm transition duration-150 ease-in-out"
|
| 124 |
+
placeholder="Jean">
|
| 125 |
+
</div>
|
| 126 |
+
<div id="first-name-error" class="error-message">Veuillez entrer un prénom valide</div>
|
| 127 |
+
</div>
|
| 128 |
+
<div>
|
| 129 |
+
<label for="last-name" class="block text-sm font-medium text-gray-700 mb-1">Nom</label>
|
| 130 |
+
<div class="relative">
|
| 131 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 132 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 133 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
|
| 134 |
+
</svg>
|
| 135 |
+
</div>
|
| 136 |
+
<input id="last-name" name="last-name" type="text" required
|
| 137 |
+
class="pl-10 mt-1 block w-full px-3 py-2 bg-white border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm transition duration-150 ease-in-out"
|
| 138 |
+
placeholder="Dupont">
|
| 139 |
+
</div>
|
| 140 |
+
<div id="last-name-error" class="error-message">Veuillez entrer un nom valide</div>
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
|
| 144 |
+
<!-- Champ Email -->
|
| 145 |
+
<div>
|
| 146 |
+
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Adresse e-mail</label>
|
| 147 |
+
<div class="relative">
|
| 148 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 149 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 150 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
|
| 151 |
+
</svg>
|
| 152 |
+
</div>
|
| 153 |
+
<input id="email" name="email" type="email" autocomplete="email" required
|
| 154 |
+
class="pl-10 mt-1 block w-full px-3 py-2 bg-white border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm transition duration-150 ease-in-out"
|
| 155 |
+
placeholder="vous@exemple.com">
|
| 156 |
+
</div>
|
| 157 |
+
<div id="email-error" class="error-message">Veuillez entrer une adresse email valide</div>
|
| 158 |
+
</div>
|
| 159 |
+
|
| 160 |
+
<!-- Champ Mot de passe -->
|
| 161 |
+
<div>
|
| 162 |
+
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Mot de passe</label>
|
| 163 |
+
<div class="relative">
|
| 164 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 165 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 166 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
|
| 167 |
+
</svg>
|
| 168 |
+
</div>
|
| 169 |
+
<input id="password" name="password" type="password" autocomplete="new-password" required
|
| 170 |
+
class="pl-10 mt-1 block w-full px-3 py-2 bg-white border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm transition duration-150 ease-in-out"
|
| 171 |
+
placeholder="********">
|
| 172 |
+
<button type="button" id="toggle-password" class="absolute inset-y-0 right-0 pr-3 flex items-center">
|
| 173 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400 hover:text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 174 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
|
| 175 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
|
| 176 |
+
</svg>
|
| 177 |
+
</button>
|
| 178 |
+
</div>
|
| 179 |
+
<div id="password-error" class="error-message">Le mot de passe doit contenir au moins 8 caractères</div>
|
| 180 |
+
<div class="password-strength-container mt-2">
|
| 181 |
+
<div id="password-strength" class="password-strength strength-0"></div>
|
| 182 |
+
<div id="password-hints" class="text-xs text-gray-500 mt-1">
|
| 183 |
+
<div class="flex items-center mt-1">
|
| 184 |
+
<svg id="length-check" class="h-4 w-4 text-gray-300 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 185 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
|
| 186 |
+
</svg>
|
| 187 |
+
<span>8 caractères minimum</span>
|
| 188 |
+
</div>
|
| 189 |
+
<div class="flex items-center mt-1">
|
| 190 |
+
<svg id="uppercase-check" class="h-4 w-4 text-gray-300 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 191 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
|
| 192 |
+
</svg>
|
| 193 |
+
<span>1 lettre majuscule</span>
|
| 194 |
+
</div>
|
| 195 |
+
<div class="flex items-center mt-1">
|
| 196 |
+
<svg id="number-check" class="h-4 w-4 text-gray-300 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 197 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
|
| 198 |
+
</svg>
|
| 199 |
+
<span>1 chiffre</span>
|
| 200 |
+
</div>
|
| 201 |
+
</div>
|
| 202 |
+
</div>
|
| 203 |
+
</div>
|
| 204 |
+
|
| 205 |
+
<!-- Champ Confirmer le mot de passe -->
|
| 206 |
+
<div>
|
| 207 |
+
<label for="confirm-password" class="block text-sm font-medium text-gray-700 mb-1">Confirmer le mot de passe</label>
|
| 208 |
+
<div class="relative">
|
| 209 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 210 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 211 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
|
| 212 |
+
</svg>
|
| 213 |
+
</div>
|
| 214 |
+
<input id="confirm-password" name="confirm-password" type="password" autocomplete="new-password" required
|
| 215 |
+
class="pl-10 mt-1 block w-full px-3 py-2 bg-white border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm transition duration-150 ease-in-out"
|
| 216 |
+
placeholder="********">
|
| 217 |
+
</div>
|
| 218 |
+
<div id="confirm-password-error" class="error-message">Les mots de passe ne correspondent pas</div>
|
| 219 |
+
</div>
|
| 220 |
+
|
| 221 |
+
<!-- Case à cocher pour les conditions -->
|
| 222 |
+
<div class="flex items-start">
|
| 223 |
+
<div class="flex items-center h-5">
|
| 224 |
+
<input id="terms-and-conditions" name="terms-and-conditions" type="checkbox" required
|
| 225 |
+
class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded">
|
| 226 |
+
</div>
|
| 227 |
+
<div class="ml-3 text-sm">
|
| 228 |
+
<label for="terms-and-conditions" class="font-medium text-gray-700">
|
| 229 |
+
J'accepte les <a href="#" class="text-indigo-600 hover:text-indigo-500">termes et conditions</a> et la <a href="#" class="text-indigo-600 hover:text-indigo-500">politique de confidentialité</a>.
|
| 230 |
+
</label>
|
| 231 |
+
</div>
|
| 232 |
+
</div>
|
| 233 |
+
<div id="terms-error" class="error-message">Vous devez accepter les termes et conditions</div>
|
| 234 |
+
|
| 235 |
+
<!-- Bouton de soumission -->
|
| 236 |
+
<div>
|
| 237 |
+
<button type="submit" id="submit-button"
|
| 238 |
+
class="pulse w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-all duration-200 transform hover:scale-[1.02]">
|
| 239 |
+
Créer mon compte
|
| 240 |
+
</button>
|
| 241 |
+
</div>
|
| 242 |
+
</form>
|
| 243 |
+
|
| 244 |
+
<!-- Séparateur -->
|
| 245 |
+
<div class="relative">
|
| 246 |
+
<div class="absolute inset-0 flex items-center">
|
| 247 |
+
<div class="w-full border-t border-gray-300"></div>
|
| 248 |
+
</div>
|
| 249 |
+
<div class="relative flex justify-center text-sm">
|
| 250 |
+
<span class="px-2 bg-white text-gray-500">Ou continuez avec</span>
|
| 251 |
+
</div>
|
| 252 |
+
</div>
|
| 253 |
+
|
| 254 |
+
<!-- Boutons de connexion sociale -->
|
| 255 |
+
<div class="grid grid-cols-2 gap-3">
|
| 256 |
+
<button type="button" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-150">
|
| 257 |
+
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
| 258 |
+
<path fill-rule="evenodd" d="M20 10c0-5.523-4.477-10-10-10S0 4.477 0 10c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V10h2.54V7.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V10h2.773l-.443 2.89h-2.33v6.988C16.343 19.128 20 14.991 20 10z" clip-rule="evenodd" />
|
| 259 |
+
</svg>
|
| 260 |
+
<span class="ml-2">Facebook</span>
|
| 261 |
+
</button>
|
| 262 |
+
<button type="button" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-150">
|
| 263 |
+
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
| 264 |
+
<path d="M6.29 18.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0020 3.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.073 4.073 0 01.8 7.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 010 16.407a11.616 11.616 0 006.29 1.84" />
|
| 265 |
+
</svg>
|
| 266 |
+
<span class="ml-2">Twitter</span>
|
| 267 |
+
</button>
|
| 268 |
+
</div>
|
| 269 |
+
|
| 270 |
+
<!-- Lien de connexion -->
|
| 271 |
+
<p class="text-center text-sm text-gray-600">
|
| 272 |
+
Vous avez déjà un compte ?
|
| 273 |
+
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500 transition-colors duration-150">
|
| 274 |
+
Se connecter
|
| 275 |
+
</a>
|
| 276 |
+
</p>
|
| 277 |
+
</div>
|
| 278 |
+
</div>
|
| 279 |
+
|
| 280 |
+
<script>
|
| 281 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 282 |
+
// Références aux éléments du DOM
|
| 283 |
+
const form = document.getElementById('registration-form');
|
| 284 |
+
const passwordInput = document.getElementById('password');
|
| 285 |
+
const confirmPasswordInput = document.getElementById('confirm-password');
|
| 286 |
+
const togglePasswordButton = document.getElementById('toggle-password');
|
| 287 |
+
const passwordStrengthBar = document.getElementById('password-strength');
|
| 288 |
+
const termsCheckbox = document.getElementById('terms-and-conditions');
|
| 289 |
+
const submitButton = document.getElementById('submit-button');
|
| 290 |
+
|
| 291 |
+
// Icônes de vérification du mot de passe
|
| 292 |
+
const lengthCheck = document.getElementById('length-check');
|
| 293 |
+
const uppercaseCheck = document.getElementById('uppercase-check');
|
| 294 |
+
const numberCheck = document.getElementById('number-check');
|
| 295 |
+
|
| 296 |
+
// Fonction pour basculer la visibilité du mot de passe
|
| 297 |
+
togglePasswordButton.addEventListener('click', function() {
|
| 298 |
+
const type = passwordInput.getAttribute('type') === 'password' ? 'text' : 'password';
|
| 299 |
+
passwordInput.setAttribute('type', type);
|
| 300 |
+
confirmPasswordInput.setAttribute('type', type);
|
| 301 |
+
|
| 302 |
+
// Changer l'icône
|
| 303 |
+
const icon = togglePasswordButton.querySelector('svg');
|
| 304 |
+
if (type === 'text') {
|
| 305 |
+
icon.innerHTML = '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21" />';
|
| 306 |
+
} else {
|
| 307 |
+
icon.innerHTML = '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />';
|
| 308 |
+
}
|
| 309 |
+
});
|
| 310 |
+
|
| 311 |
+
// Validation en temps réel du mot de passe
|
| 312 |
+
passwordInput.addEventListener('input', function() {
|
| 313 |
+
const password = passwordInput.value;
|
| 314 |
+
let strength = 0;
|
| 315 |
+
|
| 316 |
+
// Vérifier la longueur
|
| 317 |
+
if (password.length >= 8) {
|
| 318 |
+
strength += 1;
|
| 319 |
+
lengthCheck.classList.remove('text-gray-300');
|
| 320 |
+
lengthCheck.classList.add('text-green-500');
|
| 321 |
+
} else {
|
| 322 |
+
lengthCheck.classList.remove('text-green-500');
|
| 323 |
+
lengthCheck.classList.add('text-gray-300');
|
| 324 |
+
}
|
| 325 |
+
|
| 326 |
+
// Vérifier les majuscules
|
| 327 |
+
if (/[A-Z]/.test(password)) {
|
| 328 |
+
strength += 1;
|
| 329 |
+
uppercaseCheck.classList.remove('text-gray-300');
|
| 330 |
+
uppercaseCheck.classList.add('text-green-500');
|
| 331 |
+
} else {
|
| 332 |
+
uppercaseCheck.classList.remove('text-green-500');
|
| 333 |
+
uppercaseCheck.classList.add('text-gray-300');
|
| 334 |
+
}
|
| 335 |
+
|
| 336 |
+
// Vérifier les chiffres
|
| 337 |
+
if (/[0-9]/.test(password)) {
|
| 338 |
+
strength += 1;
|
| 339 |
+
numberCheck.classList.remove('text-gray-300');
|
| 340 |
+
numberCheck.classList.add('text-green-500');
|
| 341 |
+
} else {
|
| 342 |
+
numberCheck.classList.remove('text-green-500');
|
| 343 |
+
numberCheck.classList.add('text-gray-300');
|
| 344 |
+
}
|
| 345 |
+
|
| 346 |
+
// Vérifier les caractères spéciaux
|
| 347 |
+
if (/[^A-Za-z0-9]/.test(password)) {
|
| 348 |
+
strength += 1;
|
| 349 |
+
}
|
| 350 |
+
|
| 351 |
+
// Mettre à jour la barre de force
|
| 352 |
+
passwordStrengthBar.className = 'password-strength strength-' + strength;
|
| 353 |
+
|
| 354 |
+
// Valider la confirmation du mot de passe
|
| 355 |
+
validateConfirmPassword();
|
| 356 |
+
});
|
| 357 |
+
|
| 358 |
+
// Validation de la confirmation du mot de passe
|
| 359 |
+
confirmPasswordInput.addEventListener('input', validateConfirmPassword);
|
| 360 |
+
|
| 361 |
+
function validateConfirmPassword() {
|
| 362 |
+
const password = passwordInput.value;
|
| 363 |
+
const confirmPassword = confirmPasswordInput.value;
|
| 364 |
+
const errorElement = document.getElementById('confirm-password-error');
|
| 365 |
+
|
| 366 |
+
if (confirmPassword && password !== confirmPassword) {
|
| 367 |
+
confirmPasswordInput.classList.add('input-invalid');
|
| 368 |
+
confirmPasswordInput.classList.remove('input-valid');
|
| 369 |
+
errorElement.style.display = 'block';
|
| 370 |
+
} else if (confirmPassword) {
|
| 371 |
+
confirmPasswordInput.classList.add('input-valid');
|
| 372 |
+
confirmPasswordInput.classList.remove('input-invalid');
|
| 373 |
+
errorElement.style.display = 'none';
|
| 374 |
+
} else {
|
| 375 |
+
confirmPasswordInput.classList.remove('input-valid', 'input-invalid');
|
| 376 |
+
errorElement.style.display = 'none';
|
| 377 |
+
}
|
| 378 |
+
}
|
| 379 |
+
|
| 380 |
+
// Validation des termes et conditions
|
| 381 |
+
termsCheckbox.addEventListener('change', function() {
|
| 382 |
+
const errorElement = document.getElementById('terms-error');
|
| 383 |
+
if (termsCheckbox.checked) {
|
| 384 |
+
errorElement.style.display = 'none';
|
| 385 |
+
} else {
|
| 386 |
+
errorElement.style.display = 'block';
|
| 387 |
+
}
|
| 388 |
+
});
|
| 389 |
+
|
| 390 |
+
// Validation du formulaire avant soumission
|
| 391 |
+
form.addEventListener('submit', function(e) {
|
| 392 |
+
e.preventDefault();
|
| 393 |
+
|
| 394 |
+
let isValid = true;
|
| 395 |
+
|
| 396 |
+
// Valider le prénom
|
| 397 |
+
const firstName = document.getElementById('first-name').value;
|
| 398 |
+
const firstNameError = document.getElementById('first-name-error');
|
| 399 |
+
if (!firstName || firstName.length < 2) {
|
| 400 |
+
firstNameError.style.display = 'block';
|
| 401 |
+
isValid = false;
|
| 402 |
+
} else {
|
| 403 |
+
firstNameError.style.display = 'none';
|
| 404 |
+
}
|
| 405 |
+
|
| 406 |
+
// Valider le nom
|
| 407 |
+
const lastName = document.getElementById('last-name').value;
|
| 408 |
+
const lastNameError = document.getElementById('last-name-error');
|
| 409 |
+
if (!lastName || lastName.length < 2) {
|
| 410 |
+
lastNameError.style.display = 'block';
|
| 411 |
+
isValid = false;
|
| 412 |
+
} else {
|
| 413 |
+
lastNameError.style.display = 'none';
|
| 414 |
+
}
|
| 415 |
+
|
| 416 |
+
// Valider l'email
|
| 417 |
+
const email = document.getElementById('email').value;
|
| 418 |
+
const emailError = document.getElementById('email-error');
|
| 419 |
+
if (!email || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
|
| 420 |
+
emailError.style.display = 'block';
|
| 421 |
+
isValid = false;
|
| 422 |
+
} else {
|
| 423 |
+
emailError.style.display = 'none';
|
| 424 |
+
}
|
| 425 |
+
|
| 426 |
+
// Valider le mot de passe
|
| 427 |
+
const password = passwordInput.value;
|
| 428 |
+
const passwordError = document.getElementById('password-error');
|
| 429 |
+
if (!password || password.length < 8) {
|
| 430 |
+
passwordError.style.display = 'block';
|
| 431 |
+
isValid = false;
|
| 432 |
+
} else {
|
| 433 |
+
passwordError.style.display = 'none';
|
| 434 |
+
}
|
| 435 |
+
|
| 436 |
+
// Valider la confirmation du mot de passe
|
| 437 |
+
validateConfirmPassword();
|
| 438 |
+
if (password !== confirmPasswordInput.value) {
|
| 439 |
+
isValid = false;
|
| 440 |
+
}
|
| 441 |
+
|
| 442 |
+
// Valider les termes et conditions
|
| 443 |
+
if (!termsCheckbox.checked) {
|
| 444 |
+
document.getElementById('terms-error').style.display = 'block';
|
| 445 |
+
isValid = false;
|
| 446 |
+
}
|
| 447 |
+
|
| 448 |
+
// Si tout est valide, soumettre le formulaire
|
| 449 |
+
if (isValid) {
|
| 450 |
+
// Animation du bouton de soumission
|
| 451 |
+
submitButton.innerHTML = '<svg class="animate-spin -ml-1 mr-3 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> Création du compte...';
|
| 452 |
+
submitButton.disabled = true;
|
| 453 |
+
|
| 454 |
+
// Simulation d'une requête AJAX
|
| 455 |
+
setTimeout(function() {
|
| 456 |
+
alert('Formulaire soumis avec succès ! (Ceci est une démonstration)');
|
| 457 |
+
submitButton.innerHTML = 'Créer mon compte';
|
| 458 |
+
submitButton.disabled = false;
|
| 459 |
+
}, 2000);
|
| 460 |
+
}
|
| 461 |
+
});
|
| 462 |
+
|
| 463 |
+
// Effets visuels pour les champs au focus
|
| 464 |
+
const inputs = form.querySelectorAll('input');
|
| 465 |
+
inputs.forEach(input => {
|
| 466 |
+
input.addEventListener('focus', function() {
|
| 467 |
+
this.parentElement.classList.add('ring-2', 'ring-indigo-200');
|
| 468 |
+
});
|
| 469 |
+
|
| 470 |
+
input.addEventListener('blur', function() {
|
| 471 |
+
this.parentElement.classList.remove('ring-2', 'ring-indigo-200');
|
| 472 |
+
});
|
| 473 |
+
});
|
| 474 |
+
});
|
| 475 |
+
</script>
|
| 476 |
+
<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=Adamchab/formulaire" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 477 |
+
</html>
|