-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.html
106 lines (101 loc) · 2.26 KB
/
admin.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html>
<head>
<title>Car Website Admin Panel</title>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#add-car">Add Car</a></li>
<li><a href="#edit-car">Edit Car</a></li>
<li><a href="#delete-car">Delete Car</a></li>
</ul>
</nav>
</header>
<main>
<section id="add-car">
<h2>Add Car</h2>
<form>
<label for="make">Make:</label>
<input type="text" id="make" name="make"><br>
<label for="model">Model:</label>
<input type="text" id="model" name="model"><br>
<label for="year">Year:</label>
<input type="text" id="year" name="year"><br>
<input type="submit" value="Add Car">
</form>
</section>
<section id="edit-car">
<h2>Edit Car</h2>
<form>
<label for="car-id">Car ID:</label>
<input type="text" id="car-id" name="car-id"><br>
<label for="make">Make:</label>
<input type="text" id="make" name="make"><br>
<label for="model">Model:</label>
<input type="text" id="model" name="model"><br>
<label for="year">Year:</label>
<input type="text" id="year" name="year"><br>
<input type="submit" value="Edit Car">
</form>
</section>
<section id="delete-car">
<h2>Delete Car</h2>
<form>
<label for="car-id">Car ID:</label>
<input type="text" id="car-id" name="car-id"><br>
<input type="submit" value="Delete Car">
</form>
</section>
</main>
</body>
</html>
<style>
/* reset default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* set font and background color */
body {
font-family: Arial, sans-serif;
background-color: #f1f1f1;
}
/* style header and navigation */
header {
background-color: #333;
color: #fff;
padding: 20px;
}
header nav ul {
list-style-type: none;
display: flex;
}
header nav ul li {
margin-right: 20px;
}
header nav ul li a {
color: #fff;
text-decoration: none;
}
/* style main content sections */
main {
padding: 20px;
}
main h2 {
margin-bottom: 20px;
}
main form label {
display: block;
margin-bottom: 10px;
}
main form input[type="submit"] {
background-color: #333;
color: #fff;
padding: 10px 20px;
border: none;
cursor: pointer;
}
</style>