Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>DriveAlert System</title> | |
| <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet"> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: 'Roboto', sans-serif; | |
| }body { | |
| background: linear-gradient(to right, #1d3557, #457b9d); | |
| color: #f1faee; | |
| min-height: 100vh; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| padding: 2rem; | |
| } | |
| .container { | |
| background: #1a1a2e; | |
| border-radius: 20px; | |
| padding: 3rem; | |
| width: 100%; | |
| max-width: 500px; | |
| box-shadow: 0 0 25px rgba(0, 0, 0, 0.5); | |
| animation: slideIn 0.8s ease forwards; | |
| } | |
| @keyframes slideIn { | |
| 0% { | |
| opacity: 0; | |
| transform: translateY(-30px); | |
| } | |
| 100% { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| h2 { | |
| text-align: center; | |
| margin-bottom: 1.5rem; | |
| font-size: 2rem; | |
| } | |
| input, button { | |
| width: 100%; | |
| padding: 1rem; | |
| border: none; | |
| border-radius: 12px; | |
| font-size: 1rem; | |
| margin-bottom: 1rem; | |
| } | |
| input { | |
| background: #f1faee; | |
| color: #1d3557; | |
| } | |
| button { | |
| background: #e63946; | |
| color: white; | |
| cursor: pointer; | |
| transition: background 0.3s ease; | |
| } | |
| button:hover { | |
| background: #d62828; | |
| } | |
| .nav { | |
| margin-top: 2rem; | |
| text-align: center; | |
| } | |
| .nav a { | |
| color: #a8dadc; | |
| text-decoration: none; | |
| font-weight: bold; | |
| margin: 0 1rem; | |
| transition: color 0.3s ease; | |
| } | |
| .nav a:hover { | |
| color: #f1faee; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h2>Enter Mobile Number</h2> | |
| <input type="text" placeholder="Primary Mobile Number" id="primaryNumber"> | |
| <input type="text" placeholder="Secondary Mobile Number (optional)" id="secondaryNumber"> | |
| <button onclick="saveNumbers()">Save Numbers</button><div class="nav"> | |
| <a href="home.html">Home</a> | |
| <a href="history.html">History Logs</a> | |
| </div> | |
| </div> <script> | |
| function saveNumbers() { | |
| const primary = document.getElementById('primaryNumber').value; | |
| const secondary = document.getElementById('secondaryNumber').value; | |
| alert("Mobile numbers saved: " + primary + (secondary ? ", " + secondary : "")); | |
| } | |
| </script></body> | |
| </html> |