Spaces:
Running
Running
Update static/index.html
Browse files- 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 |
-
<
|
| 8 |
-
<link rel="preconnect" href="https://fonts.
|
| 9 |
-
<link href="https://fonts.
|
| 10 |
-
<link
|
| 11 |
-
<
|
| 12 |
-
<
|
| 13 |
-
|
| 14 |
-
<
|
| 15 |
-
|
| 16 |
-
<div class="shape shape-
|
| 17 |
-
<div class="shape shape-
|
| 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 |
-
<div
|
| 46 |
-
|
| 47 |
-
<
|
| 48 |
-
<
|
| 49 |
-
|
| 50 |
-
<
|
| 51 |
-
|
| 52 |
-
<span class="
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
<
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
<
|
| 67 |
-
|
| 68 |
-
<div
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>
|