Commit 44622b27 authored by Sven Franck's avatar Sven Franck Committed by Romain Courteaud

Improve UI with some CSS.

parent 15dcf792
html, /* for color lovers: https://color.adobe.com/Neutral-Blue-color-theme-22361 */
body { body {
height: 100%; font-size: 1em;
margin: 0; line-height: 1.3;
padding: 0; font-family: sans-serif;
width: 100%; font-weight: 400;
background-color: #D1DBBD;
border-color: #193441;
color: #3E606F;
text-shadow: 0 1px 0 #f3f3f3;
} }
.custom-content-block {
body { width: 50%;
-webkit-box-orient: vertical; margin: 0 auto;
display: -webkit-box; padding: 1em;
background: #FCFFF5;
border: 1px solid #193441;
-webkit-border-radius: .3125em;
border-radius: .3125em;
}
.custom-content-intro {
text-align: center;
}
.custom-content-header {
font-size: 1.5em;
font-weight: 300;
color: #193441;
padding: .25em;
margin: 0 0 .5em;
}
textarea {
width: 99%;
} }
@media (max-width: 60em) {
#log { .custom-content-block {
-webkit-box-flex: 1; width: 80%;
}
} }
@media (max-width: 40em) {
#log, .custom-content-block {
#input { width: auto;
display: block; }
} }
...@@ -7,11 +7,13 @@ ...@@ -7,11 +7,13 @@
<script src="index.js"></script> <script src="index.js"></script>
</head> </head>
<body> <body>
<p>This is a WebSocket server which broadcasts all messages to all connected clients</p> <div class="custom-content-block">
<h2>Server URLs</h2> <p class="custom-content-intro">This is a WebSocket server which broadcasts all messages to all connected clients</p>
<textarea readonly id="server_url_list"></textarea> <h2 class="custom-content-header">Server URLs</h2>
<h2>Peer list</h2> <textarea readonly rows="1" id="server_url_list"></textarea>
<h2 class="custom-content-header">Peer list</h2>
<p>Connected peers: <span id="client_count">0</span></p> <p>Connected peers: <span id="client_count">0</span></p>
<textarea readonly id="peer_list"></textarea> <textarea readonly rows="19" id="peer_list"></textarea>
</div>
</body> </body>
</html> </html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment