Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (66 loc) · 3.35 KB
/
Copy pathindex.html
File metadata and controls
72 lines (66 loc) · 3.35 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
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FAST Repository</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
// DARK MODE (GitHub Style)
darkNav: '#010409',
darkPage: '#0d1117',
darkCard: '#161b22',
darkBorder: '#30363d',
// NEW LIGHT MODE (PC-Friendly Muted Slate)
lightNav: '#b8bfc6', // Darkest - The Top Bar
lightPage: '#ced4da', // Middle - The Background
lightCard: '#e9ecef', // Lightest - The Course Cards
lightBorder: '#adb5bd' // Border contrast
}
}
}
}
</script>
</head>
<body class="bg-lightPage dark:bg-darkPage text-gray-900 dark:text-gray-100 min-h-screen flex flex-col transition-colors">
<nav id="navbar" class="border-b border-lightBorder dark:border-darkBorder bg-lightNav dark:bg-darkNav sticky top-0 z-50"></nav>
<div id="campusModal" class="hidden fixed inset-0 z-[100] bg-black/60 backdrop-blur-sm items-center justify-center p-4" onclick="if(event.target === this) hideReminder()">
<div class="bg-lightCard dark:bg-darkCard w-full max-w-md rounded-[2.5rem] p-8 shadow-2xl relative border border-blue-500/20">
<button onclick="hideReminder()" class="absolute top-6 right-6 text-gray-400 hover:text-black dark:hover:text-white text-xl">✕</button>
<div class="h-16 w-16 bg-blue-500/10 rounded-2xl flex items-center justify-center mb-6">
<img src="assets/locationEmoji.png" class="h-10 w-10" />
</div>
<h3 class="text-2xl font-black text-gray-900 dark:text-white mb-2 leading-tight">Hey Buddy!</h3>
<p class="text-gray-600 dark:text-gray-400 font-medium mb-8">Please select your campus from the top right corner first, so we gather up the right resources for ya!</p>
<button onclick="document.getElementById('locBtn').click(); hideReminder();" class="w-full py-4 bg-blue-600 hover:bg-blue-700 text-white rounded-2xl font-black tracking-wide shadow-lg shadow-blue-500/30 transition-all">
OK
</button>
</div>
</div>
<main class="flex-grow max-w-6xl mx-auto w-full p-6">
<div class="relative mb-12">
<input
id="searchInput"
type="text"
placeholder="Search by course name, code, or slug (pf, oop...)"
class="w-full p-5 pl-6 rounded-2xl bg-lightCard dark:bg-darkCard border-2 border-transparent focus:border-blue-500 dark:border-darkBorder shadow-xl outline-none transition-all font-bold"
/>
</div>
<div id="courseList" class="grid sm:grid-cols-2 md:grid-cols-3 gap-8"></div>
</main>
<footer id="footer" class="py-3 bg-lightNav dark:bg-darkNav border-t border-lightBorder dark:border-darkBorder"></footer>
<script src="js/theme.js"></script>
<script src="js/navbar.js"></script>
<script src="js/footer.js"></script>
<script src="js/home.js"></script>
<script>
renderNavbar({ title: "Open-source FAST Repository" });
renderFooter();
</script>
</body>
</html>