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
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Hola! - Welcome Page</title>
|
| 7 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 8 |
+
<style>
|
| 9 |
+
* {
|
| 10 |
+
margin: 0;
|
| 11 |
+
padding: 0;
|
| 12 |
+
box-sizing: border-box;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
:root {
|
| 16 |
+
--primary-color: #6366f1;
|
| 17 |
+
--secondary-color: #8b5cf6;
|
| 18 |
+
--accent-color: #ec4899;
|
| 19 |
+
--background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 20 |
+
--text-light: #ffffff;
|
| 21 |
+
--text-dark: #1f2937;
|
| 22 |
+
--card-bg: rgba(255, 255, 255, 0.1);
|
| 23 |
+
--glass-bg: rgba(255, 255, 255, 0.15);
|
| 24 |
+
--shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
body {
|
| 28 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 29 |
+
background: var(--background-gradient);
|
| 30 |
+
min-height: 100vh;
|
| 31 |
+
display: flex;
|
| 32 |
+
flex-direction: column;
|
| 33 |
+
color: var(--text-light);
|
| 34 |
+
overflow-x: hidden;
|
| 35 |
+
position: relative;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
/* Animated background particles */
|
| 39 |
+
.particles {
|
| 40 |
+
position: fixed;
|
| 41 |
+
top: 0;
|
| 42 |
+
left: 0;
|
| 43 |
+
width: 100%;
|
| 44 |
+
height: 100%;
|
| 45 |
+
pointer-events: none;
|
| 46 |
+
z-index: 1;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.particle {
|
| 50 |
+
position: absolute;
|
| 51 |
+
background: var(--text-light);
|
| 52 |
+
border-radius: 50%;
|
| 53 |
+
opacity: 0.3;
|
| 54 |
+
animation: float 15s infinite linear;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
@keyframes float {
|
| 58 |
+
0% {
|
| 59 |
+
transform: translateY(100vh) rotate(0deg);
|
| 60 |
+
opacity: 0;
|
| 61 |
+
}
|
| 62 |
+
10% {
|
| 63 |
+
opacity: 0.3;
|
| 64 |
+
}
|
| 65 |
+
90% {
|
| 66 |
+
opacity: 0.3;
|
| 67 |
+
}
|
| 68 |
+
100% {
|
| 69 |
+
transform: translateY(-100vh) rotate(360deg);
|
| 70 |
+
opacity: 0;
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
/* Header */
|
| 75 |
+
header {
|
| 76 |
+
position: relative;
|
| 77 |
+
z-index: 10;
|
| 78 |
+
padding: 1.5rem 2rem;
|
| 79 |
+
display: flex;
|
| 80 |
+
justify-content: space-between;
|
| 81 |
+
align-items: center;
|
| 82 |
+
background: rgba(0, 0, 0, 0.2);
|
| 83 |
+
backdrop-filter: blur(10px);
|
| 84 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
.logo {
|
| 88 |
+
font-size: 1.5rem;
|
| 89 |
+
font-weight: bold;
|
| 90 |
+
display: flex;
|
| 91 |
+
align-items: center;
|
| 92 |
+
gap: 0.5rem;
|
| 93 |
+
color: var(--text-light);
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
.logo a {
|
| 97 |
+
color: var(--text-light);
|
| 98 |
+
text-decoration: none;
|
| 99 |
+
font-weight: bold;
|
| 100 |
+
transition: all 0.3s ease;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.logo a:hover {
|
| 104 |
+
color: var(--accent-color);
|
| 105 |
+
transform: scale(1.05);
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
/* Main Content */
|
| 109 |
+
main {
|
| 110 |
+
flex: 1;
|
| 111 |
+
display: flex;
|
| 112 |
+
flex-direction: column;
|
| 113 |
+
justify-content: center;
|
| 114 |
+
align-items: center;
|
| 115 |
+
padding: 2rem;
|
| 116 |
+
position: relative;
|
| 117 |
+
z-index: 5;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
.greeting-container {
|
| 121 |
+
text-align: center;
|
| 122 |
+
max-width: 800px;
|
| 123 |
+
animation: fadeInUp 1s ease-out;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
@keyframes fadeInUp {
|
| 127 |
+
from {
|
| 128 |
+
opacity: 0;
|
| 129 |
+
transform: translateY(30px);
|
| 130 |
+
}
|
| 131 |
+
to {
|
| 132 |
+
opacity: 1;
|
| 133 |
+
transform: translateY(0);
|
| 134 |
+
}
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
.greeting {
|
| 138 |
+
font-size: clamp(3rem, 8vw, 6rem);
|
| 139 |
+
font-weight: 900;
|
| 140 |
+
margin-bottom: 1.5rem;
|
| 141 |
+
background: linear-gradient(45deg, var(--text-light), var(--accent-color));
|
| 142 |
+
-webkit-background-clip: text;
|
| 143 |
+
-webkit-text-fill-color: transparent;
|
| 144 |
+
text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
|
| 145 |
+
letter-spacing: -2px;
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
.subtitle {
|
| 149 |
+
font-size: clamp(1.2rem, 3vw, 1.8rem);
|
| 150 |
+
margin-bottom: 2rem;
|
| 151 |
+
opacity: 0.9;
|
| 152 |
+
max-width: 600px;
|
| 153 |
+
line-height: 1.6;
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
.greeting-icon {
|
| 157 |
+
font-size: 4rem;
|
| 158 |
+
margin-bottom: 2rem;
|
| 159 |
+
animation: bounce 2s infinite;
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
@keyframes bounce {
|
| 163 |
+
0%, 100% {
|
| 164 |
+
transform: translateY(0);
|
| 165 |
+
}
|
| 166 |
+
50% {
|
| 167 |
+
transform: translateY(-20px);
|
| 168 |
+
}
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
/* Interactive elements */
|
| 172 |
+
.interactive-section {
|
| 173 |
+
display: flex;
|
| 174 |
+
flex-wrap: wrap;
|
| 175 |
+
justify-content: center;
|
| 176 |
+
gap: 1.5rem;
|
| 177 |
+
margin-top: 3rem;
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
.card {
|
| 181 |
+
background: var(--glass-bg);
|
| 182 |
+
backdrop-filter: blur(10px);
|
| 183 |
+
border-radius: 20px;
|
| 184 |
+
padding: 2rem;
|
| 185 |
+
width: 280px;
|
| 186 |
+
text-align: center;
|
| 187 |
+
transition: all 0.3s ease;
|
| 188 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 189 |
+
box-shadow: var(--shadow);
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
.card:hover {
|
| 193 |
+
transform: translateY(-10px);
|
| 194 |
+
box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
.card-icon {
|
| 198 |
+
font-size: 2.5rem;
|
| 199 |
+
margin-bottom: 1rem;
|
| 200 |
+
color: var(--accent-color);
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
.card-title {
|
| 204 |
+
font-size: 1.3rem;
|
| 205 |
+
margin-bottom: 0.5rem;
|
| 206 |
+
font-weight: 600;
|
| 207 |
+
}
|
| 208 |
+
|
| 209 |
+
.card-description {
|
| 210 |
+
font-size: 0.9rem;
|
| 211 |
+
opacity: 0.8;
|
| 212 |
+
line-height: 1.5;
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
/* Language selector */
|
| 216 |
+
.language-selector {
|
| 217 |
+
margin-top: 3rem;
|
| 218 |
+
display: flex;
|
| 219 |
+
gap: 1rem;
|
| 220 |
+
flex-wrap: wrap;
|
| 221 |
+
justify-content: center;
|
| 222 |
+
}
|
| 223 |
+
|
| 224 |
+
.language-btn {
|
| 225 |
+
background: var(--glass-bg);
|
| 226 |
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
| 227 |
+
color: var(--text-light);
|
| 228 |
+
padding: 0.8rem 1.5rem;
|
| 229 |
+
border-radius: 50px;
|
| 230 |
+
cursor: pointer;
|
| 231 |
+
transition: all 0.3s ease;
|
| 232 |
+
font-weight: 500;
|
| 233 |
+
backdrop-filter: blur(10px);
|
| 234 |
+
}
|
| 235 |
+
|
| 236 |
+
.language-btn:hover {
|
| 237 |
+
background: rgba(255, 255, 255, 0.2);
|
| 238 |
+
transform: scale(1.05);
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
.language-btn.active {
|
| 242 |
+
background: var(--primary-color);
|
| 243 |
+
border-color: var(--primary-color);
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
/* Footer */
|
| 247 |
+
footer {
|
| 248 |
+
padding: 2rem;
|
| 249 |
+
text-align: center;
|
| 250 |
+
background: rgba(0, 0, 0, 0.2);
|
| 251 |
+
backdrop-filter: blur(10px);
|
| 252 |
+
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
| 253 |
+
position: relative;
|
| 254 |
+
z-index: 10;
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
.social-links {
|
| 258 |
+
display: flex;
|
| 259 |
+
justify-content: center;
|
| 260 |
+
gap: 1.5rem;
|
| 261 |
+
margin-top: 1rem;
|
| 262 |
+
}
|
| 263 |
+
|
| 264 |
+
.social-link {
|
| 265 |
+
width: 40px;
|
| 266 |
+
height: 40px;
|
| 267 |
+
border-radius: 50%;
|
| 268 |
+
background: var(--glass-bg);
|
| 269 |
+
display: flex;
|
| 270 |
+
align-items: center;
|
| 271 |
+
justify-content: center;
|
| 272 |
+
color: var(--text-light);
|
| 273 |
+
text-decoration: none;
|
| 274 |
+
transition: all 0.3s ease;
|
| 275 |
+
}
|
| 276 |
+
|
| 277 |
+
.social-link:hover {
|
| 278 |
+
background: var(--primary-color);
|
| 279 |
+
transform: translateY(-5px);
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
/* Responsive adjustments */
|
| 283 |
+
@media (max-width: 768px) {
|
| 284 |
+
.greeting {
|
| 285 |
+
font-size: 4rem;
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
.card {
|
| 289 |
+
width: 100%;
|
| 290 |
+
max-width: 300px;
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
.interactive-section {
|
| 294 |
+
flex-direction: column;
|
| 295 |
+
align-items: center;
|
| 296 |
+
}
|
| 297 |
+
}
|
| 298 |
+
|
| 299 |
+
@media (max-width: 480px) {
|
| 300 |
+
.greeting {
|
| 301 |
+
font-size: 3rem;
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
.subtitle {
|
| 305 |
+
font-size: 1.1rem;
|
| 306 |
+
}
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
/* Custom scrollbar */
|
| 310 |
+
::-webkit-scrollbar {
|
| 311 |
+
width: 10px;
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
::-webkit-scrollbar-track {
|
| 315 |
+
background: rgba(0, 0, 0, 0.1);
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
::-webkit-scrollbar-thumb {
|
| 319 |
+
background: var(--primary-color);
|
| 320 |
+
border-radius: 5px;
|
| 321 |
+
}
|
| 322 |
+
|
| 323 |
+
::-webkit-scrollbar-thumb:hover {
|
| 324 |
+
background: var(--secondary-color);
|
| 325 |
+
}
|
| 326 |
+
</style>
|
| 327 |
+
</head>
|
| 328 |
+
<body>
|
| 329 |
+
<!-- Animated particles background -->
|
| 330 |
+
<div class="particles" id="particles"></div>
|
| 331 |
+
|
| 332 |
+
<!-- Header -->
|
| 333 |
+
<header>
|
| 334 |
+
<div class="logo">
|
| 335 |
+
<i class="fas fa-code"></i>
|
| 336 |
+
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank">Built with anycoder</a>
|
| 337 |
+
</div>
|
| 338 |
+
</header>
|
| 339 |
+
|
| 340 |
+
<!-- Main Content -->
|
| 341 |
+
<main>
|
| 342 |
+
<div class="greeting-container">
|
| 343 |
+
<div class="greeting-icon">
|
| 344 |
+
<i class="fas fa-hand-wave"></i>
|
| 345 |
+
</div>
|
| 346 |
+
<h1 class="greeting">Hola!</h1>
|
| 347 |
+
<p class="subtitle">Welcome to our interactive greeting page. Explore different languages and discover the beauty of global communication.</p>
|
| 348 |
+
|
| 349 |
+
<div class="interactive-section">
|
| 350 |
+
<div class="card">
|
| 351 |
+
<div class="card-icon">
|
| 352 |
+
<i class="fas fa-globe-americas"></i>
|
| 353 |
+
</div>
|
| 354 |
+
<h3 class="card-title">Global Greetings</h3>
|
| 355 |
+
<p class="card-description">Learn how to say hello in different languages from around the world</p>
|
| 356 |
+
</div>
|
| 357 |
+
|
| 358 |
+
<div class="card">
|
| 359 |
+
<div class="card-icon">
|
| 360 |
+
<i class="fas fa-palette"></i>
|
| 361 |
+
</div>
|
| 362 |
+
<h3 class="card-title">Customizable</h3>
|
| 363 |
+
<p class="card-description">Personalize your greeting experience with different themes and styles</p>
|
| 364 |
+
</div>
|
| 365 |
+
|
| 366 |
+
<div class="card">
|
| 367 |
+
<div class="card-icon">
|
| 368 |
+
<i class="fas fa-heart"></i>
|
| 369 |
+
</div>
|
| 370 |
+
<h3 class="card-title">Interactive</h3>
|
| 371 |
+
<p class="card-description">Engage with our dynamic interface and explore various features</p>
|
| 372 |
+
</div>
|
| 373 |
+
</div>
|
| 374 |
+
|
| 375 |
+
<div class="language-selector">
|
| 376 |
+
<button class="language-btn active" data-language="spanish">Spanish</button>
|
| 377 |
+
<button class="language-btn" data-language="english">English</button>
|
| 378 |
+
<button class="language-btn" data-language="french">French</button>
|
| 379 |
+
<button class="language-btn" data-language="german">German</button>
|
| 380 |
+
<button class="language-btn" data-language="japanese">Japanese</button>
|
| 381 |
+
<button class="language-btn" data-language="chinese">Chinese</button>
|
| 382 |
+
</div>
|
| 383 |
+
</div>
|
| 384 |
+
</main>
|
| 385 |
+
|
| 386 |
+
<!-- Footer -->
|
| 387 |
+
<footer>
|
| 388 |
+
<p>© 2024 Hola! Greeting Page. All rights reserved.</p>
|
| 389 |
+
<div class="social-links">
|
| 390 |
+
<a href="#" class="social-link"><i class="fab fa-twitter"></i></a>
|
| 391 |
+
<a href="#" class="social-link"><i class="fab fa-github"></i></a>
|
| 392 |
+
<a href="#" class="social-link"><i class="fab fa-linkedin"></a>
|
| 393 |
+
</div>
|
| 394 |
+
</footer>
|
| 395 |
+
|
| 396 |
+
<script>
|
| 397 |
+
// Generate particles
|
| 398 |
+
function createParticles() {
|
| 399 |
+
const particlesContainer = document.getElementById('particles');
|
| 400 |
+
const particleCount = 50;
|
| 401 |
+
|
| 402 |
+
for (let i = 0; i < particleCount; i++) {
|
| 403 |
+
const particle = document.createElement('div');
|
| 404 |
+
particle.classList.add('particle');
|
| 405 |
+
|
| 406 |
+
// Random properties
|
| 407 |
+
const size = Math.random() * 5 + 2;
|
| 408 |
+
const left = Math.random() * 100;
|
| 409 |
+
const animationDuration = Math.random() * 20 + 10;
|
| 410 |
+
const animationDelay = Math.random() * 5;
|
| 411 |
+
|
| 412 |
+
particle.style.width = `${size}px`;
|
| 413 |
+
particle.style.height = `${size}px`;
|
| 414 |
+
particle.style.left = `${left}%`;
|
| 415 |
+
particle.style.animationDuration = `${animationDuration}s`;
|
| 416 |
+
particle.style.animationDelay = `${animationDelay}s`;
|
| 417 |
+
|
| 418 |
+
particlesContainer.appendChild(particle);
|
| 419 |
+
}
|
| 420 |
+
}
|
| 421 |
+
|
| 422 |
+
// Language selector functionality
|
| 423 |
+
function setupLanguageSelector() {
|
| 424 |
+
const languageButtons = document.querySelectorAll('.language-btn');
|
| 425 |
+
const greeting = document.querySelector('.greeting');
|
| 426 |
+
const subtitle = document.querySelector('.subtitle');
|
| 427 |
+
|
| 428 |
+
const greetings = {
|
| 429 |
+
spanish: {
|
| 430 |
+
greeting: 'Hola!',
|
| 431 |
+
subtitle: 'Bienvenido a nuestra página de saludos interactiva. Explora diferentes idiomas y descubre la belleza de la comunicación global.'
|
| 432 |
+
},
|
| 433 |
+
english: {
|
| 434 |
+
greeting: 'Hello!',
|
| 435 |
+
subtitle: 'Welcome to our interactive greeting page. Explore different languages and discover the beauty of global communication.'
|
| 436 |
+
},
|
| 437 |
+
french: {
|
| 438 |
+
greeting: 'Bonjour!',
|
| 439 |
+
subtitle: 'Bienvenue sur notre page de salutations interactive. Explorez différentes langues et découvrez la beauté de la communication mondiale.'
|
| 440 |
+
},
|
| 441 |
+
german: {
|
| 442 |
+
greeting: 'Hallo!',
|
| 443 |
+
subtitle: 'Willkommen auf unserer interaktiven Begrüßungsseite. Entdecken Sie verschiedene Sprachen und die Schönheit der globalen Kommunikation.'
|
| 444 |
+
},
|
| 445 |
+
japanese: {
|
| 446 |
+
greeting: 'こんにちは!',
|
| 447 |
+
subtitle: '私たちのインタラクティブな挨拶ページへようこそ。様々な言語を探索し、グローバルなコミュニケーションの美しさを発見してください。'
|
| 448 |
+
},
|
| 449 |
+
chinese: {
|
| 450 |
+
greeting: '你好!',
|
| 451 |
+
subtitle: '欢迎来到我们的互动问候页面。探索不同的语言,发现全球交流的美妙之处。'
|
| 452 |
+
}
|
| 453 |
+
};
|
| 454 |
+
|
| 455 |
+
languageButtons.forEach(button => {
|
| 456 |
+
button.addEventListener('click', () => {
|
| 457 |
+
// Remove active class from all buttons
|
| 458 |
+
languageButtons.forEach(btn => btn.classList.remove('active'));
|
| 459 |
+
|
| 460 |
+
// Add active class to clicked button
|
| 461 |
+
button.classList.add('active');
|
| 462 |
+
|
| 463 |
+
// Get language
|
| 464 |
+
const language = button.dataset.language;
|
| 465 |
+
const greetingData = greetings[language];
|
| 466 |
+
|
| 467 |
+
// Animate text change
|
| 468 |
+
greeting.style.opacity = '0';
|
| 469 |
+
subtitle.style.opacity = '0';
|
| 470 |
+
|
| 471 |
+
setTimeout(() => {
|
| 472 |
+
greeting.textContent = greetingData.greeting;
|
| 473 |
+
subtitle.textContent = greetingData.subtitle;
|
| 474 |
+
greeting.style.opacity = '1';
|
| 475 |
+
subtitle.style.opacity = '1';
|
| 476 |
+
}, 300);
|
| 477 |
+
});
|
| 478 |
+
});
|
| 479 |
+
}
|
| 480 |
+
|
| 481 |
+
// Initialize everything when DOM is loaded
|
| 482 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 483 |
+
createParticles();
|
| 484 |
+
setupLanguageSelector();
|
| 485 |
+
});
|
| 486 |
+
</script>
|
| 487 |
+
</body>
|
| 488 |
+
</html>
|