-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNews.html
More file actions
69 lines (56 loc) · 2.77 KB
/
News.html
File metadata and controls
69 lines (56 loc) · 2.77 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DASH LAB - News</title>
<!-- External Libraries -->
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/flickity@2/dist/flickity.min.css">
<script src="https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js"></script>
<!-- Custom Shared Resources -->
<link rel="stylesheet" href="css/style.css">
<script src="js/common.js"></script>
<!-- Data Scripts (Load before logic) -->
<script src="js/newsdata.js"></script>
<script src="js/imagedata.js"></script>
<!-- Logic Script -->
<script src="js/news.js" defer></script>
</head>
<body class="bg-gray-50 flex flex-col min-h-screen">
<!-- Navbar is injected here by common.js -->
<div class="container mx-auto px-4 pt-8 max-w-6xl flex-grow">
<h1 class="text-4xl font-bold text-gray-900 mb-8 text-center md:text-left">News & Events</h1>
<!-- Flickity Carousel -->
<!-- Added id="news-carousel" so js/news.js can find it -->
<div id="news-carousel" class="carousel w-full">
<!-- Images will be injected here by news.js -->
</div>
<!-- News Archive -->
<div class="archive-card">
<div class="archive-header">
<i class="fas fa-file-alt text-2xl mr-3 text-blue-700"></i>
<h4 class="text-2xl font-bold text-gray-900 flex-grow">News Archive</h4>
<div class="archive-tabs flex">
<button onclick="filterNews('All')">All</button>
<button onclick="filterNews('2025')">2025</button>
<button onclick="filterNews('2024')">2024</button>
<button onclick="filterNews('Archive')">Archive</button>
</div>
</div>
<!-- News List Container -->
<div id="news-archive-container" class="space-y-1">
<!-- News items will be rendered here by JavaScript -->
</div>
<!-- Pagination -->
<div class="pagination-controls flex justify-center items-center mt-6">
<button id="prev-page-btn" onclick="changePage(-1)">Previous</button>
<span id="page-info" class="text-sm font-medium text-gray-600 px-4">Page 0 of 0</span>
<button id="next-page-btn" onclick="changePage(1)">Next</button>
</div>
</div>
</div>
<!-- Footer is injected here by common.js -->
</body>
</html>