Repository navigation
Expand file tree
/
Copy pathNews.html
More file actions
69 lines (57 loc) · 3.1 KB
/
Copy pathNews.html
File metadata and controls
69 lines (57 loc) · 3.1 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" data-i18n-page-title="news.title">
<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" defer></script>
<!-- Custom Shared Resources -->
<link rel="stylesheet" href="css/style.css">
<script src="js/i18n.js" defer></script>
<script src="js/common.js" defer></script>
<!-- Data + logic (defer preserves document order) -->
<script src="js/i18n-content.js" defer></script>
<script src="js/newsdata.js" defer></script>
<script src="js/imagedata.js" defer></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" data-i18n="news.heading">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" data-i18n="news.archive">News Archive</h4>
<div class="archive-tabs flex">
<button onclick="filterNews('All')" data-news-filter="All" data-i18n="common.all">All</button>
<button onclick="filterNews('2025')">2025</button>
<button onclick="filterNews('2024')">2024</button>
<button onclick="filterNews('Archive')" data-news-filter="Archive" data-i18n="common.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)" data-i18n="common.previous">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)" data-i18n="common.next">Next</button>
</div>
</div>
</div>
<!-- Footer is injected here by common.js -->
</body>
</html>