Spaces:
Running
Running
File size: 13,806 Bytes
0fd2214 | 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 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello</title>
<link href="https://cdn.tailwindcss.com" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
:root {
--bg: #0a0a0f;
--fg: #f0f0f5;
--muted: #6b6b7a;
--accent: #00e5a0;
--accent-dim: #00e5a020;
--card: #14141f;
--border: #2a2a3a;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Space Grotesk', sans-serif;
background: var(--bg);
color: var(--fg);
min-height: 100vh;
overflow-x: hidden;
}
.font-display {
font-family: 'Syne', sans-serif;
}
/* Background grid */
.bg-grid {
position: fixed;
inset: 0;
background-image:
linear-gradient(var(--border) 1px, transparent 1px),
linear-gradient(90deg, var(--border) 1px, transparent 1px);
background-size: 60px 60px;
opacity: 0.3;
pointer-events: none;
z-index: 0;
}
/* Gradient orbs */
.orb {
position: fixed;
border-radius: 50%;
filter: blur(80px);
opacity: 0.5;
pointer-events: none;
z-index: 0;
}
.orb-1 {
width: 600px;
height: 600px;
background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
top: -200px;
right: -200px;
animation: float 20s ease-in-out infinite;
}
.orb-2 {
width: 400px;
height: 400px;
background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
bottom: -100px;
left: -100px;
animation: float 15s ease-in-out infinite reverse;
}
@keyframes float {
0%, 100% { transform: translate(0, 0) scale(1); }
25% { transform: translate(30px, -30px) scale(1.05); }
50% { transform: translate(-20px, 20px) scale(0.95); }
75% { transform: translate(20px, 30px) scale(1.02); }
}
/* Hero section */
.hero {
position: relative;
z-index: 1;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2rem;
text-align: center;
}
/* Animated hello text */
.hello-text {
font-size: clamp(4rem, 20vw, 14rem);
font-weight: 800;
line-height: 0.9;
letter-spacing: -0.04em;
position: relative;
cursor: default;
}
.hello-text span {
display: inline-block;
transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
color 0.3s ease;
}
.hello-text span:hover {
transform: translateY(-20px) rotate(-5deg);
color: var(--accent);
}
.hello-text::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 4px;
background: var(--accent);
border-radius: 2px;
transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hello-text:hover::after {
width: 80%;
}
/* Subtitle */
.subtitle {
font-size: clamp(1rem, 3vw, 1.5rem);
color: var(--muted);
margin-top: 2rem;
font-weight: 300;
letter-spacing: 0.2em;
text-transform: uppercase;
opacity: 0;
animation: fadeUp 1s ease forwards 0.5s;
}
/* Entrance animations */
.hello-text span {
opacity: 0;
transform: translateY(100px) rotate(10deg);
animation: letterIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hello-text span:nth-child(1) { animation-delay: 0.1s; }
.hello-text span:nth-child(2) { animation-delay: 0.2s; }
.hello-text span:nth-child(3) { animation-delay: 0.3s; }
.hello-text span:nth-child(4) { animation-delay: 0.4s; }
.hello-text span:nth-child(5) { animation-delay: 0.5s; }
@keyframes letterIn {
to {
opacity: 1;
transform: translateY(0) rotate(0deg);
}
}
@keyframes fadeUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Interactive button */
.cta-button {
margin-top: 3rem;
padding: 1rem 2.5rem;
background: transparent;
border: 2px solid var(--border);
color: var(--fg);
font-family: 'Space Grotesk', sans-serif;
font-size: 1rem;
font-weight: 500;
letter-spacing: 0.1em;
text-transform: uppercase;
cursor: pointer;
position: relative;
overflow: hidden;
transition: all 0.4s ease;
opacity: 0;
animation: fadeUp 1s ease forwards 0.8s;
}
.cta-button::before {
content: '';
position: absolute;
inset: 0;
background: var(--accent);
transform: translateX(-101%);
transition: transform 0.4s ease;
z-index: -1;
}
.cta-button:hover {
border-color: var(--accent);
color: var(--bg);
}
.cta-button:hover::before {
transform: translateX(0);
}
.cta-button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 4px;
}
/* Time display */
.time-display {
position: fixed;
bottom: 2rem;
left: 50%;
transform: translateX(-50%);
font-size: 0.875rem;
color: var(--muted);
font-weight: 300;
letter-spacing: 0.1em;
opacity: 0;
animation: fadeUp 1s ease forwards 1s;
}
/* Header */
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
padding: 1.5rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}
.logo {
font-weight: 600;
font-size: 1rem;
letter-spacing: 0.05em;
color: var(--muted);
transition: color 0.3s ease;
}
.logo:hover {
color: var(--fg);
}
.built-with {
font-size: 0.75rem;
color: var(--muted);
text-decoration: none;
padding: 0.5rem 1rem;
border: 1px solid var(--border);
border-radius: 100px;
transition: all 0.3s ease;
}
.built-with:hover {
border-color: var(--accent);
color: var(--accent);
}
/* Floating shapes */
.shape {
position: fixed;
border: 1px solid var(--border);
opacity: 0.3;
pointer-events: none;
z-index: 0;
}
.shape-1 {
width: 100px;
height: 100px;
top: 20%;
left: 10%;
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
animation: morph 10s ease-in-out infinite;
}
.shape-2 {
width: 60px;
height: 60px;
bottom: 30%;
right: 15%;
border-radius: 50%;
animation: pulse 4s ease-in-out infinite;
}
@keyframes morph {
0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}
@keyframes pulse {
0%, 100% { transform: scale(1); opacity: 0.3; }
50% { transform: scale(1.2); opacity: 0.5; }
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* Mobile adjustments */
@media (max-width: 640px) {
.header {
padding: 1rem;
}
.shape {
display: none;
}
.orb {
opacity: 0.3;
}
}
</style>
</head>
<body>
<!-- Background elements -->
<div class="bg-grid"></div>
<div class="orb orb-1"></div>
<div class="orb orb-2"></div>
<div class="shape shape-1"></div>
<div class="shape shape-2"></div>
<!-- Header -->
<header class="header">
<div class="logo">Studio</div>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" rel="noopener noreferrer" class="built-with">
Built with anycoder
</a>
</header>
<!-- Hero -->
<main class="hero">
<h1 class="hello-text font-display">
<span>H</span><span>E</span><span>L</span><span>L</span><span>O</span>
</h1>
<p class="subtitle">Welcome to the beginning</p>
<button class="cta-button" id="exploreBtn">
Explore
</button>
</main>
<!-- Time display -->
<div class="time-display" id="timeDisplay"></div>
<script>
// Time display
function updateTime() {
const now = new Date();
const options = {
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
hour12: false
};
const timeString = now.toLocaleTimeString('en-US', options);
const dateString = now.toLocaleDateString('en-US', {
weekday: 'long',
month: 'short',
day: 'numeric'
});
document.getElementById('timeDisplay').textContent = `${dateString} — ${timeString}`;
}
updateTime();
setInterval(updateTime, 1000);
// Button interaction
const exploreBtn = document.getElementById('exploreBtn');
exploreBtn.addEventListener('click', function() {
// Create ripple effect
const ripple = document.createElement('div');
ripple.style.cssText = `
position: fixed;
top: 50%;
left: 50%;
width: 10px;
height: 10px;
background: var(--accent);
border-radius: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
z-index: 1000;
opacity: 0.6;
`;
document.body.appendChild(ripple);
ripple.animate([
{ transform: 'translate(-50%, -50%) scale(1)', opacity: 0.6 },
{ transform: 'translate(-50%, -50%) scale(200)', opacity: 0 }
], {
duration: 800,
easing: 'ease-out'
}).onfinish = () => {
ripple.remove();
};
// Change hello text
const messages = ['HELLO', 'WELCOME', 'CREATE', 'DESIGN', 'BUILD', 'DREAM'];
const helloText = document.querySelector('.hello-text');
const randomMessage = messages[Math.floor(Math.random() * messages.length)];
helloText.querySelectorAll('span').forEach((span, index) => {
if (randomMessage[index]) {
span.textContent = randomMessage[index];
}
});
});
// Parallax effect on mouse move
document.addEventListener('mousemove', (e) => {
const { clientX, clientY } = e;
const centerX = window.innerWidth / 2;
const centerY = window.innerHeight / 2;
const moveX = (clientX - centerX) / 50;
const moveY = (clientY - centerY) / 50;
document.querySelectorAll('.orb').forEach((orb, index) => {
const factor = index === 0 ? 1 : -1;
orb.style.transform = `translate(${moveX * factor}px, ${moveY * factor}px)`;
});
});
</script>
</body>
</html> |