Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Hello App</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| :root { | |
| --primary-color: #4a6fa5; | |
| --secondary-color: #166088; | |
| --accent-color: #4fc3f7; | |
| --text-color: #333; | |
| --light-color: #f8f9fa; | |
| --shadow-color: rgba(0, 0, 0, 0.1); | |
| --transition-speed: 0.3s; | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| } | |
| body { | |
| background-color: var(--light-color); | |
| color: var(--text-color); | |
| line-height: 1.6; | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| header { | |
| background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); | |
| color: white; | |
| padding: 1.5rem; | |
| box-shadow: 0 2px 10px var(--shadow-color); | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| } | |
| .header-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .logo { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .logo i { | |
| font-size: 1.8rem; | |
| } | |
| .header-links { | |
| display: flex; | |
| gap: 1rem; | |
| } | |
| .header-links a { | |
| color: white; | |
| text-decoration: none; | |
| padding: 0.5rem 1rem; | |
| border-radius: 20px; | |
| transition: all var(--transition-speed) ease; | |
| } | |
| .header-links a:hover { | |
| background-color: rgba(255, 255, 255, 0.2); | |
| } | |
| .anycoder-link { | |
| background-color: rgba(255, 255, 255, 0.3) ; | |
| } | |
| main { | |
| flex: 1; | |
| max-width: 1200px; | |
| margin: 2rem auto; | |
| padding: 0 1rem; | |
| display: grid; | |
| place-items: center; | |
| } | |
| .hello-container { | |
| text-align: center; | |
| padding: 3rem; | |
| background-color: white; | |
| border-radius: 15px; | |
| box-shadow: 0 10px 30px var(--shadow-color); | |
| width: 100%; | |
| max-width: 600px; | |
| transform: translateY(0); | |
| opacity: 1; | |
| animation: fadeInUp 0.8s ease-out; | |
| } | |
| .hello-title { | |
| font-size: 4rem; | |
| font-weight: 800; | |
| margin-bottom: 1rem; | |
| background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| color: transparent; | |
| text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); | |
| } | |
| .hello-subtitle { | |
| font-size: 1.2rem; | |
| color: var(--secondary-color); | |
| margin-bottom: 2rem; | |
| } | |
| .hello-message { | |
| font-size: 1.1rem; | |
| margin-bottom: 2rem; | |
| line-height: 1.8; | |
| } | |
| .hello-icon { | |
| font-size: 4rem; | |
| color: var(--accent-color); | |
| margin-bottom: 1rem; | |
| animation: pulse 2s infinite; | |
| } | |
| .btn { | |
| display: inline-block; | |
| padding: 0.8rem 1.5rem; | |
| background-color: var(--primary-color); | |
| color: white; | |
| border: none; | |
| border-radius: 50px; | |
| cursor: pointer; | |
| font-size: 1rem; | |
| font-weight: 600; | |
| text-decoration: none; | |
| transition: all var(--transition-speed) ease; | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| } | |
| .btn:hover { | |
| background-color: var(--secondary-color); | |
| transform: translateY(-2px); | |
| box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); | |
| } | |
| .btn:active { | |
| transform: translateY(0); | |
| } | |
| .features { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
| gap: 2rem; | |
| margin-top: 3rem; | |
| width: 100%; | |
| } | |
| .feature-card { | |
| background-color: white; | |
| padding: 2rem; | |
| border-radius: 10px; | |
| box-shadow: 0 5px 15px var(--shadow-color); | |
| transition: all var(--transition-speed) ease; | |
| text-align: center; | |
| } | |
| .feature-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); | |
| } | |
| .feature-icon { | |
| font-size: 2.5rem; | |
| color: var(--accent-color); | |
| margin-bottom: 1rem; | |
| } | |
| .feature-title { | |
| font-size: 1.3rem; | |
| font-weight: 700; | |
| margin-bottom: 0.5rem; | |
| color: var(--primary-color); | |
| } | |
| footer { | |
| background-color: var(--secondary-color); | |
| color: white; | |
| text-align: center; | |
| padding: 2rem; | |
| margin-top: auto; | |
| } | |
| .social-links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 1.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| .social-links a { | |
| color: white; | |
| font-size: 1.5rem; | |
| transition: all var(--transition-speed) ease; | |
| } | |
| .social-links a:hover { | |
| color: var(--accent-color); | |
| transform: translateY(-3px); | |
| } | |
| .copyright { | |
| margin-top: 1rem; | |
| font-size: 0.9rem; | |
| opacity: 0.8; | |
| } | |
| @keyframes fadeInUp { | |
| from { | |
| transform: translateY(20px); | |
| opacity: 0; | |
| } | |
| to { | |
| transform: translateY(0); | |
| opacity: 1; | |
| } | |
| } | |
| @keyframes pulse { | |
| 0% { | |
| transform: scale(1); | |
| } | |
| 50% { | |
| transform: scale(1.05); | |
| } | |
| 100% { | |
| transform: scale(1); | |
| } | |
| } | |
| @media (max-width: 768px) { | |
| .header-content { | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .hello-title { | |
| font-size: 3rem; | |
| } | |
| .features { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .hello-title { | |
| font-size: 2.5rem; | |
| } | |
| .hello-container { | |
| padding: 2rem 1.5rem; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <header> | |
| <div class="header-content"> | |
| <div class="logo"> | |
| <i class="fas fa-hand-paper"></i> | |
| <span>HelloApp</span> | |
| </div> | |
| <div class="header-links"> | |
| <a href="#">Home</a> | |
| <a href="#">Features</a> | |
| <a href="#">About</a> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link" target="_blank">Built with anycoder</a> | |
| </div> | |
| </div> | |
| </header> | |
| <main> | |
| <div class="hello-container"> | |
| <div class="hello-icon"> | |
| <i class="fas fa-hand-paper"></i> | |
| </div> | |
| <h1 class="hello-title">Hello!</h1> | |
| <p class="hello-subtitle">Welcome to our application</p> | |
| <p class="hello-message"> | |
| This is a modern, responsive web application built with pure HTML, CSS, and JavaScript. | |
| It demonstrates clean design principles and modern web development techniques. | |
| </p> | |
| <a href="#" class="btn">Get Started</a> | |
| </div> | |
| <div class="features"> | |
| <div class="feature-card"> | |
| <div class="feature-icon"> | |
| <i class="fas fa-mobile-alt"></i> | |
| </div> | |
| <h3 class="feature-title">Responsive</h3> | |
| <p>Works perfectly on all device sizes from mobile to desktop</p> | |
| </div> | |
| <div class="feature-card"> | |
| <div class="feature-icon"> | |
| <i class="fas fa-tachometer-alt"></i> | |
| </div> | |
| <h3 class="feature-title">Fast</h3> | |
| <p>Optimized for performance with clean, efficient code</p> | |
| </div> | |
| <div class="feature-card"> | |
| <div class="feature-icon"> | |
| <i class="fas fa-paint-brush"></i> | |
| </div> | |
| <h3 class="feature-title">Beautiful</h3> | |
| <p>Modern design with smooth animations and transitions</p> | |
| </div> | |
| </div> | |
| </main> | |
| <footer> | |
| <div class="social-links"> | |
| <a href="#"><i class="fab fa-twitter"></i></a> | |
| <a href="#"><i class="fab fa-facebook"></i></a> | |
| <a href="#"><i class="fab fa-github"></i></a> | |
| <a href="#"><i class="fab fa-instagram"></i></a> | |
| </div> | |
| <p class="copyright">© 2023 HelloApp. All rights reserved.</p> | |
| </footer> | |
| <script> | |
| // Simple interaction for the button | |
| document.querySelector('.btn').addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| alert('Welcome! Thanks for clicking!'); | |
| }); | |
| // Add some dynamic behavior to feature cards | |
| const featureCards = document.querySelectorAll('.feature-card'); | |
| featureCards.forEach(card => { | |
| card.addEventListener('mouseenter', () => { | |
| card.style.transform = 'translateY(-5px)'; | |
| }); | |
| card.addEventListener('mouseleave', () => { | |
| card.style.transform = 'translateY(0)'; | |
| }); | |
| }); | |
| // Change header color on scroll | |
| window.addEventListener('scroll', () => { | |
| const header = document.querySelector('header'); | |
| if (window.scrollY > 100) { | |
| header.style.background = 'linear-gradient(135deg, var(--secondary-color), var(--primary-color))'; | |
| } else { | |
| header.style.background = 'linear-gradient(135deg, var(--primary-color), var(--secondary-color))'; | |
| } | |
| }); | |
| </script> | |
| </body> | |
| </html> |