-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudent-portal.html
73 lines (72 loc) · 1.47 KB
/
student-portal.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
<!DOCTYPE html>
<html>
<head>
<title>Student Portal</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
h1 {
text-align: center;
margin-top: 50px;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 50px;
}
input[type="text"], input[type="password"], select {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type="submit"] {
background-color: #4CAF50;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
margin-top: 20px;
}
input[type="submit"]:hover {
background-color: #3e8e41;
}
.form-container {
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
width: 50%;
max-width: 500px;
}
p {
text-align: center;
}
</style>
</head>
<body>
<h1>Welcome,{{name}}</h1>
<div class="container">
<div class="form-container">
<form action="/student-portal" method="POST">
<label for="id">Enter your ID:</label>
<input type="text" id="id" name="id" placeholder="Enter your student ID...">
<input type="submit" value="Show Results">
</form>
{%if msg%}
<p><b>{{msg}}</b> </p>
{%endif%}
<br>
<br>
<p><b>Register course here<a href="{{url_for('course')}}">Register</a></b></p>
</div>
</div>
</body>
</html>