KunalThakare279 commited on
Commit
9c662ba
·
verified ·
1 Parent(s): dd2baec

Upload index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +130 -0
templates/index.html ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- templates/index.html -->
2
+ <!DOCTYPE html>
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>College Predictor</title>
8
+ <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
9
+ <script src="{{ url_for('static', filename='script.js') }}"></script>
10
+ <style>
11
+ body {
12
+ font-family: Arial, sans-serif;
13
+ background-color: #f0f8ff; /* Light blue background */
14
+ color: #333;
15
+ margin: 0;
16
+ padding: 0;
17
+ }
18
+
19
+ h1 {
20
+ text-align: center;
21
+ color: #0044cc;
22
+ }
23
+
24
+ form {
25
+ width: 400px;
26
+ margin: 20px auto;
27
+ padding: 20px;
28
+ background-color: white;
29
+ border-radius: 8px;
30
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
31
+ }
32
+
33
+ label {
34
+ display: block;
35
+ margin-bottom: 8px;
36
+ color: #0044cc;
37
+ font-weight: bold;
38
+ }
39
+
40
+ input[type="number"], select {
41
+ width: 100%;
42
+ padding: 8px;
43
+ margin-bottom: 15px;
44
+ border: 1px solid #ccc;
45
+ border-radius: 4px;
46
+ box-sizing: border-box;
47
+ }
48
+
49
+ button {
50
+ width: 100%;
51
+ padding: 10px;
52
+ background-color: #0044cc;
53
+ color: white;
54
+ border: none;
55
+ border-radius: 4px;
56
+ font-size: 16px;
57
+ cursor: pointer;
58
+ }
59
+
60
+ button:hover {
61
+ background-color: #003399;
62
+ }
63
+
64
+ h2 {
65
+ text-align: center;
66
+ color: #0044cc;
67
+ }
68
+
69
+ ul {
70
+ width: 400px;
71
+ margin: 20px auto;
72
+ padding: 0;
73
+ list-style: none;
74
+ }
75
+
76
+ ul li {
77
+ background-color: #e6f0ff;
78
+ padding: 10px;
79
+ margin-bottom: 10px;
80
+ border-radius: 4px;
81
+ text-align: center;
82
+ }
83
+
84
+ /* Ensure responsiveness for smaller screens */
85
+ @media (max-width: 600px) {
86
+ form, ul {
87
+ width: 90%;
88
+ }
89
+ }
90
+ </style>
91
+ </head>
92
+ <body>
93
+ <h1>College Admission Predictor</h1>
94
+
95
+ <form method="POST">
96
+ <label for="marks">Marks:</label>
97
+ <input type="number" id="marks" name="marks" step="0.01" required>
98
+ <br>
99
+
100
+ <label for="zone">Zone:</label>
101
+ <select id="zone" name="zone" required>
102
+ {% for i in zones %}
103
+ <!-- Select the first zone by default -->
104
+ <option value="{{ i }}" {% if loop.index == 1 %} selected {% endif %}>{{ i }}</option>
105
+ {% endfor %}
106
+ </select>
107
+ <br>
108
+
109
+
110
+ <label for="course">Course:</label>
111
+ <select id="course" name="course" required>
112
+ <!-- Options will be populated based on the selected zone -->
113
+ </select>
114
+ <br>
115
+ <br>
116
+
117
+ <button type="submit">Get Colleges</button>
118
+ </form>
119
+
120
+ <!-- Display the list of colleges -->
121
+ {% if colleges %}
122
+ <h2>Colleges you can get into:</h2>
123
+ <ul>
124
+ {% for college in colleges %}
125
+ <li>{{ college }}</li>
126
+ {% endfor %}
127
+ </ul>
128
+ {% endif %}
129
+ </body>
130
+ </html>