forked from ISM6225/Assignment_LookAndFeel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.html
More file actions
254 lines (219 loc) · 6.82 KB
/
search.html
File metadata and controls
254 lines (219 loc) · 6.82 KB
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Consumer Complaint Database - Search Complaints</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <!-- Font Awesome for icons -->
<style>
/* Resetting some default browser styles */
body, h1, h2, h3, p {
margin: 0;
padding: 0;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f4f6f8;
color: #3a3a3a;
display: flex;
flex-direction: column;
min-height: 100vh;
}
header {
background: linear-gradient(45deg, #1a1a2e, #16213e);
color: #e0e0e0;
padding: 30px 0;
text-align: center;
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}
nav {
display: flex;
justify-content: space-around;
padding: 20px 0;
background-color: #fff;
box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.08);
}
nav a {
color: #5a5a5a;
padding: 0 10px;
text-decoration: none;
font-weight: 500;
transition: color 0.3s;
}
nav a:hover {
color: #333;
}
.main-content {
flex: 1;
padding: 10px;
margin-top: 20px;
text-align: center;
}
.search-form {
max-width: 500px;
margin: 20px auto 40px auto;
}
.search-bar {
display: flex;
border: 1px solid #ccc;
border-radius: 50px;
overflow: hidden;
background-color: #fff;
}
.search-bar input {
flex: 1;
padding: 15px 20px;
border: none;
font-size: 1em;
outline: none;
}
.search-bar button {
padding: 15px 20px;
border: none;
background-color: #007bff;
color: #fff;
cursor: pointer;
border-radius: 0 50px 50px 0;
transition: background-color 0.3s;
}
.search-bar button:hover {
background-color: #0056b3;
}
/* Table Styles */
table {
max-width: 800px;
margin: 40px auto;
border-collapse: collapse;
width: 100%;
}
table th, table td {
border: 1px solid #ccc;
padding: 10px 15px;
}
table th {
background-color: #f4f6f8;
color: #333;
}
/* Action buttons */
button, .action-btn {
padding: 10px 20px;
border: none;
border-radius: 5px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s;
outline: none;
}
.search-bar button {
background-color: #007bff;
color: #fff;
}
.search-bar button:hover {
background-color: #0056b3;
transform: scale(1.05); /* Slightly enlarges the button */
box-shadow: 3px 3px 15px rgba(0, 56, 179, 0.2);
}
.action-btn {
padding: 7px 10px;
border: none;
cursor: pointer;
transition: transform 0.3s;
border-radius: 4px;
}
.action-btn.edit {
background-color: #4CAF50;
color: white;
margin-right: 10px; /* Space between the buttons */
margin-bottom: 10px;
}
.action-btn.edit:hover {
transform: translateY(-2px) scale(1.1);
}
.action-btn.edit:before {
content: "\f044"; /* Font Awesome Edit Icon */
font-family: "Font Awesome 5 Free";
padding-right: 5px;
font-weight: 900;
}
.action-btn.delete {
background-color: #f44336;
color: white;
}
.action-btn.delete:hover {
transform: translateY(-2px) scale(1.1);
}
.action-btn.delete:before {
content: "\f2ed"; /* Font Awesome Trash Alt Icon */
font-family: "Font Awesome 5 Free";
padding-right: 5px;
font-weight: 900;
}
footer {
background-color: #1a1a2e;
color: #e0e0e0;
text-align: center;
padding: 30px 0;
}
</style>
</head>
<body>
<header>
<h1>Consumer Complaint Database</h1>
</header>
<nav>
<a href="index.html">Home</a>
<a href="search.html">Search Complaints</a>
<a href="submit.html">Submit a Complaint</a>
<a href="aboutus.html">About Us</a>
<a href="graph.html">Graph</a>
</nav>
<div class="main-content">
<h2>Search Complaints</h2>
<p>Enter keywords, company names, or specific issues to search complaints.</p>
<div class="search-form">
<div class="search-bar">
<input type="text" placeholder="Search complaints...">
<button>Search</button>
</div>
</div>
<!-- Displaying Complaints Data -->
<table>
<thead>
<tr>
<th>Date Received</th>
<th>Product</th>
<th>Issue</th>
<th>Company</th>
<th>Action</th> <!-- New column added -->
</tr>
</thead>
<tbody>
<tr>
<td>2023-10-27</td>
<td>Mortgage</td>
<td>Loan modification,collection,foreclosure</td>
<td>WELLS FARGO & COMPANY</td>
<td class="action-btns"> <!-- New cell added -->
<button class="action-btn edit">Edit</button>
<button class="action-btn delete">Delete</button>
</td>
</tr>
<tr>
<td>2023-10-26</td>
<td>Credit reporting</td>
<td>Incorrect information on your report</td>
<td>EQUIFAX, INC.</td>
<td class="action-btns"> <!-- New cell added -->
<button class="action-btn edit">Edit</button>
<button class="action-btn delete">Delete</button>
</td>
</tr>
<!-- Add more rows as necessary -->
</tbody>
</table>
</div>
<footer>
© 2023 Consumer Complaint Database | Follow us on: [Social Icons Here]
</footer>
</body>
</html>