anycoder-e789e763 / index.html
maxocream's picture
Upload folder using huggingface_hub
aad9427 verified
Raw History Blame Contribute Delete
16.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hi Buddy - Welcome App</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
overflow-x: hidden;
position: relative;
}
/* Animated background elements */
.bg-decoration {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: -1;
overflow: hidden;
}
.bubble {
position: absolute;
border-radius: 50%;
opacity: 0.1;
animation: float 15s infinite ease-in-out;
}
.bubble:nth-child(1) {
width: 200px;
height: 200px;
background: white;
top: -100px;
left: -100px;
animation-duration: 20s;
}
.bubble:nth-child(2) {
width: 150px;
height: 150px;
background: white;
bottom: -75px;
right: -75px;
animation-duration: 25s;
animation-direction: reverse;
}
.bubble:nth-child(3) {
width: 100px;
height: 100px;
background: white;
top: 50%;
right: 10%;
animation-duration: 18s;
}
@keyframes float {
0%, 100% { transform: translateY(0px) translateX(0px); }
50% { transform: translateY(30px) translateX(20px); }
}
/* Header */
header {
position: absolute;
top: 0;
width: 100%;
padding: 20px 30px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
}
.logo {
font-size: 24px;
font-weight: 700;
color: white;
text-decoration: none;
display: flex;
align-items: center;
gap: 10px;
transition: transform 0.3s ease;
}
.logo:hover {
transform: scale(1.05);
}
.logo i {
font-size: 28px;
}
.anycoder-link {
color: white;
text-decoration: none;
font-weight: 600;
padding: 10px 20px;
border: 2px solid white;
border-radius: 25px;
transition: all 0.3s ease;
font-size: 14px;
}
.anycoder-link:hover {
background: white;
color: #667eea;
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
/* Main Container */
.container {
text-align: center;
z-index: 10;
padding: 40px 20px;
max-width: 600px;
margin-top: 80px;
}
.greeting {
font-size: clamp(2rem, 8vw, 4rem);
font-weight: 800;
color: white;
margin-bottom: 20px;
animation: slideInDown 0.8s ease-out;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.emoji {
display: inline-block;
font-size: clamp(3rem, 10vw, 5rem);
animation: bounce 2s ease-in-out infinite;
margin: 0 10px;
}
@keyframes slideInDown {
from {
opacity: 0;
transform: translateY(-50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}
.description {
font-size: clamp(1rem, 3vw, 1.3rem);
color: rgba(255, 255, 255, 0.9);
margin-bottom: 40px;
animation: slideInUp 0.8s ease-out 0.2s both;
line-height: 1.6;
}
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Buttons */
.button-group {
display: flex;
gap: 15px;
justify-content: center;
flex-wrap: wrap;
animation: slideInUp 0.8s ease-out 0.4s both;
}
.btn {
padding: 14px 32px;
font-size: 16px;
font-weight: 600;
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-primary {
background: white;
color: #667eea;
}
.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
background: #f0f0f0;
}
.btn-secondary {
background: rgba(255, 255, 255, 0.2);
color: white;
border: 2px solid white;
}
.btn-secondary:hover {
background: white;
color: #667eea;
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
/* Features Section */
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 20px;
margin-top: 60px;
animation: slideInUp 0.8s ease-out 0.6s both;
}
.feature-card {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
padding: 25px;
border-radius: 15px;
border: 1px solid rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
color: white;
}
.feature-card:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-10px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.feature-icon {
font-size: 2.5rem;
margin-bottom: 10px;
display: block;
}
.feature-title {
font-size: 14px;
font-weight: 600;
margin-bottom: 5px;
}
.feature-desc {
font-size: 12px;
opacity: 0.8;
}
/* Responsive */
@media (max-width: 768px) {
header {
padding: 15px 20px;
}
.container {
margin-top: 60px;
padding: 30px 15px;
}
.button-group {
gap: 10px;
}
.btn {
padding: 12px 24px;
font-size: 14px;
}
.features {
gap: 15px;
}
.feature-card {
padding: 20px;
}
}
@media (max-width: 480px) {
.greeting {
margin-bottom: 15px;
}
.emoji {
margin: 0 5px;
}
.button-group {
flex-direction: column;
gap: 12px;
}
.btn {
width: 100%;
justify-content: center;
}
.features {
grid-template-columns: 1fr;
}
}
/* Particles effect */
.particle {
position: fixed;
pointer-events: none;
z-index: 1;
}
.star {
color: white;
font-size: 1.5rem;
animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
0%, 100% { opacity: 0.3; }
50% { opacity: 1; }
}
</style>
</head>
<body>
<div class="bg-decoration">
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
</div>
<header>
<div class="logo">
<i class="fas fa-heart"></i>
<span>Buddy</span>
</div>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link" target="_blank">
Built with anycoder
</a>
</header>
<div class="container">
<h1 class="greeting">
Hi Buddy! <span class="emoji">πŸ‘‹</span>
</h1>
<p class="description">
Welcome to an amazing interactive experience! We're excited to have you here. Let's create something wonderful together!
</p>
<div class="button-group">
<button class="btn btn-primary" onclick="handleGetStarted()">
<i class="fas fa-rocket"></i> Get Started
</button>
<button class="btn btn-secondary" onclick="handleLearnMore()">
<i class="fas fa-book"></i> Learn More
</button>
</div>
<div class="features">
<div class="feature-card">
<span class="feature-icon">⚑</span>
<div class="feature-title">Fast</div>
<div class="feature-desc">Lightning quick responses</div>
</div>
<div class="feature-card">
<span class="feature-icon">🎨</span>
<div class="feature-title">Beautiful</div>
<div class="feature-desc">Modern UI design</div>
</div>
<div class="feature-card">
<span class="feature-icon">πŸ”’</span>
<div class="feature-title">Secure</div>
<div class="feature-desc">Your data is safe</div>
</div>
<div class="feature-card">
<span class="feature-icon">πŸ“±</span>
<div class="feature-title">Responsive</div>
<div class="feature-desc">Works everywhere</div>
</div>
</div>
</div>
<script>
// Create floating particles
function createParticles() {
const container = document.body;
const particleCount = 20;
for (let i = 0; i < particleCount; i++) {
const particle = document.createElement('div');
particle.classList.add('particle', 'star');
particle.innerHTML = '✨';
particle.style.left = Math.random() * window.innerWidth + 'px';
particle.style.top = Math.random() * window.innerHeight + 'px';
particle.style.animationDelay = Math.random() * 3 + 's';
container.appendChild(particle);
}
}
// Button handlers
function handleGetStarted() {
showNotification('πŸš€ Let\'s go! Welcome aboard!');
createConfetti();
}
function handleLearnMore() {
showNotification('πŸ“š Here\'s more info about us!');
}
function showNotification(message) {
const notification = document.createElement('div');
notification.style.cssText = `
position: fixed;
top: 30px;
right: 30px;
background: white;
color: #667eea;
padding: 20px 30px;
border-radius: 50px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
font-weight: 600;
z-index: 1000;
animation: slideInRight 0.5s ease-out;
max-width: 90%;
`;
notification.textContent = message;
const style = document.createElement('style');
style.textContent = `
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(100px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
`;
document.head.appendChild(style);
document.body.appendChild(notification);
setTimeout(() => {
notification.style.animation = 'slideInRight 0.5s ease-out reverse';
setTimeout(() => notification.remove(), 500);
}, 3000);
}
function createConfetti() {
const confettiPieces = 50;
for (let i = 0; i < confettiPieces; i++) {
const confetti = document.createElement('div');
confetti.style.cssText = `
position: fixed;
width: 10px;
height: 10px;
background: ${getRandomColor()};
left: ${Math.random() * window.innerWidth}px;
top: -10px;
border-radius: 50%;
pointer-events: none;
z-index: 999;
`;
document.body.appendChild(confetti);
const duration = Math.random() * 2 + 1;
const xMove = (Math.random() - 0.5) * 300;
confetti.animate([
{ transform: 'translateY(0) translateX(0)', opacity: 1 },
{ transform: `translateY(${window.innerHeight + 20}px) translateX(${xMove}px)`, opacity: 0 }
], {
duration: duration * 1000,
easing: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)'
});
setTimeout(() => confetti.remove(), duration * 1000);
}
}
function getRandomColor() {
const colors = ['#FF6B6B', '#4ECDC4', '#45B7D1', '#FFA07A', '#98D8C8', '#F7DC6F'];
return colors[Math.floor(Math.random() * colors.length)];
}
// Initialize
window.addEventListener('load', () => {
createParticles();
});
// Add ripple effect to buttons
document.querySelectorAll('.btn').forEach(button => {
button.addEventListener('click', function(e) {
const ripple = document.createElement('span');
const rect = this.getBoundingClientRect();
const size = Math.max(rect.width, rect.height);
const x = e.clientX - rect.left - size / 2;
const y = e.clientY - rect.top - size / 2;
ripple.style.cssText = `
position: absolute;
width: ${size}px;
height: ${size}px;
background: rgba(255, 255, 255, 0.5);
border-radius: 50%;
left: ${x}px;
top: ${y}px;
pointer-events: none;
animation: ripple 0.6s ease-out;
`;
const style = document.createElement('style');
style.textContent = `
@keyframes ripple {
to {
transform: scale(4);
opacity: 0;
}
}
`;
document.head.appendChild(style);
this.style.position = 'relative';
this.style.overflow = 'hidden';
this.appendChild(ripple);
setTimeout(() => ripple.remove(), 600);
});
});
</script>
</body>
</html>