-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
154 lines (142 loc) · 4.98 KB
/
index.html
File metadata and controls
154 lines (142 loc) · 4.98 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="./favicon.jpg">
<title>Earth BioGenome Project</title>
<!-- Add Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
body {
font-family: 'Helvetica Neue', Arial, sans-serif;
background-color: #e9ecef;
margin: 0;
padding: 20px;
color: #495057;
line-height: 1.6;
}
h1 {
text-align: center;
color: #343a40;
margin-bottom: 30px;
font-size: 2.5rem;
}
#content-container {
max-width: 800px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 30px;
}
.category {
background: white;
border-radius: 15px;
padding: 20px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.category-title {
color: #343a40;
margin: 0 0 20px 0;
padding-bottom: 10px;
border-bottom: 2px solid #e9ecef;
font-size: 1.5rem;
}
.links-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 15px;
}
.link {
display: flex;
align-items: center;
background: #6c757d;
color: white;
text-decoration: none;
padding: 15px;
border-radius: 10px;
transition: all 0.3s ease;
gap: 12px;
}
.link:hover {
background: #5a6268;
transform: translateY(-3px);
}
.link:active {
transform: translateY(1px);
}
.link i {
font-size: 1.2rem;
width: 24px;
text-align: center;
}
.link-content {
flex: 1;
}
.link-title {
font-size: 1.1rem;
font-weight: 500;
margin-bottom: 4px;
}
.link-description {
font-size: 0.85rem;
opacity: 0.9;
}
</style>
</head>
<body>
<div style="background-color: #ffd700; padding: 15px; text-align: center; margin-bottom: 20px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);">
<strong>Notice:</strong> This dashboard has moved to <a href="https://earthbiogenome.github.io/dashboard/" style="color: #0066cc; text-decoration: underline;">https://earthbiogenome.github.io/dashboard/</a>. Please update your bookmarks.
</div>
<h1>EBP Dashboard</h1>
<div id="content-container">
<!-- Dynamic content will be loaded here -->
</div>
<script src="config.js"></script>
<script>
const container = document.getElementById('content-container');
pages.forEach(category => {
// Create category container
const categoryDiv = document.createElement('div');
categoryDiv.classList.add('category');
// Add category title
const titleH2 = document.createElement('h2');
titleH2.classList.add('category-title');
titleH2.textContent = category.category;
categoryDiv.appendChild(titleH2);
// Create links container
const linksContainer = document.createElement('div');
linksContainer.classList.add('links-container');
// Add links for this category
category.pages.forEach(page => {
const link = document.createElement('a');
link.classList.add('link');
link.href = page.file;
link.target = '_blank';
link.title = page.description;
// Add icon
const icon = document.createElement('i');
icon.className = `fas ${page.icon}`;
link.appendChild(icon);
// Add content container
const content = document.createElement('div');
content.classList.add('link-content');
// Add title
const title = document.createElement('div');
title.classList.add('link-title');
title.textContent = page.name;
content.appendChild(title);
// Add description
const description = document.createElement('div');
description.classList.add('link-description');
description.textContent = page.description;
content.appendChild(description);
link.appendChild(content);
linksContainer.appendChild(link);
});
categoryDiv.appendChild(linksContainer);
container.appendChild(categoryDiv);
});
</script>
</body>
</html>