192 lines
4.0 KiB
HTML
192 lines
4.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>WebServ - HTTP Server</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Arial', sans-serif;
|
|
line-height: 1.6;
|
|
color: #333;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
margin-bottom: 3rem;
|
|
color: white;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 3.5rem;
|
|
margin-bottom: 1rem;
|
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
header p {
|
|
font-size: 1.2rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.features {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 2rem;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.feature-card {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
padding: 2rem;
|
|
border-radius: 15px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.feature-card:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.feature-card h3 {
|
|
color: #5a67d8;
|
|
margin-bottom: 1rem;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.status {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
padding: 2rem;
|
|
border-radius: 15px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
|
text-align: center;
|
|
}
|
|
|
|
.status-indicator {
|
|
display: inline-block;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: #48bb78;
|
|
border-radius: 50%;
|
|
margin-right: 10px;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
|
|
50% {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
margin-top: 3rem;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 2rem;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.nav-links a {
|
|
color: white;
|
|
text-decoration: none;
|
|
padding: 0.8rem 1.5rem;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 25px;
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
.nav-links a:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<h1>WebServ</h1>
|
|
<p>High-Performance HTTP Server</p>
|
|
<div class="nav-links">
|
|
<a href="/">Home</a>
|
|
<a href="/about">About</a>
|
|
<a href="/docs">Documentation</a>
|
|
<a href="/test">Test Page</a>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="features">
|
|
<div class="feature-card">
|
|
<h3>⚡ Fast & Efficient</h3>
|
|
<p>Built with performance in mind, handling multiple concurrent connections with minimal resource usage.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="feature-card">
|
|
<h3>🛡️ Secure</h3>
|
|
<p>Implements robust security measures and follows best practices for web server development.</p>
|
|
</div>
|
|
|
|
<div class="feature-card">
|
|
<h3>🔧 Configurable</h3>
|
|
<p>Highly customizable with flexible configuration options to suit your specific needs.</p>
|
|
</div>
|
|
|
|
<div class="feature-card">
|
|
<h3>📊 HTTP/1.1 Compliant</h3>
|
|
<p>Full support for HTTP/1.1 protocol with proper request/response handling.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="status">
|
|
<h2>Server Status</h2>
|
|
<p><span class="status-indicator"></span>Server is running and ready to serve requests</p>
|
|
<p><strong>Version:</strong> 1.0.0</p>
|
|
<p><strong>Started:</strong> <span id="timestamp"></span></p>
|
|
</div>
|
|
<img src="/images/nginy.jpg" alt="Nginx"
|
|
style="display: block; margin: 2rem auto; max-width: 100%; border-radius: 15px; box-shadow: 0 8px 32px rgba(0,0,0,0.1);">
|
|
<footer class="footer">
|
|
<p>© 2024 WebServ Project. Built with passion for web technologies.</p>
|
|
</footer>
|
|
</div>
|
|
|
|
<script>
|
|
// Display current timestamp
|
|
document.getElementById('timestamp').textContent = new Date().toLocaleString();
|
|
|
|
// Update timestamp every second
|
|
setInterval(() => {
|
|
document.getElementById('timestamp').textContent = new Date().toLocaleString();
|
|
}, 1000);
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|
|
</footer> |