-
Notifications
You must be signed in to change notification settings - Fork 0
/
5.html
167 lines (147 loc) · 4.54 KB
/
5.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Feedback Form</title>
<script src="index.js"></script>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #007a80;
color: #333;
}
.container {
max-width: 600px;
margin: 50px auto;
padding: 20px;
background-color: #FFF;
/* White container background */
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
/* Subtle shadow effect */
}
h1 {
text-align: center;
color: #FF5733;
/* Bright orange heading color */
}
form {
margin-top: 20px;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
font-weight: bold;
}
input[type="text"],
textarea {
width: 100%;
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
font-size: 16px;
}
textarea {
height: 100px;
}
.stars {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.stars input {
display: none;
}
.stars label {
font-size: 30px;
color: #FFD700;
/* Gold star color */
cursor: pointer;
}
.stars label:hover,
.stars label:hover~label {
color: #FFA500;
/* Orange color on hover */
}
.stars input:checked~label {
color: #FFA500;
/* Orange color for checked stars */
}
.submit-btn {
display: block;
width: 100%;
padding: 10px;
background-color: #FF5733;
/* Bright orange button color */
color: #FFF;
border: none;
border-radius: 5px;
font-size: 18px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.submit-btn:hover {
background-color: #FF6F61;
/* Darker orange color on hover */
}
.back-btn {
display: block;
margin-top: 20px;
padding: 10px 20px;
background-color: #333;
/* Dark gray button color */
color: #FFF;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.back-btn:hover {
background-color: #555;
/* Slightly darker gray color on hover */
}
</style>
</head>
<body>
<div class="container">
<h1>Feedback Form</h1>
<form action="6.html" method="POST">
<div class="form-group">
<label for="name">Your Name:</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="email">Your Email:</label>
<input type="text" id="email" name="email" required>
</div>
<div class="form-group">
<label for="feedback">Feedback:</label>
<textarea id="feedback" name="feedback" required></textarea>
</div>
<div class="form-group">
<label for="rating">Rating:</label>
<div class="stars">
<input type="radio" id="star5" name="rating" value="5">
<label for="star5">★</label>
<input type="radio" id="star4" name="rating" value="4">
<label for="star4">★</label>
<input type="radio" id="star3" name="rating" value="3">
<label for="star3">★</label>
<input type="radio" id="star2" name="rating" value="2">
<label for="star2">★</label>
<input type="radio" id="star1" name="rating" value="1">
<label for="star1">★</label>
</div>
</div>
<button type="submit" class="submit-btn" >Submit Feedback</button>
</form>
<a href="4.html" class="back-btn">Back</a>
</div>
</body>
</html>