-
Notifications
You must be signed in to change notification settings - Fork 228
Expand file tree
/
Copy pathbase.html
More file actions
208 lines (184 loc) · 7.39 KB
/
Copy pathbase.html
File metadata and controls
208 lines (184 loc) · 7.39 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
{% if title %}{{ title }}{% else %}Achievement Management System{% endif
%}
</title>
<link
rel="stylesheet"
href="{{ url_for('static', filename='styles.css') }}"
/>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/@studio-freight/lenis@1.0.42/dist/lenis.min.js"></script>
</head>
<body class="light-mode">
<!-- Header/Navbar -->
<header class="header">
<nav class="navbar">
<div class="nav-brand">
<h2>Achievement Management System</h2>
</div>
<ul class="nav-menu">
<li><a href="{{ url_for('home') }}">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#contact">Contact</a></li>
{% if session.get('student_id') %}
<li><a href="{{ url_for('student-dashboard') }}">Dashboard</a></li>
{% elif session.get('teacher_id') %}
<li><a href="{{ url_for('teacher-dashboard') }}">Dashboard</a></li>
{% else %}
<li><a href="{{ url_for('student') }}">Student Login</a></li>
<li><a href="{{ url_for('teacher') }}">Teacher Login</a></li>
{% endif %}
<li><a href="#FAQ">FAQ</a></li>
</ul>
<div class="nav-right">
<button id="mode-toggle" class="theme-toggle" aria-label="Toggle theme">🌙</button>
<div class="nav-toggle" aria-label="Toggle navigation">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
</div>
</nav>
</header>
<!-- Main Content -->
<main class="main-content">{% block content %}{% endblock %}</main>
<!-- Footer -->
<footer class="footer">
<div class="footer-content">
<section class="footer-section footer-brand" aria-labelledby="footer-brand-heading">
<span class="footer-kicker">Academic excellence tracker</span>
<h3 id="footer-brand-heading">Achievement Management System</h3>
<p>
A focused platform for recording student milestones, managing
teacher submissions, and keeping academic achievements organized.
</p>
<div class="footer-actions" aria-label="Account shortcuts">
{% if session.get('student_id') %}
<a href="{{ url_for('student-dashboard') }}">Student Dashboard</a>
{% elif session.get('teacher_id') %}
<a href="{{ url_for('teacher-dashboard') }}">Teacher Dashboard</a>
{% else %}
<a href="{{ url_for('student') }}">Student Login</a>
<a href="{{ url_for('teacher') }}">Teacher Login</a>
{% endif %}
</div>
</section>
<nav class="footer-section" aria-labelledby="footer-links-heading">
<h3 id="footer-links-heading">Quick Links</h3>
<ul class="footer-links">
<li><a href="{{ url_for('home') }}">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#FAQ">FAQ</a></li>
<li><a href="{{ url_for('privacy_policy') }}">Privacy Policy</a></li>
<li><a href="{{ url_for('terms') }}">Terms & Conditions</a></li>
</ul>
</nav>
<section class="footer-section footer-contact-card" aria-labelledby="footer-contact-heading">
<h3 id="footer-contact-heading">Contact</h3>
<address class="footer-contact">
<span>Email</span>
<a href="mailto:info@achievement-system.com">info@achievement-system.com</a>
<span>Phone</span>
<a href="tel:+11234567890">+1 (123) 456-7890</a>
<span>Location</span>
<p>SRM Institute of Science and Technology</p>
</address>
</section>
</div>
<div class="footer-bottom">
<p>
© 2026 Achievement Management System. All rights reserved.
</p>
<p>Developed at SRM Institute of Science and Technology.</p>
</div>
</footer>
<!--Scroll to Up button-->
<button id="scrollTopBtn" aria-label="Scroll to top" title="Scroll to top">↑</button>
<script>
// Theme toggle functionality
document.addEventListener("DOMContentLoaded", function () {
const themeToggle = document.getElementById("mode-toggle");
const body = document.body;
// Check for saved theme preference
const savedTheme = localStorage.getItem("theme");
if (savedTheme === "dark") {
body.classList.remove("light-mode");
} else {
body.classList.add("light-mode");
}
themeToggle.addEventListener("click", function () {
body.classList.toggle("light-mode");
const isLightMode = body.classList.contains("light-mode");
localStorage.setItem("theme", isLightMode ? "light" : "dark");
// Update icon
themeToggle.textContent = isLightMode ? "🌙" : "☀️";
});
// Set initial icon based on theme
const isLightMode = body.classList.contains("light-mode");
themeToggle.textContent = isLightMode ? "🌙" : "☀️";
const lenis = new Lenis({
duration: 1.2,
smoothWheel: true,
});
function raf(time) {
lenis.raf(time);
requestAnimationFrame(raf);
}
requestAnimationFrame(raf);
document.querySelectorAll('a[href^="#"]').forEach((anchor) => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute("href"));
if (target) {
lenis.scrollTo(target, {
offset: -140,
duration: 1.2,
});
}
});
});
});
// Mobile menu toggle
const navToggle = document.querySelector(".nav-toggle");
const navMenu = document.querySelector(".nav-menu");
navToggle.addEventListener("click", function () {
navMenu.classList.toggle("active");
navToggle.classList.toggle("active");
});
// Close mobile menu when a link is clicked
document.querySelectorAll('.nav-menu a').forEach(link => {
link.addEventListener('click', () => {
navMenu.classList.remove('active');
navToggle.classList.remove('active');
});
});
// Scroll-to-top button logic
const scrollBtn = document.getElementById("scrollTopBtn");
window.addEventListener("scroll", () => {
if (window.scrollY > 300) {
scrollBtn.style.display = "block";
} else {
scrollBtn.style.display = "none";
}
});
scrollBtn.addEventListener("click", () => {
if (typeof lenis !== "undefined") {
lenis.scrollTo(0, { duration: 1.2 });
} else {
window.scrollTo({ top: 0, behavior: "smooth" });
}
});
</script>
</body>
</html>