-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
173 lines (151 loc) · 5.16 KB
/
index.html
File metadata and controls
173 lines (151 loc) · 5.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Student Data</title>
<style>
body {
background-color: #1a1a1a; /* Dark background */
color: #e0e0e0; /* Light text */
font-family: 'Arial', sans-serif; /* Clean font */
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
position: relative; /* For footer positioning */
}
h1 {
color: #bb86fc; /* Purple accent for heading */
font-size: 2rem;
margin-bottom: 1.5rem;
text-align: center;
}
.container {
max-width: 600px;
width: 100%;
padding: 2rem;
background-color: #2c2c2c; /* Darker container background */
border-radius: 12px; /* Rounded corners */
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}
label {
display: block;
margin-bottom: 0.5rem;
color: #bb86fc; /* Purple accent for labels */
font-weight: bold;
}
input[type="text"], input[type="submit"] {
width: 100%;
padding: 0.75rem;
margin-bottom: 1rem;
box-sizing: border-box;
border: 1px solid #444; /* Dark border */
border-radius: 8px; /* Rounded corners */
background-color: #333; /* Dark input background */
color: #e0e0e0; /* Light text */
font-size: 1rem;
outline: none;
transition: border-color 0.3s ease;
}
input[type="text"]:focus {
border-color: #bb86fc; /* Purple accent on focus */
}
input[type="submit"] {
background-color: #bb86fc; /* Purple accent for buttons */
color: #1a1a1a; /* Dark text */
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
background-color: #9a67ea; /* Lighter purple on hover */
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 1.5rem;
}
th, td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid #444; /* Dark border */
}
th {
background-color: #333; /* Dark header background */
color: #bb86fc; /* Purple accent for header text */
font-weight: bold;
}
tbody tr:hover {
background-color: #3a3a3a; /* Hover effect for rows */
}
#studentSaved {
color: #4caf50; /* Green for success message */
text-align: center;
margin-top: 1rem;
}
/* Footer styling */
.footer {
position: absolute;
bottom: 20px;
right: 20px;
display: flex;
align-items: center;
gap: 10px;
color: #bb86fc; /* Purple accent */
font-size: 0.9rem;
}
.footer img {
width: 30px; /* Adjust logo size */
height: 30px;
border-radius: 50%; /* Circular logo */
}
</style>
</head>
<body>
<div class="container">
<h1>Save and View Student Data</h1>
<label for="studentid">Student ID:</label>
<input type="text" name="studentid" id="studentid">
<label for="name">Name:</label>
<input type="text" name="name" id="name">
<label for="class">Class:</label>
<input type="text" name="class" id="class">
<label for="age">Age:</label>
<input type="text" name="age" id="age">
<input type="submit" id="savestudent" value="Save Student Data">
<p id="studentSaved"></p>
<input type="submit" id="getstudents" value="View all Students">
<div id="showStudents">
<table id="studentTable">
<colgroup>
<col style="width:20%">
<col style="width:20%">
<col style="width:20%">
<col style="width:20%">
</colgroup>
<thead>
<tr>
<th>Student ID</th>
<th>Name</th>
<th>Class</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<!-- Student data will be displayed here -->
</tbody>
</table>
</div>
</div>
<!-- Footer with logo and credit -->
<div class="footer">
<span>Created by Waseef Tauqueer</span>
<img src="./Group 3 1.png" alt="Logo"> <!-- Replace with your logo -->
</div>
<script src="scripts.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
</body>
</html>