anycoder-2af9aa44 / index.html
Klein9's picture
Upload folder using huggingface_hub
0fd2214 verified
Raw History Blame Contribute Delete
13.8 kB
<!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>