[705d6f5] | 1 | @model db_tsh.Models.Customer
|
---|
| 2 |
|
---|
| 3 | @{
|
---|
| 4 | ViewData["Title"] = "Register";
|
---|
| 5 | }
|
---|
| 6 | <!DOCTYPE html>
|
---|
| 7 | <html lang="en">
|
---|
| 8 |
|
---|
| 9 | <head>
|
---|
| 10 | <meta charset="UTF-8">
|
---|
| 11 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
---|
| 12 | <title>@ViewData["Title"]</title>
|
---|
| 13 | <style>
|
---|
| 14 | /* General styles */
|
---|
| 15 | body {
|
---|
| 16 | font-family: Arial, sans-serif;
|
---|
| 17 | background-color: #f8f9fa;
|
---|
| 18 | margin: 0;
|
---|
| 19 | padding: 0;
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | .container {
|
---|
| 23 | max-width: 500px;
|
---|
| 24 | margin: 50px auto;
|
---|
| 25 | padding: 30px;
|
---|
| 26 | background-color: #fff;
|
---|
| 27 | border-radius: 8px;
|
---|
| 28 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | h2 {
|
---|
| 32 | text-align: center;
|
---|
| 33 | margin-bottom: 30px;
|
---|
| 34 | color: #333;
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | /* Form styles */
|
---|
| 38 | .form-group {
|
---|
| 39 | margin-bottom: 20px;
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | .form-label {
|
---|
| 43 | display: block;
|
---|
| 44 | font-weight: bold;
|
---|
| 45 | margin-bottom: 5px;
|
---|
| 46 | color: #555;
|
---|
| 47 | }
|
---|
| 48 |
|
---|
| 49 | .form-control {
|
---|
| 50 | width: 100%;
|
---|
| 51 | padding: 10px;
|
---|
| 52 | font-size: 16px;
|
---|
| 53 | border: 1px solid #ccc;
|
---|
| 54 | border-radius: 5px;
|
---|
| 55 | transition: border-color 0.3s;
|
---|
| 56 | }
|
---|
| 57 |
|
---|
| 58 | .form-control:focus {
|
---|
| 59 | outline: none;
|
---|
| 60 | border-color: #007bff;
|
---|
| 61 | }
|
---|
| 62 |
|
---|
| 63 | .text-danger {
|
---|
| 64 | color: #dc3545;
|
---|
| 65 | }
|
---|
| 66 |
|
---|
| 67 | /* Button styles */
|
---|
| 68 | .btn-primary {
|
---|
| 69 | display: block;
|
---|
| 70 | width: 100%;
|
---|
| 71 | padding: 10px;
|
---|
| 72 | color: #fff;
|
---|
| 73 | background-color: #007bff;
|
---|
| 74 | border: none;
|
---|
| 75 | border-radius: 5px;
|
---|
| 76 | cursor: pointer;
|
---|
| 77 | font-size: 16px;
|
---|
| 78 | transition: background-color 0.3s;
|
---|
| 79 | }
|
---|
| 80 |
|
---|
| 81 | .btn-primary:hover {
|
---|
| 82 | background-color: #0056b3;
|
---|
| 83 | }
|
---|
| 84 | </style>
|
---|
| 85 | </head>
|
---|
| 86 |
|
---|
| 87 | <body>
|
---|
| 88 | <div class="container">
|
---|
| 89 | <h2>@ViewData["Title"]</h2>
|
---|
| 90 | <form asp-action="Register" method="post">
|
---|
| 91 | <div class="form-group">
|
---|
| 92 | <label asp-for="Name" class="form-label">Name</label>
|
---|
| 93 | <input asp-for="Name" class="form-control" />
|
---|
| 94 | <span asp-validation-for="Name" class="text-danger"></span>
|
---|
| 95 | </div>
|
---|
| 96 | <div class="form-group">
|
---|
| 97 | <label asp-for="Email" class="form-label">Email</label>
|
---|
| 98 | <input asp-for="Email" class="form-control" />
|
---|
| 99 | <span asp-validation-for="Email" class="text-danger"></span>
|
---|
| 100 | </div>
|
---|
| 101 | <div class="form-group">
|
---|
| 102 | <label asp-for="Password" class="form-label">Password</label>
|
---|
| 103 | <input asp-for="Password" type="password" class="form-control" />
|
---|
| 104 | <span asp-validation-for="Password" class="text-danger"></span>
|
---|
| 105 | </div>
|
---|
| 106 | <button type="submit" class="btn btn-primary">Register</button>
|
---|
| 107 | </form>
|
---|
| 108 | </div>
|
---|
| 109 | </body>
|
---|
| 110 |
|
---|
| 111 | </html>
|
---|