Added font and did UI adjustments

This commit is contained in:
Samuel Kent
2022-12-29 09:20:58 +11:00
parent 6b3507cd18
commit c9d384015a
9 changed files with 48 additions and 10 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ app.get("/browserFunctions.js", (request, response) => {
});
//all files in these folders can be accessed with a GET request of the filename
let assetFolders = ["styles","pages","images","audio"];
let assetFolders = ["styles","pages","images","audio","fonts"];
assetFolders.forEach((folderName) => {
let folderContents = fs.readdirSync(folderName);
folderContents.forEach((fileName) => {
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
+2 -1
View File
@@ -3,6 +3,7 @@
<head>
<title>The cooler buzzer website</title>
<link rel="stylesheet" href="styleMain.css">
<!-- <link rel="preload" href="Twoson.woff2" as="font" type="font/woff2" crossorigin> -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<!-- <script src="https:/socket.io/socket.io.js"></script> -->
<script>
@@ -41,7 +42,7 @@
<br>
Your name, please:
<br>
<input type="text" id="userName" placeholder="User name">
<input type="text" id="userName" placeholder="User name" style="margin-top: 10px; width: 240px;">
<br>
<br>
Then pick a team:
+4 -3
View File
@@ -3,6 +3,7 @@
<head>
<title>The cooler buzzer website</title>
<link rel="stylesheet" href="styleMain.css">
<!-- <link rel="preload" href="Twoson.woff2" as="font" type="font/woff2" crossorigin> -->
<script src="browserFunctions.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="http:/socket.io/socket.io.js"></script>
@@ -55,12 +56,12 @@
<p id="currentTeam"></p>
Progress:
<p id="currentScore"></p>
<button id="plus0" type="button" style="width: 226px; height: 50px; margin: 5px;">+0 Points</button>
<button id="plus0" type="button" style="width: 230px; height: 50px; margin: 5px;">+0 Points</button>
<br>
<button id="plus1" type="button" style="width: 110px; height: 50px;">+1 Point</button>
<button id="plus2" type="button" style="width: 110px; height: 50px;">+2 Points</button>
<p style="font-size: 15px; margin: 5px;">(all points buttons clear buzzers)</p>
<br>
<p style="font-size: 11px; margin: 5px;">(all points buttons clear buzzers)</p>
<!-- <br> -->
<p id="firstBuzz"></p>
<br><br><br>
<button id="unregisterUsers" type="button" style="height: 30px;">Remove all players</button>
+2
View File
@@ -3,9 +3,11 @@
<head>
<title>The cooler buzzer website</title>
<link rel="stylesheet" href="styleMain.css">
<!-- <link rel="preload" href="Twoson.woff2" as="font" type="font/woff2" crossorigin> -->
<script src="browserFunctions.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="http:/socket.io/socket.io.js"></script>
<script>
$(document).ready(function() {
var socket = io();
+39 -5
View File
@@ -1,10 +1,21 @@
body {
font-family: 'Twoson';
color: rgb(255, 255, 255);
background-color: rgb(23, 23, 23);
font-size: 25px;
padding: 20px 60px;
}
button {
font-family: 'Twoson';
}
input {
font-family: 'Twoson';
}
a, a:visited {
color: rgb(199, 147, 255);
}
@@ -22,13 +33,22 @@ a, a:visited {
}
#PlayersList {
/* font-family: "Lucida Console"; */
position: absolute;
left: 200px;
left: 110px;
border: dashed;
width: 350px;
min-height: 130px;
padding-left: 5px;
}
#ChasersList {
position: absolute;
left: 800px;
left: 724px;
border: dashed;
width: 350px;
min-height: 130px;
padding-left: 5px;
}
ul {
@@ -71,12 +91,26 @@ ul {
top: 80px;
width: 500px;
margin-left: -250px;
font-size: 15px;
font-size: 11px;
}
#PlayersList {
left: 10px;
left: 0px;
width: 120px;
}
#ChasersList {
left: 350px;
left: 370px;
width: 120px;
}
}
@font-face {
font-family: 'Twoson';
src: url('Twoson.eot');
src: url('Twoson.eot?#iefix') format('embedded-opentype'),
url('Twoson.woff2') format('woff2'),
url('Twoson.woff') format('woff'),
url('Twoson.ttf') format('truetype');
font-weight: normal;
font-style: italic;
font-display: swap;
}