anycoder-1b1d4489 / index.html
ApprikatAI's picture
Upload folder using huggingface_hub
906aae5 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hola! - Welcome Page</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;
}
:root {
--primary-color: #6366f1;
--secondary-color: #8b5cf6;
--accent-color: #ec4899;
--background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--text-light: #ffffff;
--text-dark: #1f2937;
--card-bg: rgba(255, 255, 255, 0.1);
--glass-bg: rgba(255, 255, 255, 0.15);
--shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: var(--background-gradient);
min-height: 100vh;
display: flex;
flex-direction: column;
color: var(--text-light);
overflow-x: hidden;
position: relative;
}
/* Animated background particles */
.particles {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.particle {
position: absolute;
background: var(--text-light);
border-radius: 50%;
opacity: 0.3;
animation: float 15s infinite linear;
}
@keyframes float {
0% {
transform: translateY(100vh) rotate(0deg);
opacity: 0;
}
10% {
opacity: 0.3;
}
90% {
opacity: 0.3;
}
100% {
transform: translateY(-100vh) rotate(360deg);
opacity: 0;
}
}
/* Header */
header {
position: relative;
z-index: 10;
padding: 1.5rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(0, 0, 0, 0.2);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo {
font-size: 1.5rem;
font-weight: bold;
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text-light);
}
.logo a {
color: var(--text-light);
text-decoration: none;
font-weight: bold;
transition: all 0.3s ease;
}
.logo a:hover {
color: var(--accent-color);
transform: scale(1.05);
}
/* Main Content */
main {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2rem;
position: relative;
z-index: 5;
}
.greeting-container {
text-align: center;
max-width: 800px;
animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.greeting {
font-size: clamp(3rem, 8vw, 6rem);
font-weight: 900;
margin-bottom: 1.5rem;
background: linear-gradient(45deg, var(--text-light), var(--accent-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
letter-spacing: -2px;
}
.subtitle {
font-size: clamp(1.2rem, 3vw, 1.8rem);
margin-bottom: 2rem;
opacity: 0.9;
max-width: 600px;
line-height: 1.6;
}
.greeting-icon {
font-size: 4rem;
margin-bottom: 2rem;
animation: bounce 2s infinite;
}
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
}
/* Interactive elements */
.interactive-section {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1.5rem;
margin-top: 3rem;
}
.card {
background: var(--glass-bg);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 2rem;
width: 280px;
text-align: center;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: var(--shadow);
}
.card:hover {
transform: translateY(-10px);
box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}
.card-icon {
font-size: 2.5rem;
margin-bottom: 1rem;
color: var(--accent-color);
}
.card-title {
font-size: 1.3rem;
margin-bottom: 0.5rem;
font-weight: 600;
}
.card-description {
font-size: 0.9rem;
opacity: 0.8;
line-height: 1.5;
}
/* Language selector */
.language-selector {
margin-top: 3rem;
display: flex;
gap: 1rem;
flex-wrap: wrap;
justify-content: center;
}
.language-btn {
background: var(--glass-bg);
border: 1px solid rgba(255, 255, 255, 0.3);
color: var(--text-light);
padding: 0.8rem 1.5rem;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
backdrop-filter: blur(10px);
}
.language-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.05);
}
.language-btn.active {
background: var(--primary-color);
border-color: var(--primary-color);
}
/* Footer */
footer {
padding: 2rem;
text-align: center;
background: rgba(0, 0, 0, 0.2);
backdrop-filter: blur(10px);
border-top: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
z-index: 10;
}
.social-links {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-top: 1rem;
}
.social-link {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--glass-bg);
display: flex;
align-items: center;
justify-content: center;
color: var(--text-light);
text-decoration: none;
transition: all 0.3s ease;
}
.social-link:hover {
background: var(--primary-color);
transform: translateY(-5px);
}
/* Responsive adjustments */
@media (max-width: 768px) {
.greeting {
font-size: 4rem;
}
.card {
width: 100%;
max-width: 300px;
}
.interactive-section {
flex-direction: column;
align-items: center;
}
}
@media (max-width: 480px) {
.greeting {
font-size: 3rem;
}
.subtitle {
font-size: 1.1rem;
}
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
background: var(--primary-color);
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--secondary-color);
}
</style>
</head>
<body>
<!-- Animated particles background -->
<div class="particles" id="particles"></div>
<!-- Header -->
<header>
<div class="logo">
<i class="fas fa-code"></i>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank">Built with anycoder</a>
</div>
</header>
<!-- Main Content -->
<main>
<div class="greeting-container">
<div class="greeting-icon">
<i class="fas fa-hand-wave"></i>
</div>
<h1 class="greeting">Hola!</h1>
<p class="subtitle">Welcome to our interactive greeting page. Explore different languages and discover the beauty of global communication.</p>
<div class="interactive-section">
<div class="card">
<div class="card-icon">
<i class="fas fa-globe-americas"></i>
</div>
<h3 class="card-title">Global Greetings</h3>
<p class="card-description">Learn how to say hello in different languages from around the world</p>
</div>
<div class="card">
<div class="card-icon">
<i class="fas fa-palette"></i>
</div>
<h3 class="card-title">Customizable</h3>
<p class="card-description">Personalize your greeting experience with different themes and styles</p>
</div>
<div class="card">
<div class="card-icon">
<i class="fas fa-heart"></i>
</div>
<h3 class="card-title">Interactive</h3>
<p class="card-description">Engage with our dynamic interface and explore various features</p>
</div>
</div>
<div class="language-selector">
<button class="language-btn active" data-language="spanish">Spanish</button>
<button class="language-btn" data-language="english">English</button>
<button class="language-btn" data-language="french">French</button>
<button class="language-btn" data-language="german">German</button>
<button class="language-btn" data-language="japanese">Japanese</button>
<button class="language-btn" data-language="chinese">Chinese</button>
</div>
</div>
</main>
<!-- Footer -->
<footer>
<p>&copy; 2024 Hola! Greeting Page. All rights reserved.</p>
<div class="social-links">
<a href="#" class="social-link"><i class="fab fa-twitter"></i></a>
<a href="#" class="social-link"><i class="fab fa-github"></i></a>
<a href="#" class="social-link"><i class="fab fa-linkedin"></a>
</div>
</footer>
<script>
// Generate particles
function createParticles() {
const particlesContainer = document.getElementById('particles');
const particleCount = 50;
for (let i = 0; i < particleCount; i++) {
const particle = document.createElement('div');
particle.classList.add('particle');
// Random properties
const size = Math.random() * 5 + 2;
const left = Math.random() * 100;
const animationDuration = Math.random() * 20 + 10;
const animationDelay = Math.random() * 5;
particle.style.width = `${size}px`;
particle.style.height = `${size}px`;
particle.style.left = `${left}%`;
particle.style.animationDuration = `${animationDuration}s`;
particle.style.animationDelay = `${animationDelay}s`;
particlesContainer.appendChild(particle);
}
}
// Language selector functionality
function setupLanguageSelector() {
const languageButtons = document.querySelectorAll('.language-btn');
const greeting = document.querySelector('.greeting');
const subtitle = document.querySelector('.subtitle');
const greetings = {
spanish: {
greeting: 'Hola!',
subtitle: 'Bienvenido a nuestra página de saludos interactiva. Explora diferentes idiomas y descubre la belleza de la comunicación global.'
},
english: {
greeting: 'Hello!',
subtitle: 'Welcome to our interactive greeting page. Explore different languages and discover the beauty of global communication.'
},
french: {
greeting: 'Bonjour!',
subtitle: 'Bienvenue sur notre page de salutations interactive. Explorez différentes langues et découvrez la beauté de la communication mondiale.'
},
german: {
greeting: 'Hallo!',
subtitle: 'Willkommen auf unserer interaktiven Begrüßungsseite. Entdecken Sie verschiedene Sprachen und die Schönheit der globalen Kommunikation.'
},
japanese: {
greeting: 'こんにちは!',
subtitle: '私たちのインタラクティブな挨拶ページへようこそ。様々な言語を探索し、グローバルなコミュニケーションの美しさを発見してください。'
},
chinese: {
greeting: '你好!',
subtitle: '欢迎来到我们的互动问候页面。探索不同的语言,发现全球交流的美妙之处。'
}
};
languageButtons.forEach(button => {
button.addEventListener('click', () => {
// Remove active class from all buttons
languageButtons.forEach(btn => btn.classList.remove('active'));
// Add active class to clicked button
button.classList.add('active');
// Get language
const language = button.dataset.language;
const greetingData = greetings[language];
// Animate text change
greeting.style.opacity = '0';
subtitle.style.opacity = '0';
setTimeout(() => {
greeting.textContent = greetingData.greeting;
subtitle.textContent = greetingData.subtitle;
greeting.style.opacity = '1';
subtitle.style.opacity = '1';
}, 300);
});
});
}
// Initialize everything when DOM is loaded
document.addEventListener('DOMContentLoaded', () => {
createParticles();
setupLanguageSelector();
});
</script>
</body>
</html>