-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlore_hub.html
More file actions
214 lines (186 loc) · 7.81 KB
/
lore_hub.html
File metadata and controls
214 lines (186 loc) · 7.81 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
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MirAi Databook</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* --- CẤU TRÚC CHUNG (DESKTOP) --- */
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.container {
flex: 1;
width: 100%;
max-width: 1100px;
margin: 0 auto;
padding: 40px 20px;
}
/* HEADER */
.hub-header.glass-box {
text-align: center;
backdrop-filter: blur(5px);
padding: 30px;
margin-bottom: 40px;
}
.hub-header h1 {
font-size: 2.5rem;
color: var(--primary);
margin-bottom: 10px;
}
/* GRID */
.databook-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
}
/* CARD STYLE (MẶC ĐỊNH) */
.module-card {
display: block;
padding: 30px 20px;
height: 100%; /* Desktop thì để 100% cho đều hàng */
background: var(--glass);
backdrop-filter: blur(10px);
border: 1px solid var(--glass-border);
border-radius: 16px;
text-align: center;
text-decoration: none;
color: inherit;
box-shadow: var(--shadow);
transition: transform 0.2s;
}
.module-card:hover {
transform: translateY(-5px);
border-color: var(--primary);
}
.module-icon {
font-size: 3rem;
margin-bottom: 15px;
color: var(--primary);
}
.module-title {
font-weight: 700;
font-size: 1.2rem;
color: var(--text-main);
margin-bottom: 10px;
}
.module-desc {
font-size: 0.95rem;
color: var(--text-muted);
line-height: 1.4;
}
/* --- 📱 MOBILE RESPONSIVE (FIX LỖI CỦA ÔNG Ở ĐÂY) --- */
@media (max-width: 768px) {
.container {
padding: 20px 15px; /* Giảm lề cho đỡ chật */
display: block; /* Bỏ flex center dọc, để nó trôi tự nhiên */
}
.hub-header.glass-box {
padding: 20px;
margin-bottom: 25px; /* Giảm khoảng cách dưới header */
}
.hub-header h1 {
font-size: 1.8rem; /* Tên bé lại cho vừa màn hình */
}
.databook-grid {
grid-template-columns: 1fr; /* Ép về 1 cột duy nhất */
gap: 20px; /* Khoảng cách giữa các thẻ nhỏ hơn */
}
.module-card {
height: auto; /* QUAN TRỌNG: Để thẻ tự co lại theo nội dung, không bị kéo dãn */
min-height: auto;
padding: 20px 15px; /* Card nhỏ gọn hơn */
display: flex; /* Dùng flex để căn chỉnh icon và chữ ngang hàng (tùy chọn) hoặc dọc */
flex-direction: column; /* Vẫn xếp dọc nhưng gọn */
align-items: center;
}
.module-icon {
font-size: 2.5rem; /* Icon nhỏ lại chút */
margin-bottom: 10px;
}
.module-title {
font-size: 1.1rem;
}
}
</style>
</head>
<body>
<div class="container">
<!-- HEADER -->
<header class="hub-header glass-box">
<h1><i class="fas fa-book-open"></i> MIRAI DATABOOK</h1>
<p class="tagline">Cơ sở dữ liệu về Vũ trụ MirAi.</p>
<div style="display: flex; justify-content: center; gap: 10px; margin-top: 20px;">
<a href="index.html" class="btn btn-outline">⬅ Quay về truyện chính</a>
<button class="btn" onclick="toggleTheme()">🌙 Đổi Giao Diện</button>
</div>
</header>
<!-- GRID MODULES -->
<main class="databook-grid">
<!-- 1. Wiki -->
<a href="list.html?db=wiki" class="module-card">
<div class="module-icon"><i class="fas fa-users"></i></div>
<div class="module-title">Wiki Nhân Vật</div>
<div class="module-desc">Thông tin định danh.</div>
</a>
<!-- 2. Tech -->
<a href="list.html?db=tech" class="module-card">
<div class="module-icon"><i class="fas fa-cogs"></i></div>
<div class="module-title">Cây Công Nghệ</div>
<div class="module-desc">Giải mã công nghệ lõi trong thế giới MirAi.</div>
</a>
<!-- 3. Prequel -->
<a href="list.html?db=prequel" class="module-card">
<div class="module-icon"><i class="fas fa-history"></i></div>
<div class="module-title">Tiền Truyện</div>
<div class="module-desc">Sự kiện quá khứ.</div>
</a>
<!-- 4. Arcs -->
<a href="list.html?db=arcs" class="module-card">
<div class="module-icon"><i class="fas fa-sitemap"></i></div>
<div class="module-title">Tổng Quan Cốt Truyện</div>
<div class="module-desc">Dòng thời gian trong thế giới MirAi.</div>
</a>
</main>
</div>
<!-- SCRIPT -->
<script src="config.js"></script>
<script src="js/script.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
applyUserSettings();
if (typeof CONFIG !== 'undefined' && CONFIG.bgImage) {
document.body.style.backgroundImage = `url('${CONFIG.bgImage}')`;
}
});
</script>
<!-- FOOTER -->
<footer style="text-align: center; margin-top: auto; padding: 20px; background: var(--glass); backdrop-filter: blur(10px); border-top: 1px solid var(--glass-border); color: var(--text-main);">
<div style="margin-bottom: 15px;">
<a id="fb-link" href="#" target="_blank" style="text-decoration: none; margin: 0 10px; color: #1877F2; font-weight: bold; font-size: 1.2rem; text-shadow: 0 0 5px rgba(255,255,255,0.5);">
<i class="fab fa-facebook"></i> Facebook
</a>
<a id="dc-link" href="#" target="_blank" style="text-decoration: none; margin: 0 10px; color: #5865F2; font-weight: bold; font-size: 1.2rem; text-shadow: 0 0 5px rgba(255,255,255,0.5);">
<i class="fab fa-discord"></i> Discord
</a>
</div>
<div style="font-size: 0.9rem; opacity: 0.9;">
<span>👀 Lượt truy cập: <span id="busuanzi_value_site_pv" style="font-weight: bold; color: var(--primary);">...</span></span>
<span style="margin: 0 10px;">|</span>
<span>👤 Người đọc: <span id="busuanzi_value_site_uv" style="font-weight: bold; color: var(--primary);">...</span></span>
</div>
<p style="font-size: 0.8rem; opacity: 0.7; margin-top: 10px;">© 2025 MirAi Project - NamuTachi</p>
</footer>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<script>
if(typeof CONFIG !== 'undefined') {
document.getElementById('fb-link').href = CONFIG.social.facebook;
document.getElementById('dc-link').href = CONFIG.social.discord;
}
</script>
</body>
</html>