anycoder-90dd0ea8 / index.html
Marvin Wiesner
Upload folder using huggingface_hub
03084fc verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern Web App</title>
<style>
:root {
--primary: #4361ee;
--secondary: #3f37c9;
--accent: #4895ef;
--light: #f8f9fa;
--dark: #212529;
--success: #4cc9f0;
--warning: #f72585;
--radius: 8px;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: var(--light);
color: var(--dark);
line-height: 1.6;
}
header {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
padding: 1rem 2rem;
box-shadow: var(--shadow);
position: sticky;
top: 0;
z-index: 100;
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-icon {
font-size: 2rem;
}
nav ul {
display: flex;
list-style: none;
gap: 1.5rem;
}
nav a {
color: white;
text-decoration: none;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: var(--radius);
transition: var(--transition);
}
nav a:hover {
background-color: rgba(255, 255, 255, 0.2);
}
.mobile-menu-btn {
display: none;
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
}
.hero {
padding: 4rem 2rem;
text-align: center;
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
url('https://source.unsplash.com/random/1600x900/?technology') center/cover no-repeat;
color: white;
}
.hero h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
.hero p {
font-size: 1.2rem;
max-width: 700px;
margin: 0 auto 2rem;
}
.btn {
display: inline-block;
background-color: var(--accent);
color: white;
padding: 0.8rem 1.5rem;
border-radius: var(--radius);
text-decoration: none;
font-weight: 600;
transition: var(--transition);
border: none;
cursor: pointer;
}
.btn:hover {
background-color: var(--secondary);
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin: 3rem 0;
}
.feature-card {
background-color: white;
border-radius: var(--radius);
padding: 2rem;
box-shadow: var(--shadow);
transition: var(--transition);
}
.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.feature-icon {
font-size: 2.5rem;
color: var(--accent);
margin-bottom: 1rem;
}
.feature-card h3 {
margin-bottom: 1rem;
color: var(--primary);
}
.cta {
background-color: var(--primary);
color: white;
text-align: center;
padding: 4rem 2rem;
margin: 3rem 0;
border-radius: var(--radius);
}
.cta h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.testimonials {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin: 3rem 0;
}
.testimonial-card {
background-color: white;
border-radius: var(--radius);
padding: 2rem;
box-shadow: var(--shadow);
}
.testimonial-text {
font-style: italic;
margin-bottom: 1rem;
}
.testimonial-author {
display: flex;
align-items: center;
gap: 1rem;
}
.author-avatar {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: cover;
}
.author-info h4 {
margin-bottom: 0.2rem;
}
.author-info p {
color: #666;
font-size: 0.9rem;
}
footer {
background-color: var(--dark);
color: white;
padding: 3rem 2rem;
text-align: center;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
text-align: left;
}
.footer-column h3 {
margin-bottom: 1.5rem;
color: var(--accent);
}
.footer-column ul {
list-style: none;
}
.footer-column li {
margin-bottom: 0.8rem;
}
.footer-column a {
color: #ccc;
text-decoration: none;
transition: var(--transition);
}
.footer-column a:hover {
color: white;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-links a {
color: white;
font-size: 1.5rem;
}
.copyright {
margin-top: 3rem;
padding-top: 1.5rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* Dark mode toggle */
.dark-mode-toggle {
position: fixed;
bottom: 2rem;
right: 2rem;
background-color: var(--primary);
color: white;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: var(--shadow);
z-index: 100;
}
/* Responsive styles */
@media (max-width: 768px) {
nav ul {
display: none;
position: absolute;
top: 70px;
left: 0;
right: 0;
background-color: var(--secondary);
flex-direction: column;
padding: 1rem;
gap: 0.5rem;
}
nav ul.show {
display: flex;
}
.mobile-menu-btn {
display: block;
}
.hero h1 {
font-size: 2.2rem;
}
.hero p {
font-size: 1rem;
}
}
/* Dark mode styles */
body.dark-mode {
background-color: #121212;
color: #e0e0e0;
}
body.dark-mode .feature-card,
body.dark-mode .testimonial-card {
background-color: #1e1e1e;
color: #e0e0e0;
}
body.dark-mode .footer-column a {
color: #aaa;
}
body.dark-mode .footer-column a:hover {
color: white;
}
</style>
</head>
<body>
<header>
<div class="logo">
<span class="logo-icon">⚑</span>
<span>AnyCoder</span>
</div>
<nav>
<button class="mobile-menu-btn">☰</button>
<ul id="nav-menu">
<li><a href="#features">Features</a></li>
<li><a href="#testimonials">Testimonials</a></li>
<li><a href="#pricing">Pricing</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<section class="hero">
<h1>Build Amazing Web Applications</h1>
<p>Create beautiful, responsive websites with our powerful tools and templates. Perfect for developers and designers alike.</p>
<a href="#cta" class="btn">Get Started</a>
</section>
<div class="container">
<section id="features" class="features">
<div class="feature-card">
<div class="feature-icon">πŸš€</div>
<h3>Lightning Fast</h3>
<p>Our platform is optimized for speed, ensuring your applications load in milliseconds and provide a smooth user experience.</p>
</div>
<div class="feature-card">
<div class="feature-icon">πŸ“±</div>
<h3>Fully Responsive</h3>
<p>Every component is designed to work perfectly on any device, from mobile phones to large desktop screens.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🎨</div>
<h3>Customizable</h3>
<p>Easily customize colors, fonts, and layouts to match your brand identity with our intuitive design tools.</p>
</div>
</section>
<section id="testimonials" class="testimonials">
<div class="testimonial-card">
<p class="testimonial-text">"This platform has completely transformed how we build web applications. The speed and flexibility are unmatched."</p>
<div class="testimonial-author">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Sarah Johnson" class="author-avatar">
<div class="author-info">
<h4>Sarah Johnson</h4>
<p>CTO, TechCorp</p>
</div>
</div>
</div>
<div class="testimonial-card">
<p class="testimonial-text">"As a freelance developer, this tool has saved me countless hours. The templates are beautiful and easy to customize."</p>
<div class="testimonial-author">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Michael Chen" class="author-avatar">
<div class="author-info">
<h4>Michael Chen</h4>
<p>Freelance Developer</p>
</div>
</div>
</div>
</section>
</div>
<section id="cta" class="cta">
<div class="container">
<h2>Ready to Build Something Amazing?</h2>
<p>Join thousands of developers who are already creating beautiful web applications with our platform.</p>
<button class="btn" id="signup-btn">Sign Up Now</button>
</div>
</section>
<footer>
<div class="footer-content">
<div class="footer-column">
<h3>Product</h3>
<ul>
<li><a href="#">Features</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Documentation</a></li>
<li><a href="#">Releases</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Company</h3>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Press</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Resources</h3>
<ul>
<li><a href="#">Blog</a></li>
<li><a href="#">Tutorials</a></li>
<li><a href="#">Support</a></li>
<li><a href="#">Community</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Connect</h3>
<div class="social-links">
<a href="#">πŸ“±</a>
<a href="#">🐦</a>
<a href="#">πŸ“˜</a>
<a href="#">πŸ’Ό</a>
</div>
</div>
</div>
<div class="copyright">
<p>&copy; 2023 AnyCoder. All rights reserved. <a href="https://huggingface.co/spaces/akhaliq/anycoder" style="color: var(--accent);">Built with anycoder</a></p>
</div>
</footer>
<div class="dark-mode-toggle" id="dark-mode-toggle">
πŸŒ™
</div>
<script>
// Mobile menu toggle
const mobileMenuBtn = document.querySelector('.mobile-menu-btn');
const navMenu = document.getElementById('nav-menu');
mobileMenuBtn.addEventListener('click', () => {
navMenu.classList.toggle('show');
});
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
navMenu.classList.remove('show');
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Dark mode toggle
const darkModeToggle = document.getElementById('dark-mode-toggle');
darkModeToggle.addEventListener('click', () => {
document.body.classList.toggle('dark-mode');
darkModeToggle.textContent = document.body.classList.contains('dark-mode') ? 'β˜€οΈ' : 'πŸŒ™';
});
// Signup button animation
const signupBtn = document.getElementById('signup-btn');
signupBtn.addEventListener('click', () => {
signupBtn.textContent = 'Processing...';
setTimeout(() => {
signupBtn.textContent = 'Thank You!';
signupBtn.style.backgroundColor = 'var(--success)';
}, 1000);
setTimeout(() => {
signupBtn.textContent = 'Sign Up Now';
signupBtn.style.backgroundColor = 'var(--accent)';
}, 3000);
});
// Animate feature cards on scroll
const featureCards = document.querySelectorAll('.feature-card');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = '1';
entry.target.style.transform = 'translateY(0)';
}
});
}, { threshold: 0.1 });
featureCards.forEach(card => {
card.style.opacity = '0';
card.style.transform = 'translateY(20px)';
card.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
observer.observe(card);
});
</script>
</body>
</html>