Update README.md to provide detailed project description, features, installation instructions, usage guidelines, and technical details for WebCounter - a Flask WebSocket server.
This commit is contained in:
86
templates/index.html
Normal file
86
templates/index.html
Normal file
@@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>WebCounter - WebSocket Server</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
background: white;
|
||||
padding: 30px;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.nav-buttons {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
justify-content: center;
|
||||
margin-top: 30px;
|
||||
}
|
||||
.btn {
|
||||
padding: 15px 30px;
|
||||
font-size: 16px;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
.btn-client {
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
.btn-client:hover {
|
||||
background-color: #45a049;
|
||||
}
|
||||
.btn-controller {
|
||||
background-color: #2196F3;
|
||||
color: white;
|
||||
}
|
||||
.btn-controller:hover {
|
||||
background-color: #1976D2;
|
||||
}
|
||||
.description {
|
||||
text-align: center;
|
||||
color: #666;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>WebCounter WebSocket Server</h1>
|
||||
<div class="description">
|
||||
<p>Welcome to the WebSocket server! Choose your role:</p>
|
||||
<ul style="text-align: left; display: inline-block;">
|
||||
<li><strong>Client:</strong> Receives events from the controller</li>
|
||||
<li><strong>Controller:</strong> Sends events to connected clients</li>
|
||||
<li><strong>Mechanical Counter:</strong> Vintage-style 6-digit counter with animated wheels</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav-buttons">
|
||||
<a href="/client" class="btn btn-client">Open Client Page</a>
|
||||
<a href="/controller" class="btn btn-controller">Open Controller Page</a>
|
||||
</div>
|
||||
|
||||
<div class="nav-buttons" style="margin-top: 20px;">
|
||||
<a href="/mechanical-counter" class="btn btn-client">Mechanical Counter Display</a>
|
||||
<a href="/mechanical-counter-controller" class="btn btn-controller">Mechanical Counter Controller</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user