-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
398 lines (361 loc) · 12.5 KB
/
Copy pathindex.html
File metadata and controls
398 lines (361 loc) · 12.5 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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<!-- https://fastht.ml -->
<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> home | web4 OS</title>
<style>
<div class="news-bar">
<div class="ticker-wrapper">
<div class="ticker-text">
<span>[ SYSTEM UPDATE ]</span> Web4 Interface v1.0.2 is now live...
<span>[ STATUS ]</span> All systems operational...
<span>[ RECENT ]</span> New project "Glassmorphism OS" added to repository...
<span>[ ALERT ]</span> Cursor-tracking light source active...
</div>
</div>
</div>
/* Bottom News Bar */
.news-bar {
position: fixed;
bottom: 0;
width: 100%;
background: var(--glass-bg);
backdrop-filter: blur(var(--glass-blur));
border-top: 1px solid var(--glass-border);
padding: 10px 0;
z-index: 100;
overflow: hidden; /* Hides text outside the bar */
}
/* The Ticker Wrapper */
.ticker-wrapper {
display: flex;
white-space: nowrap;
}
/* The Scrolling Animation */
.ticker-text {
display: inline-block;
padding-left: 100%;
animation: scroll-news 30s linear infinite;
font-size: 0.85rem;
font-weight: 500;
color: rgba(255, 255, 255, 0.8);
}
.ticker-text span {
margin-right: 50px;
color: var(--primary);
}
@keyframes scroll-news {
from { transform: translateX(0); }
to { transform: translateX(-100%); }
}
/* Pause on hover so users can read */
.news-bar:hover .ticker-text {
animation-play-state: paused;
}
.card-icon {
font-size: 2.5rem;
margin-bottom: 20px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
transition: 0.3s ease;
}
/* This triggers the Font Awesome "beat" animation on hover */
.glass-panel:hover .card-icon {
filter: drop-shadow(0 0 10px var(--primary));
animation: fa-beat 1.5s infinite;
}
/* Navigation Bar */
.navbar {
position: fixed;
top: 20px;
width: 90%;
max-width: 1200px;
padding: 15px 30px;
background: var(--glass-bg);
backdrop-filter: blur(var(--glass-blur));
border: 1px solid var(--glass-border);
border-radius: 20px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
}
.nav-links a {
color: white;
text-decoration: none;
margin-left: 20px;
font-size: 0.9rem;
opacity: 0.7;
transition: 0.3s;
}
.nav-links a:hover { opacity: 1; color: var(--primary); }
/* Project Grid */
.dashboard {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 25px;
width: 90%;
max-width: 1200px;
margin-top: 100px; /* Space for navbar */
z-index: 10;
}
/* Adjusting the glass-panel for grid use */
.glass-panel {
width: auto; /* Remove fixed width */
}
/* This targets the card when hovered or touched */
.glass-panel:hover {
/* Changes the border to your primary blue */
border-color: var(--primary);
/* Adds a soft outer glow and a subtle inner blue tint */
box-shadow:
0 25px 50px -12px rgba(0, 0, 0, 0.7),
0 0 20px rgba(125, 207, 255, 0.2),
inset 0 0 20px rgba(125, 207, 255, 0.1);
/* Makes the background slightly more solid blue */
background: rgba(125, 207, 255, 0.05);
}
/* This makes the heading change color when the card is hovered */
.glass-panel:hover h1, .glass-panel:hover h2 {
background: linear-gradient(to bottom, var(--primary), var(--secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
transition: 0.3s ease;
}
:root {
--primary: #7dcfff;
--secondary: #bb9af7;
--glass-bg: rgba(15, 15, 26, 0.4);
--glass-border: rgba(255, 255, 255, 0.12);
--glass-glow: rgba(255, 255, 255, 0.05);
--glass-blur: 16px;
}
body {
margin: 0;
height: 100vh;
width: 100vw;
background-color: #050508;
font-family: 'Inter', system-ui, -apple-system, sans-serif;
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.mesh-gradient {
position: fixed;
inset: 0;
z-index: -2;
background:
radial-gradient(at 0% 0%, #1a1a2e 0px, transparent 50%),
radial-gradient(at 100% 0%, #2e1a4e 0px, transparent 50%),
radial-gradient(at 50% 50%, #0f1a2e 0px, transparent 80%);
background-size: 200% 200%;
animation: mesh-flow 15s ease infinite alternate;
}
.noise-overlay {
position: fixed;
inset: 0;
z-index: -1;
opacity: 0.03;
pointer-events: none;
background-image: url('https://grainy-gradients.vercel.app');
}
@keyframes mesh-flow {
0% { background-position: 0% 0%; }
100% { background-position: 20% 20%; }
}
#glow-cursor {
position: fixed;
width: 700px;
height: 700px;
background: radial-gradient(circle, rgba(125, 207, 255, 0.1) 0%, transparent 70%);
border-radius: 50%;
pointer-events: none;
transform: translate(-50%, -50%);
z-index: 0;
will-change: transform;
}
.glass-container {
perspective: 1000px;
z-index: 10;
}
.glass-panel {
width: 400px;
padding: 40px;
border-radius: 32px;
background: var(--glass-bg);
backdrop-filter: blur(var(--glass-blur)) saturate(180%);
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
border: 1px solid var(--glass-border);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), inset 0 0 0 1px var(--glass-glow);
transform-style: preserve-3d;
transition: transform 0.1s ease-out;
}
.glass-content {
transform: translateZ(50px);
<div class="glass-content">
<i class="fa-solid fa-microchip card-icon"></i> <!-- The Icon -->
<span class="badge">System Online</span>
<h1>Hello World!</h1>
...
</div>
}
.badge {
display: inline-block;
background: rgba(255,255,255,0.05);
padding: 6px 12px;
border-radius: 100px;
font-size: 11px;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
border: 1px solid var(--glass-border);
margin-bottom: 1.5rem;
color: var(--primary);
}
h1 {
font-size: 2.2rem;
margin: 0 0 1rem 0;
font-weight: 800;
background: linear-gradient(to bottom, #fff, #aaa);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
p {
color: rgba(255, 255, 255, 0.6);
line-height: 1.6;
margin-bottom: 2rem;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: #000;
border: none;
width: 100%;
padding: 16px;
border-radius: 16px;
font-weight: 700;
font-size: 1rem;
cursor: pointer;
box-shadow: 0 10px 25px rgba(125, 207, 255, 0.2);
transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
transform: scale(1.02);
box-shadow: 0 15px 30px rgba(125, 207, 255, 0.4);
}
</style>
</head>
<body>
<nav class="navbar">
<div class="logo" style="font-weight: 800; letter-spacing: 2px;">WEB4</div>
<div class="nav-links">
<a href="#home">Home</a>
<a htef="https://web4applicaion.github.io
<a href="#projects">Projects</a>
<a href="https://github.com/web4applicaion/" target="_blank">projects</a>
<a htef="news">news</a>
<a href="https://www.theverge.com" target="_layouts/">news</a>
</div>
</nav>
<div class="dashboard">
<!-- Main Welcome Card -->
<div class="glass-panel" id="tilt-card">
<div class="glass-content">
<span class="badge">Active Session</span>
<h1>Hello World!</h1>
<p>Welcome to my interactive workspace. Explore my latest deployments below.</p>
<button class="btn-primary">Get Started</button>
</div>
</div>
<!-- Project Card 1 -->
<div class="glass-panel">
<div class="glass-content">
<span class="badge" style="color: var(--secondary);">Project 01</span>
<h2>Web Application</h2>
<p>A high-performance interface built with glassmorphism principles.</p>
<a href="#" style="color: var(--primary); text-decoration: none; font-size: 0.8rem;">View Source →</a>
</div>
</div>
<div class="mesh-gradient"></div>
<div class="noise-overlay"></div>
<div id="glow-cursor"></div>
<div class="glass-container">
<div class="glass-panel" id="tilt-card">
<div class="glass-content">
<span class="badge">System Online</span>
<h1>Hello World!</h1>
<p>My website is officially live. Built with interactive 3D parallax and dynamic lighting.</p>
<button class="btn-primary" onclick="window.open('https://github.com')">View My GitHub</button>
</div>
</div>
</div>
<div class="news-bar" id="live-news-bar">
<div class="ticker-wrapper">
<div class="ticker-text" id="ticker-content">
Fetching latest intelligence... <span>[ CONNECTING ]</span>
Establishing secure uplink... <span>[ STATUS ]</span>
Syncing with global servers...
</div>
</div>
</div>
<script>
const glow = document.getElementById('glow-cursor');
const card = document.getElementById('tilt-card');
window.addEventListener('mousemove', (e) => {
glow.animate({
left: `${e.clientX}px`,
top: `${e.clientY}px`
}, { duration: 800, fill: "forwards" });
});
card.addEventListener('mousemove', (e) => {
const rect = card.getBoundingClientRect();
const x = e.clientX - rect.left;
const y = e.clientY - rect.top;
const centerX = rect.width / 2;
const centerY = rect.height / 2;
const rotateX = (centerY - y) / 15;
const rotateY = (x - centerX) / 15;
card.style.transform = `rotateX(${rotateX}deg) rotateY(${rotateY}deg) scale3d(1.02, 1.02, 1.02)`;
});
card.addEventListener('mouseleave', () => {
card.style.transform = `rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)`;
card.style.transition = "transform 0.5s ease";
});
card.addEventListener('mouseenter', () => {
card.style.transition = "none";
});
async function fetchNews() {
const ticker = document.getElementById('ticker-content');
// Using rss2json to convert the RSS feed to a format JS can read
const rssUrl = 'https://www.theverge.com';
const apiUrl = `https://api.rss2json.com{encodeURIComponent(rssUrl)}`;
try {
const response = await fetch(apiUrl);
const data = await response.json();
if (data.status === 'ok') {
// Join the news titles with your styled spans
const headlines = data.items.map(item =>
`<span>[ ${item.pubDate.split(' ')[0]} ]</span> ${item.title.toUpperCase()}`
).join(' ••• ');
ticker.innerHTML = headlines + " ••• " + headlines; // Double it for a smooth loop
}
} catch (error) {
ticker.innerHTML = "<span>[ ERROR ]</span> Failed to sync live news. Operating in offline mode.";
console.error('News Fetch Error:', error);
}
}
// Run the fetch when the page loads
fetchNews();
// Refresh every 10 minutes
setInterval(fetchNews, 600000);
<p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
</footer>
</div>
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
</script>
</body>
</html>