re-write with std usage of net/http
This commit is contained in:
parent
c107d94b11
commit
81bc046237
10 changed files with 419 additions and 97 deletions
56
static/index.html
Normal file
56
static/index.html
Normal file
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Cool Web Server</title>
|
||||
<link rel="stylesheet" href="/static/styles/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<h1>Welcome to My Web Server</h1>
|
||||
<p class="subtitle">A modern and efficient web server implementation</p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
<section class="features">
|
||||
<div class="feature-card">
|
||||
<h3>Fast & Efficient</h3>
|
||||
<p>Built with performance in mind, ensuring quick response times and optimal resource usage.</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<h3>Modern Stack</h3>
|
||||
<p>Utilizing the latest web technologies and best practices for a robust server implementation.</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<h3>Easy to Use</h3>
|
||||
<p>Simple configuration and straightforward setup process for hassle-free deployment.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div style="text-align: center;">
|
||||
<a href="#" class="cta-button">Get Started</a>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div class="container">
|
||||
<p>© 2024 My Web Server. All rights reserved.</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
// Add some interactivity
|
||||
document.querySelectorAll('.feature-card').forEach(card => {
|
||||
card.addEventListener('click', () => {
|
||||
card.style.transform = 'scale(1.02)';
|
||||
setTimeout(() => {
|
||||
card.style.transform = 'translateY(-5px)';
|
||||
}, 200);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue