Spaces:
Running
Running
Download index.html from Dhilip94/anycoder-cdbe79a1: direct link, hf CLI and curl.
- Browser
- Download file 9.53 kB
-
https://huggingface.co/spaces/Dhilip94/anycoder-cdbe79a1/resolve/main/index.html
- Command line
-
hf download hf://spaces/Dhilip94/anycoder-cdbe79a1/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Dhilip94/anycoder-cdbe79a1/resolve/main/index.html
9.53 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Greeting 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; | |
| --dark-color: #343a40; | |
| --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| --border-radius: 12px; | |
| } | |
| * { | |
| 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; | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 100vh; | |
| } | |
| header { | |
| background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); | |
| color: white; | |
| padding: 1.5rem; | |
| box-shadow: var(--shadow); | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| } | |
| .header-container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .logo { | |
| font-size: 1.5rem; | |
| font-weight: bold; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .logo-icon { | |
| font-size: 1.8rem; | |
| } | |
| .anycoder-link { | |
| color: white; | |
| text-decoration: none; | |
| font-size: 0.9rem; | |
| transition: opacity 0.3s; | |
| } | |
| .anycoder-link:hover { | |
| opacity: 0.8; | |
| } | |
| main { | |
| flex: 1; | |
| max-width: 1200px; | |
| margin: 2rem auto; | |
| padding: 0 1rem; | |
| width: 100%; | |
| } | |
| .greeting-card { | |
| background: white; | |
| border-radius: var(--border-radius); | |
| box-shadow: var(--shadow); | |
| padding: 2.5rem; | |
| text-align: center; | |
| margin-bottom: 2rem; | |
| transition: transform 0.3s, box-shadow 0.3s; | |
| } | |
| .greeting-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); | |
| } | |
| .greeting-icon { | |
| font-size: 4rem; | |
| color: var(--accent-color); | |
| margin-bottom: 1rem; | |
| animation: bounce 2s infinite; | |
| } | |
| @keyframes bounce { | |
| 0%, 20%, 50%, 80%, 100% { | |
| transform: translateY(0); | |
| } | |
| 40% { | |
| transform: translateY(-20px); | |
| } | |
| 60% { | |
| transform: translateY(-10px); | |
| } | |
| } | |
| h1 { | |
| font-size: 2.5rem; | |
| margin-bottom: 1rem; | |
| background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| color: transparent; | |
| } | |
| .greeting-message { | |
| font-size: 1.2rem; | |
| margin-bottom: 2rem; | |
| color: var(--dark-color); | |
| } | |
| .cta-button { | |
| background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); | |
| color: white; | |
| border: none; | |
| padding: 0.8rem 1.5rem; | |
| font-size: 1rem; | |
| border-radius: var(--border-radius); | |
| cursor: pointer; | |
| transition: all 0.3s; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .cta-button:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | |
| } | |
| .features { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |
| gap: 1.5rem; | |
| margin-top: 3rem; | |
| } | |
| .feature-card { | |
| background: white; | |
| border-radius: var(--border-radius); | |
| padding: 1.5rem; | |
| box-shadow: var(--shadow); | |
| transition: all 0.3s; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .feature-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); | |
| } | |
| .feature-icon { | |
| font-size: 2.5rem; | |
| color: var(--accent-color); | |
| margin-bottom: 1rem; | |
| align-self: flex-start; | |
| } | |
| .feature-card h3 { | |
| margin-bottom: 0.5rem; | |
| color: var(--primary-color); | |
| } | |
| footer { | |
| background-color: var(--dark-color); | |
| color: white; | |
| text-align: center; | |
| padding: 1.5rem; | |
| margin-top: auto; | |
| } | |
| .social-links { | |
| margin: 1rem 0; | |
| } | |
| .social-links a { | |
| color: white; | |
| margin: 0 0.5rem; | |
| font-size: 1.5rem; | |
| transition: color 0.3s; | |
| } | |
| .social-links a:hover { | |
| color: var(--accent-color); | |
| } | |
| .copyright { | |
| font-size: 0.9rem; | |
| opacity: 0.8; | |
| } | |
| @media (max-width: 768px) { | |
| .header-container { | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| h1 { | |
| font-size: 2rem; | |
| } | |
| .greeting-card { | |
| padding: 1.5rem; | |
| } | |
| .greeting-icon { | |
| font-size: 3rem; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| h1 { | |
| font-size: 1.8rem; | |
| } | |
| .greeting-message { | |
| font-size: 1rem; | |
| } | |
| .features { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <header> | |
| <div class="header-container"> | |
| <div class="logo"> | |
| <i class="fas fa-hand-paper logo-icon"></i> | |
| <span>Greeting App</span> | |
| </div> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link" target="_blank"> | |
| <i class="fas fa-code"></i> Built with anycoder | |
| </a> | |
| </div> | |
| </header> | |
| <main> | |
| <div class="greeting-card"> | |
| <i class="fas fa-hand-paper greeting-icon"></i> | |
| <h1>Hello There!</h1> | |
| <p class="greeting-message">Welcome to our greeting application. We're delighted to have you here!</p> | |
| <button class="cta-button" id="greetButton"> | |
| <i class="fas fa-smile"></i> Get Personal Greeting | |
| </button> | |
| </div> | |
| <div class="features"> | |
| <div class="feature-card"> | |
| <i class="fas fa-mobile-alt feature-icon"></i> | |
| <h3>Responsive Design</h3> | |
| <p>Our application looks great on all devices, from desktop to mobile.</p> | |
| </div> | |
| <div class="feature-card"> | |
| <i class="fas fa-palette feature-icon"></i> | |
| <h3>Modern UI</h3> | |
| <p>Built with modern CSS techniques for a beautiful and smooth experience.</p> | |
| </div> | |
| <div class="feature-card"> | |
| <i class="fas fa-rocket feature-icon"></i> | |
| <h3>Fast Performance</h3> | |
| <p>Optimized for speed and efficiency with clean code.</p> | |
| </div> | |
| </div> | |
| </main> | |
| <footer> | |
| <div class="social-links"> | |
| <a href="#" aria-label="Facebook"><i class="fab fa-facebook"></i></a> | |
| <a href="#" aria-label="Twitter"><i class="fab fa-twitter"></i></a> | |
| <a href="#" aria-label="Instagram"><i class="fab fa-instagram"></i></a> | |
| <a href="#" aria-label="GitHub"><i class="fab fa-github"></i></a> | |
| </div> | |
| <p class="copyright">© 2023 Greeting App. All rights reserved.</p> | |
| </footer> | |
| <script> | |
| document.getElementById('greetButton').addEventListener('click', function() { | |
| const hour = new Date().getHours(); | |
| let greeting; | |
| if (hour < 12) { | |
| greeting = "Good morning!"; | |
| } else if (hour < 18) { | |
| greeting = "Good afternoon!"; | |
| } else { | |
| greeting = "Good evening!"; | |
| } | |
| const name = prompt("What's your name?", ""); | |
| if (name) { | |
| alert(`${greeting} ${name}! We're so happy to see you here! 😊`); | |
| } else { | |
| alert(`${greeting} friend! We're so happy to see you here! 😊`); | |
| } | |
| }); | |
| // Add some interactive animations | |
| document.querySelectorAll('.feature-card').forEach(card => { | |
| card.addEventListener('mouseenter', function() { | |
| this.style.transform = 'translateY(-5px) scale(1.02)'; | |
| }); | |
| card.addEventListener('mouseleave', function() { | |
| this.style.transform = 'translateY(0) scale(1)'; | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |