diff --git a/code/register.html b/code/register.html new file mode 100644 index 0000000000000000000000000000000000000000..038a837324e3ca100aaa195d24c9df9ace9ea725 --- /dev/null +++ b/code/register.html @@ -0,0 +1,119 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Inscription</title> + <link rel="stylesheet" href="style.css"> + <style> + body { + font-family: Arial, sans-serif; + background-color: #f9f9f9; + margin: 0; + padding: 0; + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + } + + .container { + width: 100%; + max-width: 400px; + background: #fff; + padding: 20px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); + border-radius: 8px; + } + + h1 { + text-align: center; + color: #333; + } + + form { + display: flex; + flex-direction: column; + } + + label { + margin-top: 10px; + font-weight: bold; + } + + input, select, button { + padding: 10px; + margin-top: 5px; + border: 1px solid #ddd; + border-radius: 5px; + font-size: 14px; + } + + input:focus, select:focus { + border-color: #007BFF; + outline: none; + } + + button { + background-color: #007BFF; + color: white; + border: none; + padding: 10px; + margin-top: 20px; + cursor: pointer; + font-size: 16px; + } + + button:hover { + background-color: #0056b3; + } + + .links { + text-align: center; + margin-top: 15px; + } + + .links a { + text-decoration: none; + color: #007BFF; + } + + .links a:hover { + text-decoration: underline; + } + </style> +</head> +<body> + <div class="container"> + <h1>Register</h1> + <form action="register.php" method="POST"> + <label for="first_name">First Name:</label> + <input type="text" id="first_name" name="first_name" required> + + <label for="last_name">Last Name:</label> + <input type="text" id="last_name" name="last_name" required> + + <label for="email">Email:</label> + <input type="email" id="email" name="email" required> + + <label for="password">Password:</label> + <input type="password" id="password" name="password" required> + + <label for="role">Role:</label> + <select id="role" name="role" required> + <option value="student">Student</option> + <option value="tutor">Tutor</option> + </select> + + <label for="specialty">Specialty (for Tutors):</label> + <input type="text" id="specialty" name="specialty" placeholder="Optional for tutors"> + + <button class="animated infinite pulse button btn btn-info" type="submit">Register</button> + <button class="animated infinite pulse button btn btn-info" onclick="window.location.href='index.php'">Retour</button> + </form> + <div class="links"> + + </div> + </div> +</body> +</html>