-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.html
More file actions
381 lines (339 loc) · 12.8 KB
/
home.html
File metadata and controls
381 lines (339 loc) · 12.8 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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>今日热榜 HOT! - Comic Style</title>
<style>
/* 引入一种有点漫画感的英文字体,这里用相对普遍的无衬线字体模拟 */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap');
:root {
--color-yellow: #FFD000;
--color-cyan: #00FFFF;
--color-magenta: #FF00FF;
--color-green: #50C878;
--color-bg: #f4f4f4;
--border-width: 4px;
--shadow-offset: 6px;
}
body {
font-family: 'Roboto', sans-serif;
background-color: var(--color-bg);
/* 半调圆点背景效果 */
background-image: radial-gradient(#d0d0d0 2px, transparent 2px);
background-size: 15px 15px;
margin: 0;
padding: 20px;
color: #000;
}
/* 漫画风基础盒子样式 */
.comic-box {
border: var(--border-width) solid #000;
box-shadow: var(--shadow-offset) var(--shadow-offset) 0px #000;
background-color: #fff;
position: relative;
}
/* --- 导航栏 --- */
.header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 30px;
padding: 10px 0;
border-bottom: 4px solid #000;
}
.logo {
background-color: var(--color-yellow);
padding: 10px 20px;
font-family: 'Oswald', sans-serif;
font-size: 28px;
font-weight: bold;
font-style: italic;
text-transform: uppercase;
letter-spacing: 2px;
}
.nav-links {
display: flex;
gap: 20px;
font-family: 'Oswald', sans-serif;
font-weight: bold;
font-style: italic;
}
.search-bar {
display: flex;
align-items: center;
border: 3px solid #000;
border-radius: 20px;
padding: 5px 15px;
background: #fff;
box-shadow: 3px 3px 0 #000;
width: 300px;
}
.search-bar input {
border: none;
outline: none;
width: 100%;
font-family: 'Oswald', sans-serif;
font-style: italic;
}
.avatar {
width: 40px;
height: 40px;
border-radius: 50%;
border: 3px solid #000;
background-color: #ccc;
}
/* --- 顶部主要内容区 --- */
.hero-section {
display: grid;
grid-template-columns: 2.5fr 1fr;
gap: 20px;
margin-bottom: 30px;
}
.main-news {
background-color: #666; /* 占位背景色 */
height: 400px;
display: flex;
flex-direction: column;
justify-content: flex-end;
overflow: hidden;
}
.main-news-text {
background: #fff;
padding: 20px;
border-top: var(--border-width) solid #000;
border-right: var(--border-width) solid #000;
width: 60%;
}
.main-news-text h1 {
margin: 0 0 10px 0;
font-family: 'Oswald', sans-serif;
font-style: italic;
font-size: 24px;
}
.main-news-text p {
margin: 0;
color: var(--color-magenta);
font-weight: bold;
font-style: italic;
}
.sticker {
position: absolute;
top: 20px;
right: 20px;
background: var(--color-yellow);
padding: 5px 15px;
font-weight: bold;
font-style: italic;
transform: rotate(-10deg);
border: 3px solid #000;
}
.side-news {
display: flex;
flex-direction: column;
gap: 20px;
}
.prompt-box { background-color: var(--color-cyan); padding: 15px; height: 100%;}
.briefing-box { background-color: var(--color-magenta); padding: 15px; height: 100%; color: white;}
.box-title {
font-family: 'Oswald', sans-serif;
font-style: italic;
font-size: 20px;
margin-top: 0;
}
.code-block {
background: #fff;
border: 3px solid #000;
padding: 10px;
font-family: monospace;
font-size: 12px;
color: #000;
margin-bottom: 10px;
}
.btn {
background: #000;
color: #fff;
padding: 5px 10px;
float: right;
font-weight: bold;
font-style: italic;
cursor: pointer;
}
.btn-white {
background: #fff;
color: #000;
width: 100%;
padding: 10px;
text-align: center;
border: 3px solid #000;
font-weight: bold;
font-style: italic;
cursor: pointer;
box-sizing: border-box;
margin-top: auto;
}
/* --- 社交媒体图标区 --- */
.social-icons {
display: flex;
justify-content: center;
gap: 15px;
margin-bottom: 30px;
}
.social-icon {
width: 50px;
height: 50px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
font-size: 10px;
font-weight: bold;
}
.social-icon .img-placeholder {
width: 30px; height: 30px; background: #eee; border: 2px solid #000; border-radius: 5px; margin-bottom: 5px;
}
/* --- 底部新闻列 --- */
.news-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.news-column {
display: flex;
flex-direction: column;
}
.news-header {
padding: 10px;
font-family: 'Oswald', sans-serif;
font-style: italic;
font-size: 18px;
border-bottom: var(--border-width) solid #000;
display: flex;
justify-content: space-between;
align-items: center;
}
.col-yellow .news-header { background-color: var(--color-yellow); }
.col-cyan .news-header { background-color: var(--color-cyan); }
.col-magenta .news-header { background-color: var(--color-magenta); color: #fff;}
.col-green .news-header { background-color: var(--color-green); }
.news-list {
padding: 15px;
flex-grow: 1;
}
.news-item {
display: flex;
margin-bottom: 15px;
font-size: 13px;
font-weight: 500;
}
.news-number {
font-size: 20px;
font-weight: bold;
font-style: italic;
margin-right: 10px;
}
.col-yellow .news-number { color: var(--color-magenta); }
.col-cyan .news-number { color: var(--color-magenta); }
.col-magenta .news-number { color: var(--color-yellow); }
.col-green .news-number { color: #f00; }
.news-footer {
background: #000;
color: #fff;
text-align: center;
padding: 5px;
font-size: 10px;
font-style: italic;
font-family: 'Oswald', sans-serif;
}
</style>
</head>
<body>
<header class="header">
<div class="logo comic-box">今日热榜 HOT!</div>
<div class="nav-links">
<span>HOME</span> <span>EVENING</span> <span>TRENDS</span> <span>TECH</span> <span>AI NEWS</span>
</div>
<div class="search-bar">
<span>🔍</span>
<input type="text" placeholder="SEARCH THE MULTIVERSE...">
</div>
<div class="avatar"></div>
</header>
<section class="hero-section">
<div class="main-news comic-box">
<div class="sticker">NEW!!</div>
<div class="main-news-text">
<h1>BREAKING: AI REVOLUTION!</h1>
<p>THE FUTURE IS DRAWN BY MACHINES!</p>
</div>
</div>
<div class="side-news">
<div class="prompt-box comic-box">
<h2 class="box-title">PROMPT OF THE DAY</h2>
<div class="code-block">
/imagine: cyberpunk samurai eating ramen, halftone style, high contrast --v 6.0
</div>
<div class="btn">TRY IT NOW!</div>
</div>
<div class="briefing-box comic-box">
<h2 class="box-title">DAILY BRIEFING</h2>
<p style="font-size: 14px; font-weight: bold;">100+ Stories synthesized in 3 seconds.</p>
<div class="btn-white">READ FLASH</div>
</div>
</div>
</section>
<div class="social-icons">
<div class="social-icon"><div class="img-placeholder"></div>ZHIHU</div>
<div class="social-icon"><div class="img-placeholder"></div>WEIBO</div>
<div class="social-icon"><div class="img-placeholder" style="background:#fff;"></div>BILIBILI</div>
<div class="social-icon"><div class="img-placeholder"></div>TAOBAO</div>
</div>
<section class="news-grid">
<div class="news-column comic-box col-yellow">
<div class="news-header">
<span>ENTERTAINMENT</span> <span style="font-size: 12px;">HOTLIST</span>
</div>
<div class="news-list">
<div class="news-item"><span class="news-number">1</span><div>Marvel announces new Anime-inspired crossover event for 2025.</div></div>
<div class="news-item"><span class="news-number">2</span><div>Pop star's digital avatar goes viral on TikTok with AI dance.</div></div>
<div class="news-item"><span class="news-number">3</span><div>New live-action adaptation teaser drops; fans divided on CGI.</div></div>
</div>
<div class="news-footer">UPDATED 2 MINS AGO</div>
</div>
<div class="news-column comic-box col-cyan">
<div class="news-header">
<span>TECHNOLOGY</span> <span style="font-size: 12px;">GEEK NEWS</span>
</div>
<div class="news-list">
<div class="news-item"><span class="news-number">1</span><div>NVIDIA's next-gen AI chip achieves sentience (almost).</div></div>
<div class="news-item"><span class="news-number">2</span><div>Quantum computer solves world's hardest puzzle in 10ms.</div></div>
<div class="news-item"><span class="news-number">3</span><div>Smart glasses that can translate manga in real-time released.</div></div>
</div>
<div class="news-footer">UPDATED 5 MINS AGO</div>
</div>
<div class="news-column comic-box col-magenta">
<div class="news-header">
<span>SOCIAL PULSE</span> <span style="font-size: 12px;">PEOPLE</span>
</div>
<div class="news-list">
<div class="news-item"><span class="news-number">1</span><div>Work-from-beach trend sees 400% spike in tropical areas.</div></div>
<div class="news-item"><span class="news-number">2</span><div>The "Quiet Quitting" sequel: "Loud Leaving" takes over LinkedIn.</div></div>
<div class="news-item"><span class="news-number">3</span><div>Sustainability becomes the top priority for Gen Alpha shoppers.</div></div>
</div>
<div class="news-footer">UPDATED 10 MINS AGO</div>
</div>
<div class="news-column comic-box col-green">
<div class="news-header">
<span>MARKET CHAOS</span> <span style="font-size: 12px;">MONEY</span>
</div>
<div class="news-list">
<div class="news-item"><span class="news-number">1</span><div>Crypto-Coin backed by comic books surges 500% in an hour.</div></div>
<div class="news-item"><span class="news-number">2</span><div>Global chip shortage finally ends as new factory opens in space.</div></div>
<div class="news-item"><span class="news-number">3</span><div>Housing market stabilizes as tiny-home cities gain popularity.</div></div>
</div>
<div class="news-footer">UPDATED 1 MIN AGO</div>
</div>
</section>
</body>
</html>