feat: add serveStatic middleware
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
/* V-Hono Static File Server - CSS Example */
|
||||
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
padding: 30px;
|
||||
border-radius: 15px;
|
||||
backdrop-filter: blur(10px);
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
font-size: 2.5em;
|
||||
margin-bottom: 30px;
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.feature-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.feature-list li {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
margin: 10px 0;
|
||||
padding: 15px;
|
||||
border-radius: 8px;
|
||||
border-left: 4px solid #4CAF50;
|
||||
}
|
||||
|
||||
.endpoint {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
padding: 15px;
|
||||
margin: 15px 0;
|
||||
border-radius: 8px;
|
||||
font-family: 'Courier New', monospace;
|
||||
}
|
||||
|
||||
.endpoint strong {
|
||||
color: #4CAF50;
|
||||
}
|
||||
|
||||
/* Animation for features */
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(20px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.feature-list li {
|
||||
animation: fadeIn 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
.feature-list li:nth-child(1) { animation-delay: 0.1s; }
|
||||
.feature-list li:nth-child(2) { animation-delay: 0.2s; }
|
||||
.feature-list li:nth-child(3) { animation-delay: 0.3s; }
|
||||
.feature-list li:nth-child(4) { animation-delay: 0.4s; }
|
||||
.feature-list li:nth-child(5) { animation-delay: 0.5s; }
|
||||
.feature-list li:nth-child(6) { animation-delay: 0.6s; }
|
||||
.feature-list li:nth-child(7) { animation-delay: 0.7s; }
|
||||
Reference in New Issue
Block a user