sidhesh01 commited on
Commit
0e94544
·
verified ·
1 Parent(s): 5773d84

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +166 -112
static/index.html CHANGED
@@ -1,112 +1,166 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
6
- <title>SIMATS Result Hub</title>
7
- <link rel="preconnect" href="https://fonts.googleapis.com">
8
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9
- <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap" rel="stylesheet">
10
- <link rel="stylesheet" href="style.css">
11
- </head>
12
- <body>
13
- <!-- Dynamic Animated Background -->
14
- <div class="bg-shapes">
15
- <div class="shape shape-1"></div>
16
- <div class="shape shape-2"></div>
17
- <div class="shape shape-3"></div>
18
- </div>
19
- <div class="noise-overlay"></div>
20
-
21
- <!-- Login View -->
22
- <main class="view-container" id="login-view-container">
23
- <div class="glass-card login-card" id="login-view">
24
- <div class="brand-logo">
25
- <div class="logo-icon">
26
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
27
- </div>
28
- </div>
29
- <header>
30
- <h1>Welcome to SIMATS</h1>
31
- <p class="subtitle">Enter your credentials to continue</p>
32
- </header>
33
-
34
- <div id="error-message" class="error-alert hidden">
35
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>
36
- <span id="error-text">Authentication failed</span>
37
- </div>
38
-
39
- <form id="login-form">
40
- <div class="input-group">
41
- <input type="text" id="username" name="username" required autocomplete="off" placeholder=" ">
42
- <label for="username">Registration Number</label>
43
- <div class="input-highlight"></div>
44
- </div>
45
- <div class="input-group">
46
- <input type="password" id="password" name="password" required placeholder=" ">
47
- <label for="password">Password</label>
48
- <div class="input-highlight"></div>
49
- </div>
50
- <button type="submit" class="btn-glow" id="submit-btn">
51
- <span class="btn-text">Sign In</span>
52
- <span class="loader hidden"></span>
53
- </button>
54
- </form>
55
- </div>
56
- </main>
57
-
58
- <!-- Dashboard View -->
59
- <div id="dashboard-view" class="dashboard-container hidden">
60
- <nav class="glass-nav">
61
- <div class="nav-content">
62
- <div class="nav-brand">
63
- <div class="logo-icon-small">
64
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
65
- </div>
66
- <h2>SIMATS <span class="text-gradient">Result Hub</span></h2>
67
- </div>
68
- <div class="nav-actions">
69
- <div class="user-badge" id="user-display">Student</div>
70
- <button type="button" id="logout-btn" class="btn-icon" title="Sign Out">
71
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>
72
- </button>
73
- </div>
74
- </div>
75
- </nav>
76
-
77
- <main class="dashboard-main">
78
- <!-- Loading State -->
79
- <div id="dashboard-loading" class="loading-overlay">
80
- <div class="circular-loader-wrapper">
81
- <svg class="progress-ring" width="140" height="140">
82
- <circle class="progress-ring__track" stroke="rgba(255,255,255,0.05)" stroke-width="8" fill="transparent" r="60" cx="70" cy="70"/>
83
- <circle class="progress-ring__circle" stroke="url(#gradient)" stroke-width="8" stroke-linecap="round" fill="transparent" r="60" cx="70" cy="70"/>
84
- <defs>
85
- <linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="100%">
86
- <stop offset="0%" stop-color="#f97316" />
87
- <stop offset="50%" stop-color="#ef4444" />
88
- <stop offset="100%" stop-color="#dc2626" />
89
- </linearGradient>
90
- </defs>
91
- </svg>
92
- <div class="percentage-container">
93
- <span class="percentage-text" id="progress-percentage">0</span>
94
- <span class="percentage-sign">%</span>
95
- </div>
96
- </div>
97
- <p class="loading-status" id="progress-text">Connecting to SIMATS...</p>
98
- </div>
99
-
100
- <div id="dashboard-error" class="error-alert hidden" style="max-width: 600px; margin: 40px auto;"></div>
101
-
102
- <!-- Cards Grid -->
103
- <div id="cards-container" class="cards-grid hidden">
104
- <!-- Injected via JS -->
105
- </div>
106
- </main>
107
- </div>
108
-
109
- <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
110
- <script src="script.js?v=2"></script>
111
- </body>
112
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
6
+ <title>SIMATS Result Hub</title>
7
+ <meta name="description" content="SIMATS Result Hub — View your CGPA, grades, and detailed mark splits for all courses.">
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
+ <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap" rel="stylesheet">
11
+ <link rel="stylesheet" href="style.css">
12
+ </head>
13
+ <body>
14
+ <!-- Dynamic Animated Background -->
15
+ <div class="bg-shapes">
16
+ <div class="shape shape-1"></div>
17
+ <div class="shape shape-2"></div>
18
+ <div class="shape shape-3"></div>
19
+ </div>
20
+ <div class="noise-overlay"></div>
21
+
22
+ <!-- Login View -->
23
+ <main class="view-container" id="login-view-container">
24
+ <div class="glass-card login-card" id="login-view">
25
+ <div class="brand-logo">
26
+ <div class="logo-icon">
27
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
28
+ </div>
29
+ </div>
30
+ <header>
31
+ <h1>Welcome to SIMATS</h1>
32
+ <p class="subtitle">Enter your credentials to continue</p>
33
+ </header>
34
+
35
+ <div id="error-message" class="error-alert hidden">
36
+ <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>
37
+ <span id="error-text">Authentication failed</span>
38
+ </div>
39
+
40
+ <form id="login-form">
41
+ <div class="input-group">
42
+ <input type="text" id="username" name="username" required autocomplete="off" placeholder=" ">
43
+ <label for="username">Registration Number</label>
44
+ <div class="input-highlight"></div>
45
+ </div>
46
+ <div class="input-group">
47
+ <input type="password" id="password" name="password" required placeholder=" ">
48
+ <label for="password">Password</label>
49
+ <div class="input-highlight"></div>
50
+ </div>
51
+ <button type="submit" class="btn-glow" id="submit-btn">
52
+ <span class="btn-text">Sign In</span>
53
+ <span class="loader hidden"></span>
54
+ </button>
55
+ </form>
56
+ </div>
57
+ </main>
58
+
59
+ <!-- Dashboard View -->
60
+ <div id="dashboard-view" class="dashboard-container hidden">
61
+ <nav class="glass-nav">
62
+ <div class="nav-content">
63
+ <div class="nav-brand">
64
+ <div class="logo-icon-small">
65
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
66
+ </div>
67
+ <h2>SIMATS <span class="text-gradient">Result Hub</span></h2>
68
+ </div>
69
+ <div class="nav-actions">
70
+ <!-- Menu Tabs -->
71
+ <div class="nav-tabs" id="nav-tabs">
72
+ <button class="nav-tab active" data-tab="home" id="tab-home">
73
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>
74
+ Home
75
+ </button>
76
+ <button class="nav-tab" data-tab="search" id="tab-search">
77
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
78
+ Search
79
+ </button>
80
+ </div>
81
+ <div class="user-badge" id="user-display">Student</div>
82
+ <button type="button" id="logout-btn" class="btn-icon" title="Sign Out">
83
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>
84
+ </button>
85
+ </div>
86
+ </div>
87
+ </nav>
88
+
89
+ <!-- HOME PAGE -->
90
+ <main class="dashboard-main" id="home-page">
91
+ <!-- Loading State -->
92
+ <div id="dashboard-loading" class="loading-overlay">
93
+ <div class="circular-loader-wrapper">
94
+ <svg class="progress-ring" width="140" height="140">
95
+ <circle class="progress-ring__track" stroke="rgba(255,255,255,0.05)" stroke-width="8" fill="transparent" r="60" cx="70" cy="70"/>
96
+ <circle class="progress-ring__circle" stroke="url(#gradient)" stroke-width="8" stroke-linecap="round" fill="transparent" r="60" cx="70" cy="70"/>
97
+ <defs>
98
+ <linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="100%">
99
+ <stop offset="0%" stop-color="#f97316" />
100
+ <stop offset="50%" stop-color="#ef4444" />
101
+ <stop offset="100%" stop-color="#dc2626" />
102
+ </linearGradient>
103
+ </defs>
104
+ </svg>
105
+ <div class="percentage-container">
106
+ <span class="percentage-text" id="progress-percentage">0</span>
107
+ <span class="percentage-sign">%</span>
108
+ </div>
109
+ </div>
110
+ <p class="loading-status" id="progress-text">Connecting to SIMATS...</p>
111
+ </div>
112
+
113
+ <div id="dashboard-error" class="error-alert hidden" style="max-width: 600px; margin: 40px auto;"></div>
114
+
115
+ <!-- Cards Grid -->
116
+ <div id="cards-container" class="cards-grid hidden">
117
+ <!-- Injected via JS -->
118
+ </div>
119
+ </main>
120
+
121
+ <!-- SEARCH PAGE -->
122
+ <main class="dashboard-main hidden" id="search-page">
123
+ <div class="search-section">
124
+ <div class="search-header">
125
+ <h2 class="search-title">Search <span class="text-gradient">Student Results</span></h2>
126
+ <p class="search-subtitle">Enter a register number to view their complete academic performance</p>
127
+ </div>
128
+ <form id="search-form" class="search-bar-wrapper">
129
+ <div class="search-input-group">
130
+ <svg class="search-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
131
+ <input type="text" id="search-register" placeholder="Enter Register Number (e.g. 001XXXXXXXXX)" autocomplete="off" required>
132
+ <button type="submit" class="search-btn" id="search-submit-btn">
133
+ <span class="btn-text">Search</span>
134
+ <span class="loader hidden"></span>
135
+ </button>
136
+ </div>
137
+ </form>
138
+ <div id="search-error" class="error-alert hidden" style="max-width: 600px; margin: 20px auto;"></div>
139
+ </div>
140
+
141
+ <!-- Search Loading -->
142
+ <div id="search-loading" class="loading-overlay hidden">
143
+ <div class="circular-loader-wrapper">
144
+ <svg class="progress-ring" width="140" height="140">
145
+ <circle class="progress-ring__track" stroke="rgba(255,255,255,0.05)" stroke-width="8" fill="transparent" r="60" cx="70" cy="70"/>
146
+ <circle class="progress-ring__circle search-ring-circle" stroke="url(#gradient)" stroke-width="8" stroke-linecap="round" fill="transparent" r="60" cx="70" cy="70"/>
147
+ </svg>
148
+ <div class="percentage-container">
149
+ <span class="percentage-text" id="search-progress-percentage">0</span>
150
+ <span class="percentage-sign">%</span>
151
+ </div>
152
+ </div>
153
+ <p class="loading-status" id="search-progress-text">Searching student records...</p>
154
+ </div>
155
+
156
+ <!-- Search Results Grid -->
157
+ <div id="search-cards-container" class="cards-grid hidden">
158
+ <!-- Injected via JS -->
159
+ </div>
160
+ </main>
161
+ </div>
162
+
163
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
164
+ <script src="script.js?v=3"></script>
165
+ </body>
166
+ </html>