forked from HoloTech/twitch-subathon-timer
Compare commits
9 Commits
master
...
2d9e320d42
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d9e320d42 | |||
| da6ae0b9c3 | |||
| 960c037362 | |||
| 1f49e82035 | |||
| 31bc26c72f | |||
| 45502c00e4 | |||
| 9544579ebe | |||
| f8bce7a50c | |||
| b1fb0299d2 |
121
index.html
121
index.html
@@ -8,60 +8,109 @@
|
|||||||
<link href='https://fonts.googleapis.com/css?family=Inter' rel='stylesheet'>
|
<link href='https://fonts.googleapis.com/css?family=Inter' rel='stylesheet'>
|
||||||
<link rel="stylesheet" href="timer.css" />
|
<link rel="stylesheet" href="timer.css" />
|
||||||
<script src="timer.js"></script>
|
<script src="timer.js"></script>
|
||||||
<title>Lilac Timer</title>
|
<title>v2 onefont</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<main>
|
||||||
<div class='contentContainer'>
|
<div class='contentContainer'>
|
||||||
<img id='MainHeart' src='src/youve_got_mail_whiteheart.png'>
|
|
||||||
|
<img class='mainHeart' src='src/youvegotmail.webp'>
|
||||||
|
|
||||||
|
<div class='infoWrap'>
|
||||||
<div class='infoGroup'>
|
<div class='infoGroup'>
|
||||||
|
|
||||||
|
<div class='infoBox' id='InfoBox3'>
|
||||||
|
<p id='TopUsers'>
|
||||||
|
Leaderboard:
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class='rightFadeWrap' id='RightFadeWrapInfoBox3'>
|
||||||
|
<div class='giftUserWrap' id='GiftUserWrap'>
|
||||||
|
<div class='giftUserRow' id='GiftUserRow1'>
|
||||||
|
<p class='giftUserNum' id='GiftUserNum1'>
|
||||||
|
1
|
||||||
|
</p>
|
||||||
|
<div class='scrollWrap' id='ScrollWrapName1'>
|
||||||
|
<div class='scrollWrapW' id='ScrollWrapNameW1'>
|
||||||
|
<p class='giftUserName'id='GiftUserName1'>
|
||||||
|
Usernamethatisverylong
|
||||||
|
</p>
|
||||||
|
<p class='giftUserNameDupe'id='GiftUserNameDupe1'>
|
||||||
|
Usernamethatisverylong
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class='giftUserRow' id='GiftUserRow2'>
|
||||||
|
<p class='giftUserNum' id='GiftUserNum2'>
|
||||||
|
2
|
||||||
|
</p>
|
||||||
|
<div class='scrollWrap' id='ScrollWrapName2'>
|
||||||
|
<div class='scrollWrapW' id='ScrollWrapNameW2'>
|
||||||
|
<p class='giftUserName'id='GiftUserName2'>
|
||||||
|
Usernamethatisverylong
|
||||||
|
</p>
|
||||||
|
<p class='giftUserNameDupe'id='GiftUserNameDupe2'>
|
||||||
|
Usernamethatisverylong
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class='giftUserRow' id='GiftUserRow3'>
|
||||||
|
<p class='giftUserNum' id='GiftUserNum3'>
|
||||||
|
3
|
||||||
|
</p>
|
||||||
|
<div class='scrollWrap' id='ScrollWrapName3'>
|
||||||
|
<div class='scrollWrapW' id='ScrollWrapNameW3'>
|
||||||
|
<p class='giftUserName'id='GiftUserName3'>
|
||||||
|
Usernamethatisverylong
|
||||||
|
</p>
|
||||||
|
<p class='giftUserNameDupe'id='GiftUserNameDupe3'>
|
||||||
|
Usernamethatisverylong
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<img class='mainHeart' id='SecondHeart' src='src/youvegotmail.webp'>
|
||||||
|
|
||||||
<div class='infoBox' id='InfoBox1'>
|
<div class='infoBox' id='InfoBox1'>
|
||||||
<h1 id='Timer'>
|
<h1 id='Timer'>
|
||||||
24:16
|
00:00
|
||||||
</h1>
|
</h1>
|
||||||
<p id='TimerInfo'>
|
<p id='TimerInfo'>
|
||||||
!subathon for details
|
!subathon for details
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='infoBox' id='InfoBox2'>
|
<div class='infoBox' id='InfoBox2'>
|
||||||
<h2 id='GoalLabel'>
|
<p id='GoalLabel'>
|
||||||
Current Goal:
|
Next Goal:
|
||||||
</h2>
|
</p>
|
||||||
<h3 id='GoalName'>
|
<div class='rightFadeWrap' id='RightFadeWrapInfoBox2'>
|
||||||
|
<div class='scrollWrap' id='ScrollWrapGoal'>
|
||||||
|
<div class='scrollWrapW' id='ScrollWrapGoalW'>
|
||||||
|
<p id='GoalName'>
|
||||||
Discord Watch Party + Puzzles
|
Discord Watch Party + Puzzles
|
||||||
</h3>
|
</p>
|
||||||
|
|
||||||
|
<p id='GoalNameDupe'>
|
||||||
|
Discord Watch Party + Puzzles
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='GoalProgressWrap'>
|
||||||
<p id='GoalProgress'>
|
<p id='GoalProgress'>
|
||||||
1524/3000 Points
|
1234/5678
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class='infoBox' id='InfoBox3'>
|
|
||||||
<h2 id='TopUsers'>
|
|
||||||
Top 3 Gifters:
|
|
||||||
</h2>
|
|
||||||
<div class='giftUserRow' id='GiftUserRow1'>
|
|
||||||
<p class='giftUserNum' id='GiftUserNum1'>
|
|
||||||
1.
|
|
||||||
</p>
|
|
||||||
<p class='giftUserName'id='GiftUserName1'>
|
|
||||||
Usernamethatisverylong
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class='giftUserRow' id='GiftUserRow2'>
|
|
||||||
<p class='giftUserNum' id='GiftUserNum2'>
|
|
||||||
2.
|
|
||||||
</p>
|
|
||||||
<p class='giftUserName'id='GiftUserName2'>
|
|
||||||
Usernamethatisverylong
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class='giftUserRow' id='GiftUserRow3'>
|
|
||||||
<p class='giftUserNum' id='GiftUserNum3'>
|
|
||||||
3.
|
|
||||||
</p>
|
|
||||||
<p class='giftUserName'id='GiftUserName3'>
|
|
||||||
Usernamethatisverylong
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
222
no-bold.css
Normal file
222
no-bold.css
Normal file
@@ -0,0 +1,222 @@
|
|||||||
|
:root {
|
||||||
|
--time-color: #453960;
|
||||||
|
--details-color: #403060;
|
||||||
|
--background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: 'Inter', sans-serif;
|
||||||
|
background-color: var(--background-color);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
font-family: "Silkscreen", sans-serif;
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
color: #EA4045;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 3.4em;
|
||||||
|
color: #404145;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1.4em;
|
||||||
|
color: #404145;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1em;
|
||||||
|
color: #404145;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contentContainer {
|
||||||
|
height: fit-content;
|
||||||
|
width: fit-content;
|
||||||
|
position: relative;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#MainHeart {
|
||||||
|
max-height: 100vh;
|
||||||
|
max-width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.infoWrap {
|
||||||
|
container-type: size;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
left: 0px;
|
||||||
|
top: 0px;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 56% 34% 1fr;
|
||||||
|
/*
|
||||||
|
grid-template-rows: 11% 28% 16% 16% 1fr;
|
||||||
|
*/
|
||||||
|
grid-template-rows: 11% 1fr 29%;
|
||||||
|
place-items: center;
|
||||||
|
text-wrap: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.infoGroup {
|
||||||
|
display: block;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
grid-column-start: 2;
|
||||||
|
grid-column-end: 2;
|
||||||
|
grid-row-start: 2;
|
||||||
|
grid-row-end: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.infoBox {
|
||||||
|
height: auto;
|
||||||
|
width: 100%;
|
||||||
|
/*
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(1, 1fr);
|
||||||
|
grid-auto-rows: auto;
|
||||||
|
place-items: center;
|
||||||
|
*/
|
||||||
|
font-size: 4cqh;
|
||||||
|
}
|
||||||
|
|
||||||
|
#InfoBox1 {
|
||||||
|
margin-top: 4cqh;
|
||||||
|
/*
|
||||||
|
justify-self: left;
|
||||||
|
align-self: stretch;
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
transform: translate(-8%, 5%);
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#InfoBox2 {
|
||||||
|
/*
|
||||||
|
display: grid;
|
||||||
|
width: 100%;
|
||||||
|
justify-self: left;
|
||||||
|
align-self: stretch;
|
||||||
|
*/
|
||||||
|
transform: translate(0%, -12%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#InfoBox3 {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
grid-template-rows: 1fr 23% 23% 23%;
|
||||||
|
transform: translate(0%, -16%) scale(1, 1);
|
||||||
|
/*
|
||||||
|
justify-self: left;
|
||||||
|
align-self: stretch;
|
||||||
|
transform: translate(0%, -32%);
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#Timer {
|
||||||
|
transform: translate(-9%, 3%) scale(.95, 1.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
#TimerInfo {
|
||||||
|
transform: translate(0%, -60%);
|
||||||
|
font-size: 1em;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#GoalLabel {
|
||||||
|
transform: translate(5%, 0%) scale(1.05, 1.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
#GoalName {
|
||||||
|
width: 100%;
|
||||||
|
transform: translate(8%, -10%) scale(1, 1.4);
|
||||||
|
color: #32B993;
|
||||||
|
text-wrap: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
mask-image: linear-gradient(to right, black 85%, transparent 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#GoalProgressWrap {
|
||||||
|
width: fit-content;
|
||||||
|
padding-left: .8cqh;
|
||||||
|
padding-right: .8cqh;
|
||||||
|
transform: translate(7%, 0%) scale(1, 1);
|
||||||
|
border-radius: 3cqh;
|
||||||
|
border: .4cqh solid;
|
||||||
|
border-color: #404145;
|
||||||
|
margin: 0 auto 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#GoalProgress {
|
||||||
|
transform: translate(0%, -8%) scale(1, 1.4);
|
||||||
|
font-size: 1.3em;
|
||||||
|
text-align: center;
|
||||||
|
/*
|
||||||
|
font-weight: bold;
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#TopUsers {
|
||||||
|
transform: translate(6%, 0%) scale(1.15, 1.2);
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 1.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.giftUserWrap {
|
||||||
|
transform: translate(18%, -8%) scale(1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.giftUserRow {
|
||||||
|
width: 100%;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 8% 1fr;
|
||||||
|
grid-template-rows: 1fr;
|
||||||
|
text-wrap: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-align: left;
|
||||||
|
justify-self: left;
|
||||||
|
text-align: center;
|
||||||
|
transform: translate(0%, 0%) scale(1, 1.2);
|
||||||
|
font-size: 1.4em;
|
||||||
|
line-height: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.giftUserName {
|
||||||
|
margin-left: 0%;
|
||||||
|
color: #32B993;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#GiftUserName1 {
|
||||||
|
width: 24cqw;
|
||||||
|
mask-image: linear-gradient(to right, black 85%, transparent 100%);
|
||||||
|
}
|
||||||
|
#GiftUserName2 {
|
||||||
|
width: 20cqw;
|
||||||
|
mask-image: linear-gradient(to right, black 75%, transparent 100%);
|
||||||
|
}
|
||||||
|
#GiftUserName3 {
|
||||||
|
width: 14cqw;
|
||||||
|
mask-image: linear-gradient(to right, black 60%, transparent 100%);
|
||||||
|
}
|
||||||
76
no-bold.html
Normal file
76
no-bold.html
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=VT323&display=swap" rel="stylesheet">
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Inter' rel='stylesheet'>
|
||||||
|
<link rel="stylesheet" href="no-bold.css" />
|
||||||
|
<script src="timer.js"></script>
|
||||||
|
<title>v2 onefont</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<div class='contentContainer'>
|
||||||
|
<img id='MainHeart' src='src/youve_got_mail_whiteheart.png'>
|
||||||
|
<div class='infoWrap'>
|
||||||
|
<div class='infoGroup'>
|
||||||
|
<div class='infoBox' id='InfoBox1'>
|
||||||
|
<h1 id='Timer'>
|
||||||
|
00:00
|
||||||
|
</h1>
|
||||||
|
<p id='TimerInfo'>
|
||||||
|
!subathon for details
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class='infoBox' id='InfoBox2'>
|
||||||
|
<h2 id='GoalLabel'>
|
||||||
|
Next Goal:
|
||||||
|
</h2>
|
||||||
|
<h3 id='GoalName'>
|
||||||
|
Discord Watch Party + Puzzles
|
||||||
|
</h3>
|
||||||
|
<div id='GoalProgressWrap'>
|
||||||
|
<p id='GoalProgress'>
|
||||||
|
1234/5678
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class='infoBox' id='InfoBox3'>
|
||||||
|
<h2 id='TopUsers'>
|
||||||
|
Leaderboard:
|
||||||
|
</h2>
|
||||||
|
<div class='giftUserWrap'>
|
||||||
|
<div class='giftUserRow' id='GiftUserRow1'>
|
||||||
|
<p class='giftUserNum' id='GiftUserNum1'>
|
||||||
|
1
|
||||||
|
</p>
|
||||||
|
<p class='giftUserName'id='GiftUserName1'>
|
||||||
|
Usernamethatisverylong
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class='giftUserRow' id='GiftUserRow2'>
|
||||||
|
<p class='giftUserNum' id='GiftUserNum2'>
|
||||||
|
2
|
||||||
|
</p>
|
||||||
|
<p class='giftUserName'id='GiftUserName2'>
|
||||||
|
Usernamethatisverylong
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class='giftUserRow' id='GiftUserRow3'>
|
||||||
|
<p class='giftUserNum' id='GiftUserNum3'>
|
||||||
|
3
|
||||||
|
</p>
|
||||||
|
<p class='giftUserName'id='GiftUserName3'>
|
||||||
|
Usernamethatisverylong
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
BIN
src/youvegotmail.webp
Normal file
BIN
src/youvegotmail.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 110 KiB |
244
timer.css
244
timer.css
@@ -14,60 +14,63 @@ html, body {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
font-family: 'Inter', sans-serif;
|
font-family: 'Inter', sans-serif;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
|
background-color: transparent;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
font-family: "VT323", monospace;
|
font-family: "Silkscreen", sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-size: 1em;
|
|
||||||
color: #EA4045;
|
color: #EA4045;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 68cqh;
|
font-size: 3.6em;
|
||||||
color: #404145;
|
color: #404145;
|
||||||
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 40cqh;
|
font-size: 1.4em;
|
||||||
color: #404145;
|
color: #404145;
|
||||||
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-family: "Silkscreen", sans-serif;
|
|
||||||
font-weight: 400;
|
|
||||||
font-style: normal;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 16cqh;
|
font-size: 1em;
|
||||||
color: #404145;
|
color: #404145;
|
||||||
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: "Silkscreen", sans-serif;
|
font-size: 1.3em;
|
||||||
font-weight: 400;
|
|
||||||
font-style: normal;
|
|
||||||
font-size: 20cqh;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.contentContainer {
|
.contentContainer {
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#MainHeart {
|
.mainHeart {
|
||||||
max-height: 100vh;
|
max-height: 100vh;
|
||||||
max-width: 100vw;
|
max-width: 75vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.infoGroup {
|
#SecondHeart {
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.infoWrap {
|
||||||
container-type: size;
|
container-type: size;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -76,105 +79,208 @@ p {
|
|||||||
top: 0px;
|
top: 0px;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 56% 34% 1fr;
|
grid-template-columns: 56% 34% 1fr;
|
||||||
grid-template-rows: 11% 28% 16% 16% 1fr;
|
grid-template-rows: 11% 1fr 29%;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
|
text-wrap: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.infoBox {
|
.infoGroup {
|
||||||
container-type: size;
|
height: 100%;
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(1, 1fr);
|
|
||||||
grid-auto-rows: auto;
|
|
||||||
place-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#InfoBox1 {
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
grid-column-start: 2;
|
grid-column-start: 2;
|
||||||
grid-column-end: 2;
|
grid-column-end: 2;
|
||||||
grid-row-start: 2;
|
grid-row-start: 2;
|
||||||
grid-row-end: 2;
|
grid-row-end: 2;
|
||||||
justify-self: left;
|
}
|
||||||
align-self: stretch;
|
|
||||||
transform: translate(-8%, 5%);
|
.infoBox {
|
||||||
|
height: auto;
|
||||||
|
width: 100%;
|
||||||
|
font-size: 4cqh;
|
||||||
|
}
|
||||||
|
|
||||||
|
#InfoBox1 {
|
||||||
|
transform: translate(-2%, 0%);
|
||||||
|
margin-top: -50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#InfoBox2 {
|
#InfoBox2 {
|
||||||
display: grid;
|
/* -- !!DO NOT REMOVE!! --
|
||||||
width: 100%;
|
Removing this transform kills the goal label and I do not know why
|
||||||
grid-column-start: 2;
|
*/
|
||||||
grid-column-end: 2;
|
transform: translate(0%, 0%);
|
||||||
grid-row-start: 3;
|
|
||||||
grid-row-end: 3;
|
|
||||||
justify-self: left;
|
|
||||||
align-self: stretch;
|
|
||||||
transform: translate(6%, -24%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#InfoBox3 {
|
#InfoBox3 {
|
||||||
width: 100%;
|
width: 110%;
|
||||||
grid-column-start: 2;
|
position: relative;
|
||||||
grid-column-end: 2;
|
transform: translate(88%, 25%) scale(1, 1);
|
||||||
grid-row-start: 4;
|
border-radius: 3cqh;
|
||||||
grid-row-end: 4;
|
border: .4cqh solid;
|
||||||
grid-template-columns: 1fr;
|
border-color: #00A0F3;
|
||||||
grid-template-rows: 1fr 23% 23% 23%;
|
background-color: white;
|
||||||
justify-self: left;
|
padding: .4ch 0 .4ch 0;
|
||||||
align-self: stretch;
|
}
|
||||||
transform: translate(0%, -32%);
|
|
||||||
|
#Timer {
|
||||||
|
/*
|
||||||
|
margin-top: 10%;
|
||||||
|
margin-bottom: 2%;
|
||||||
|
*/
|
||||||
|
transform: translate(0%, 0%) scale(.95, 1.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#TimerInfo {
|
#TimerInfo {
|
||||||
transform: translate(0%, -175%);
|
transform: translate(0%, -60%);
|
||||||
font-size: 9cqh;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#GoalLabel {
|
#GoalLabel {
|
||||||
transform: translate(0%, -20%);
|
color: #404145;
|
||||||
}
|
}
|
||||||
|
|
||||||
#GoalName {
|
#GoalName {
|
||||||
width: 85%;
|
width: fit-content;
|
||||||
transform: translate(10%, -110%);
|
position: relative;
|
||||||
color: #32B993;
|
color: #32B993;
|
||||||
text-wrap: nowrap;
|
text-wrap: nowrap;
|
||||||
overflow: hidden;
|
display: inline-block;
|
||||||
mask-image: linear-gradient(to right, black 70%, transparent 100%);
|
padding-right: 4%;
|
||||||
|
transform: translate(.5ch, 0%);
|
||||||
|
/* --- animation-duration = JS VAR --- */
|
||||||
|
}
|
||||||
|
|
||||||
|
#GoalNameDupe {
|
||||||
|
width: fit-content;
|
||||||
|
position: relative;
|
||||||
|
color: #32B993;
|
||||||
|
text-wrap: nowrap;
|
||||||
|
padding-right: 4%;
|
||||||
|
transform: translate(.5ch, 0%);
|
||||||
|
/* --- animation-duration = JS VAR --- */
|
||||||
|
}
|
||||||
|
|
||||||
|
#GoalProgressWrap {
|
||||||
|
width: fit-content;
|
||||||
|
padding-left: .8cqh;
|
||||||
|
padding-right: .8cqh;
|
||||||
|
border-radius: 3cqh;
|
||||||
|
border: .4cqh solid;
|
||||||
|
border-color: #404145;
|
||||||
|
margin: .4ch auto 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#GoalProgress {
|
#GoalProgress {
|
||||||
transform: translate(0%, -75%);
|
transform: translate(0%, -8%) scale(1);
|
||||||
border-radius: 8cqh;
|
text-align: center;
|
||||||
border: 2cqh solid;
|
}
|
||||||
border-color: #404145;
|
|
||||||
|
#TopUsers {
|
||||||
|
margin-bottom: 2%;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #404145;
|
||||||
|
}
|
||||||
|
|
||||||
|
.giftUserWrap {
|
||||||
|
transform: translate(11%, -8%) scale(1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.giftUserRow {
|
.giftUserRow {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 10% 1fr;
|
grid-template-columns: 8% 1fr;
|
||||||
grid-template-rows: 1fr;
|
grid-template-rows: 1fr;
|
||||||
text-wrap: nowrap;
|
text-wrap: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-align: left;
|
text-align: center;
|
||||||
justify-self: left;
|
|
||||||
transform: translate(18%, 0%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.giftUserName {
|
.giftUserName {
|
||||||
|
width: fit-content;
|
||||||
margin-left: 0%;
|
margin-left: 0%;
|
||||||
|
position: relative;
|
||||||
color: #32B993;
|
color: #32B993;
|
||||||
|
text-align: left;
|
||||||
|
display: inline-block;
|
||||||
|
padding-right: 4%;
|
||||||
|
transform: translate(.5ch, 0%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.giftUserNameDupe {
|
||||||
|
width: fit-content;
|
||||||
|
margin-left: 0%;
|
||||||
|
position: relative;
|
||||||
|
color: #32B993;
|
||||||
|
text-align: left;
|
||||||
|
padding-right: 4%;
|
||||||
|
transform: translate(.5ch, 0%);
|
||||||
}
|
}
|
||||||
|
|
||||||
#GiftUserName1 {
|
#GiftUserName1 {
|
||||||
width: 54%;
|
/* --- animation-duration = JS VAR --- */
|
||||||
mask-image: linear-gradient(to right, black 70%, transparent 100%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#GiftUserName2 {
|
#GiftUserName2 {
|
||||||
width: 46%;
|
/* --- animation-duration = JS VAR --- */
|
||||||
mask-image: linear-gradient(to right, black 70%, transparent 100%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#GiftUserName3 {
|
#GiftUserName3 {
|
||||||
width: 38%;
|
/* --- animation-duration = JS VAR --- */
|
||||||
mask-image: linear-gradient(to right, black 70%, transparent 100%);
|
}
|
||||||
|
|
||||||
|
#GiftUserNameDupe1 {
|
||||||
|
/* --- animation-duration = JS VAR --- */
|
||||||
|
}
|
||||||
|
|
||||||
|
#GiftUserNameDupe2 {
|
||||||
|
/* --- animation-duration = JS VAR --- */
|
||||||
|
}
|
||||||
|
|
||||||
|
#GiftUserNameDupe3 {
|
||||||
|
/* --- animation-duration = JS VAR --- */
|
||||||
|
}
|
||||||
|
|
||||||
|
.scrollWrap {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rightFadeWrap {
|
||||||
|
mask-image: linear-gradient(to right, black 75%, transparent 90%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#RightFadeWrapInfoBox3 {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.fadeLeft {
|
||||||
|
mask-image: linear-gradient(to right, transparent 0%, black 1ch);
|
||||||
|
}
|
||||||
|
|
||||||
|
#ScrollWrapGoal {
|
||||||
|
transform: translate(1ch, 0%) scale(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.scrollWrapName {
|
||||||
|
}
|
||||||
|
|
||||||
|
.scrollWrapW {
|
||||||
|
width: fit-content;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ScrollWrapGoalW {
|
||||||
|
}
|
||||||
|
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scrollAnim {
|
||||||
|
animation: myScroll linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes myScroll {
|
||||||
|
0% {left: 0%; top: 0%;}
|
||||||
|
42% {left: 0%; top: 0%;}
|
||||||
|
100% {left: -54%; top: 0%;}
|
||||||
}
|
}
|
||||||
120
timer.js
120
timer.js
@@ -46,18 +46,21 @@ class Timer {
|
|||||||
this.total_contribution,
|
this.total_contribution,
|
||||||
this.next_goal.required,
|
this.next_goal.required,
|
||||||
);
|
);
|
||||||
|
this.renderer.animate();
|
||||||
} else if (this.last_goal != null) {
|
} else if (this.last_goal != null) {
|
||||||
this.renderer.render_current_goal(
|
this.renderer.render_current_goal(
|
||||||
this.last_goal.name,
|
this.last_goal.name,
|
||||||
this.total_contribution,
|
this.total_contribution,
|
||||||
this.last_goal.required,
|
this.last_goal.required,
|
||||||
);
|
);
|
||||||
|
this.renderer.animate();
|
||||||
} else {
|
} else {
|
||||||
this.renderer.clear_current_goal();
|
this.renderer.clear_current_goal();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render leaderboard
|
// Render leaderboard
|
||||||
this.renderer.render_users(this.leaderboard);
|
this.renderer.render_users(this.leaderboard);
|
||||||
|
this.renderer.animate();
|
||||||
|
|
||||||
// Render timer
|
// Render timer
|
||||||
this.render_time();
|
this.render_time();
|
||||||
@@ -88,6 +91,7 @@ class TimerRenderer {
|
|||||||
|
|
||||||
// Name of the goal to display
|
// Name of the goal to display
|
||||||
this.goal_name = document.getElementById("GoalName")
|
this.goal_name = document.getElementById("GoalName")
|
||||||
|
this.goal_namedupe = document.getElementById("GoalNameDupe")
|
||||||
|
|
||||||
// 1524/3000 Points
|
// 1524/3000 Points
|
||||||
this.goal_progress = document.getElementById("GoalProgress")
|
this.goal_progress = document.getElementById("GoalProgress")
|
||||||
@@ -96,14 +100,76 @@ class TimerRenderer {
|
|||||||
this.topusers_label = document.getElementById("TopUsers")
|
this.topusers_label = document.getElementById("TopUsers")
|
||||||
|
|
||||||
// Leaderboard items
|
// Leaderboard items
|
||||||
// 1. (or points?)
|
// 1. (or points?) (1 as in 1st place, static)
|
||||||
this.topusers_user1_num = document.getElementById("GiftUserNum1")
|
this.topusers_user1_num = document.getElementById("GiftUserNum1")
|
||||||
// Name of user 1
|
// Name of user 1
|
||||||
this.topusers_user1_name = document.getElementById("GiftUserName1")
|
this.topusers_user1_name = document.getElementById("GiftUserName1")
|
||||||
|
this.topusers_userdupe1_name = document.getElementById("GiftUserNameDupe1")
|
||||||
this.topusers_user2_num = document.getElementById("GiftUserNum2")
|
this.topusers_user2_num = document.getElementById("GiftUserNum2")
|
||||||
this.topusers_user2_name = document.getElementById("GiftUserName2")
|
this.topusers_user2_name = document.getElementById("GiftUserName2")
|
||||||
|
this.topusers_userdupe2_name = document.getElementById("GiftUserNameDupe2")
|
||||||
this.topusers_user3_num = document.getElementById("GiftUserNum3")
|
this.topusers_user3_num = document.getElementById("GiftUserNum3")
|
||||||
this.topusers_user3_name = document.getElementById("GiftUserName3")
|
this.topusers_user3_name = document.getElementById("GiftUserName3")
|
||||||
|
this.topusers_userdupe3_name = document.getElementById("GiftUserNameDupe3")
|
||||||
|
|
||||||
|
// -- Animation --
|
||||||
|
// Left-fade wrappers
|
||||||
|
this.scrollwraps = document.getElementsByClassName("scrollWrap")
|
||||||
|
// Parent wrappers
|
||||||
|
this.scrollboxes = [document.getElementById("GiftUserRow1"),
|
||||||
|
document.getElementById("GiftUserRow2"),
|
||||||
|
document.getElementById("GiftUserRow3"),
|
||||||
|
document.getElementById("ScrollWrapGoal")]
|
||||||
|
// Leaderboard names
|
||||||
|
this.userboxes = [this.topusers_user1_name, this.topusers_user2_name, this.topusers_user3_name]
|
||||||
|
this.userdupeboxes = [this.topusers_userdupe1_name, this.topusers_userdupe2_name, this.topusers_userdupe3_name]
|
||||||
|
}
|
||||||
|
|
||||||
|
// -- Toggles animation if text overflows container and adjusts speed for uniform movement --
|
||||||
|
animate() {
|
||||||
|
for (let i = 0; i < this.scrollboxes.length; i++) {
|
||||||
|
|
||||||
|
// Check whether the itteration is a username or goal
|
||||||
|
if (this.scrollboxes[i].id == 'ScrollWrapGoal') {
|
||||||
|
|
||||||
|
// Check if element text overflows
|
||||||
|
if (this.goal_name.getBoundingClientRect().width > (this.scrollboxes[i].getBoundingClientRect().width * .85) ) {
|
||||||
|
// Toggle animation
|
||||||
|
this.goal_name.classList.add("scrollAnim");
|
||||||
|
this.goal_namedupe.classList.add("scrollAnim");
|
||||||
|
this.goal_namedupe.style.display = 'inline-block';
|
||||||
|
this.scrollwraps[i].classList.add("fadeLeft");
|
||||||
|
// Set animation speed
|
||||||
|
this.goal_name.style.animationDuration = `${this.goal_name.getBoundingClientRect().width / 40}s`;
|
||||||
|
this.goal_namedupe.style.animationDuration = `${this.goal_name.getBoundingClientRect().width / 40}s`;
|
||||||
|
} else {
|
||||||
|
// Toggle animation
|
||||||
|
this.goal_name.classList.remove("scrollAnim");
|
||||||
|
this.goal_namedupe.classList.remove("scrollAnim");
|
||||||
|
this.goal_namedupe.style.display = 'none';
|
||||||
|
this.scrollwraps[i].classList.remove("fadeLeft");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
|
||||||
|
// Check if element text overflows
|
||||||
|
if (this.userboxes[i].getBoundingClientRect().width > (this.scrollboxes[i].getBoundingClientRect().width * .75) ) {
|
||||||
|
// Toggle animation
|
||||||
|
this.userboxes[i].classList.add("scrollAnim");
|
||||||
|
this.userdupeboxes[i].classList.add("scrollAnim");
|
||||||
|
this.userdupeboxes[i].style.display = 'inline-block';
|
||||||
|
this.scrollwraps[i].classList.add("fadeLeft");
|
||||||
|
// Set animation speed
|
||||||
|
this.userboxes[i].style.animationDuration = `${this.userboxes[i].getBoundingClientRect().width / 40}s`;
|
||||||
|
this.userdupeboxes[i].style.animationDuration = `${this.userboxes[i].getBoundingClientRect().width / 40}s`;
|
||||||
|
} else {
|
||||||
|
// Toggle animation
|
||||||
|
this.userboxes[i].classList.remove("scrollAnim");
|
||||||
|
this.userdupeboxes[i].classList.remove("scrollAnim");
|
||||||
|
this.userdupeboxes[i].style.display = 'none';
|
||||||
|
this.scrollwraps[i].classList.remove("fadeLeft");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -111,17 +177,21 @@ class TimerRenderer {
|
|||||||
*/
|
*/
|
||||||
reset() {
|
reset() {
|
||||||
this.timer.textContent = "00:00";
|
this.timer.textContent = "00:00";
|
||||||
this.goal_label.textContent = "Current Goal:";
|
this.goal_label.textContent = "Next Goal:";
|
||||||
this.goal_name.textContent = "Be awesome";
|
this.goal_name.textContent = "The answer is...";
|
||||||
this.goal_progress.textContent = "00/00 Points";
|
this.goal_namedupe.textContent = "The answer is...";
|
||||||
|
this.goal_progress.textContent = "0000/0000";
|
||||||
|
|
||||||
this.topusers_label.textContent = "Top 3 Gifters";
|
this.topusers_label.textContent = "Leaderboard:";
|
||||||
this.topusers_user1_num.textContent = "1.";
|
this.topusers_user1_num.textContent = "1";
|
||||||
this.topusers_user1_name.textContent = "Anonymous";
|
this.topusers_user1_name.textContent = "Username4";
|
||||||
this.topusers_user2_num.textContent = "2.";
|
this.topusers_userdupe1_name.textContent = "Username4";
|
||||||
this.topusers_user2_name.textContent = "Anonymous";
|
this.topusers_user2_num.textContent = "2";
|
||||||
this.topusers_user3_num.textContent = "3.";
|
this.topusers_user2_name.textContent = "User";
|
||||||
this.topusers_user3_name.textContent = "Anonymous";
|
this.topusers_userdupe2_name.textContent = "User";
|
||||||
|
this.topusers_user3_num.textContent = "3";
|
||||||
|
this.topusers_user3_name.textContent = "Username_Very_Super_Long12";
|
||||||
|
this.topusers_userdupe3_name.textContent = "Username_Very_Super_Long12";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -165,9 +235,11 @@ class TimerRenderer {
|
|||||||
// Or after we accomplish all goals
|
// Or after we accomplish all goals
|
||||||
|
|
||||||
this.goal_name.textContent = name;
|
this.goal_name.textContent = name;
|
||||||
|
this.goal_namedupe.textContent = name;
|
||||||
|
//this.goal_name.style.animationDuration = `${this.goal_name.getBoundingClientRect().width / 50}s`;
|
||||||
|
|
||||||
// Bitwise OR done to convert floats to integers if needed
|
// Bitwise OR done to convert floats to integers if needed
|
||||||
this.goal_progress.textContent = String(current | 0) + '/' + String(required | 0) + ' Points'
|
this.goal_progress.textContent = String(current | 0) + '/' + String(required | 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -175,6 +247,7 @@ class TimerRenderer {
|
|||||||
*/
|
*/
|
||||||
clear_current_goal() {
|
clear_current_goal() {
|
||||||
this.goal_name.textContent = "";
|
this.goal_name.textContent = "";
|
||||||
|
//this.goal_namedupe.textContent = "";
|
||||||
this.goal_progress.textContent = "";
|
this.goal_progress.textContent = "";
|
||||||
this.goal_label.textContent = "";
|
this.goal_label.textContent = "";
|
||||||
}
|
}
|
||||||
@@ -189,27 +262,36 @@ class TimerRenderer {
|
|||||||
render_users(users) {
|
render_users(users) {
|
||||||
|
|
||||||
if (users.length >= 1) {
|
if (users.length >= 1) {
|
||||||
this.topusers_user1_num.textContent = "1.";
|
this.topusers_user1_num.textContent = "1";
|
||||||
this.topusers_user1_name.textContent = users[0].user_name;
|
this.topusers_user1_name.textContent = users[0].user_name;
|
||||||
|
this.topusers_userdupe1_name.textContent = users[0].user_name;
|
||||||
|
//this.topusers_user1_name.style.animationDuration = `${this.topusers_user1_name.getBoundingClientRect().width / 50}s`;
|
||||||
} else {
|
} else {
|
||||||
this.topusers_user1_num.textContent = "";
|
this.topusers_user1_num.textContent = "1";
|
||||||
this.topusers_user1_name.textContent = "";
|
this.topusers_user1_name.textContent = "";
|
||||||
|
this.topusers_userdupe1_name.textContent = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (users.length >= 2) {
|
if (users.length >= 2) {
|
||||||
this.topusers_user2_num.textContent = "2.";
|
this.topusers_user2_num.textContent = "2";
|
||||||
this.topusers_user2_name.textContent = users[1].user_name;
|
this.topusers_user2_name.textContent = users[1].user_name;
|
||||||
|
this.topusers_userdupe2_name.textContent = users[1].user_name;
|
||||||
|
//this.topusers_user2_name.style.animationDuration = `${this.topusers_user2_name.getBoundingClientRect().width / 50}s`;
|
||||||
} else {
|
} else {
|
||||||
this.topusers_user2_num.textContent = "";
|
this.topusers_user2_num.textContent = "2";
|
||||||
this.topusers_user2_name.textContent = "";
|
this.topusers_user2_name.textContent = "";
|
||||||
|
this.topusers_userdupe2_name.textContent = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (users.length >= 3) {
|
if (users.length >= 3) {
|
||||||
this.topusers_user3_num.textContent = "3.";
|
this.topusers_user3_num.textContent = "3";
|
||||||
this.topusers_user3_name.textContent = users[2].user_name;
|
this.topusers_user3_name.textContent = users[2].user_name;
|
||||||
|
this.topusers_userdupe3_name.textContent = users[2].user_name;
|
||||||
|
//this.topusers_user3_name.style.animationDuration = `${this.topusers_user3_name.getBoundingClientRect().width / 50}s`;
|
||||||
} else {
|
} else {
|
||||||
this.topusers_user3_num.textContent = "";
|
this.topusers_user3_num.textContent = "3";
|
||||||
this.topusers_user3_name.textContent = "";
|
this.topusers_user3_name.textContent = "";
|
||||||
|
this.topusers_userdupe3_name.textContent = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -320,6 +402,7 @@ function communicate(websocket) {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
renderer.reset();
|
renderer.reset();
|
||||||
|
renderer.animate();
|
||||||
};
|
};
|
||||||
|
|
||||||
websocket.onmessage = ({ data }) => {
|
websocket.onmessage = ({ data }) => {
|
||||||
@@ -345,6 +428,7 @@ function communicate(websocket) {
|
|||||||
timer = null;
|
timer = null;
|
||||||
}
|
}
|
||||||
renderer.reset();
|
renderer.reset();
|
||||||
|
renderer.animate();
|
||||||
case "endTimer":
|
case "endTimer":
|
||||||
if (timer != null) {
|
if (timer != null) {
|
||||||
timer.destroying = true;
|
timer.destroying = true;
|
||||||
|
|||||||
241
uniform-font.css
Normal file
241
uniform-font.css
Normal file
@@ -0,0 +1,241 @@
|
|||||||
|
:root {
|
||||||
|
--time-color: #453960;
|
||||||
|
--details-color: #403060;
|
||||||
|
--background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: 'Inter', sans-serif;
|
||||||
|
background-color: var(--background-color);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
font-family: "Silkscreen", sans-serif;
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
color: #EA4045;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 3.4em;
|
||||||
|
color: #404145;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1.4em;
|
||||||
|
color: #404145;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1em;
|
||||||
|
color: #404145;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1.4em;
|
||||||
|
line-height: 95%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contentContainer {
|
||||||
|
height: fit-content;
|
||||||
|
width: fit-content;
|
||||||
|
position: relative;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#MainHeart {
|
||||||
|
max-height: 100vh;
|
||||||
|
max-width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.infoWrap {
|
||||||
|
container-type: size;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
left: 0px;
|
||||||
|
top: 0px;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 56% 34% 1fr;
|
||||||
|
/*
|
||||||
|
grid-template-rows: 11% 28% 16% 16% 1fr;
|
||||||
|
*/
|
||||||
|
grid-template-rows: 11% 1fr 29%;
|
||||||
|
place-items: center;
|
||||||
|
text-wrap: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.infoGroup {
|
||||||
|
display: block;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
grid-column-start: 2;
|
||||||
|
grid-column-end: 2;
|
||||||
|
grid-row-start: 2;
|
||||||
|
grid-row-end: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.infoBox {
|
||||||
|
height: auto;
|
||||||
|
width: 100%;
|
||||||
|
/*
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(1, 1fr);
|
||||||
|
grid-auto-rows: auto;
|
||||||
|
place-items: center;
|
||||||
|
*/
|
||||||
|
font-size: 4cqh;
|
||||||
|
}
|
||||||
|
|
||||||
|
#InfoBox1 {
|
||||||
|
/*
|
||||||
|
justify-self: left;
|
||||||
|
align-self: stretch;
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
transform: translate(-8%, 5%);
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#InfoBox2 {
|
||||||
|
/*
|
||||||
|
display: grid;
|
||||||
|
width: 100%;
|
||||||
|
justify-self: left;
|
||||||
|
align-self: stretch;
|
||||||
|
*/
|
||||||
|
transform: translate(0%, -12%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#InfoBox3 {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
grid-template-rows: 1fr 23% 23% 23%;
|
||||||
|
transform: translate(0%, -16%) scale(1, 1);
|
||||||
|
/*
|
||||||
|
justify-self: left;
|
||||||
|
align-self: stretch;
|
||||||
|
transform: translate(0%, -32%);
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#Timer {
|
||||||
|
margin-top: 10%;
|
||||||
|
transform: translate(-7.5%, 3%) scale(.95, 1.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
#TimerInfo {
|
||||||
|
transform: translate(0%, -60%);
|
||||||
|
/* uni
|
||||||
|
font-size: 1em;
|
||||||
|
*/
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#GoalLabel {
|
||||||
|
transform: translate(5%, 0%) scale(1);
|
||||||
|
color: #404145;
|
||||||
|
}
|
||||||
|
|
||||||
|
#GoalName {
|
||||||
|
width: 100%;
|
||||||
|
transform: translate(8%, -10%) scale(1);
|
||||||
|
color: #32B993;
|
||||||
|
text-wrap: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
mask-image: linear-gradient(to right, black 85%, transparent 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#GoalProgressWrap {
|
||||||
|
width: fit-content;
|
||||||
|
padding-left: .8cqh;
|
||||||
|
padding-right: .8cqh;
|
||||||
|
transform: translate(7%, 0%) scale(1, 1);
|
||||||
|
border-radius: 3cqh;
|
||||||
|
border: .4cqh solid;
|
||||||
|
border-color: #404145;
|
||||||
|
margin: 0 auto .8cqh auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#GoalProgress {
|
||||||
|
transform: translate(0%, -8%) scale(1);
|
||||||
|
/* uni
|
||||||
|
font-size: 1.3em;
|
||||||
|
*/
|
||||||
|
text-align: center;
|
||||||
|
/*
|
||||||
|
font-weight: bold;
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#TopUsers {
|
||||||
|
transform: translate(0%, 0%) scale(1);
|
||||||
|
font-weight: normal;
|
||||||
|
color: #404145;
|
||||||
|
/* uni
|
||||||
|
font-size: 1.1em;
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.giftUserWrap {
|
||||||
|
transform: translate(18%, -8%) scale(1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.giftUserRow {
|
||||||
|
width: 100%;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 8% 1fr;
|
||||||
|
grid-template-rows: 1fr;
|
||||||
|
text-wrap: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-align: left;
|
||||||
|
justify-self: left;
|
||||||
|
text-align: center;
|
||||||
|
transform: translate(0%, 0%) scale(1, 1);
|
||||||
|
/* uni
|
||||||
|
font-size: 1.4em;
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
line-height: 95%;
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.giftUserName {
|
||||||
|
margin-left: 0%;
|
||||||
|
color: #32B993;
|
||||||
|
text-align: left;
|
||||||
|
/*
|
||||||
|
background-color: blue;
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#GiftUserName1 {
|
||||||
|
width: 23.5cqw;
|
||||||
|
mask-image: linear-gradient(to right, black 80%, transparent 100%);
|
||||||
|
}
|
||||||
|
#GiftUserName2 {
|
||||||
|
width: 21.5cqw;
|
||||||
|
mask-image: linear-gradient(to right, black 75%, transparent 100%);
|
||||||
|
/*
|
||||||
|
background-color: red;
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
#GiftUserName3 {
|
||||||
|
width: 18cqw;
|
||||||
|
mask-image: linear-gradient(to right, black 65%, transparent 100%);
|
||||||
|
}
|
||||||
76
uniform-font.html
Normal file
76
uniform-font.html
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=VT323&display=swap" rel="stylesheet">
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Inter' rel='stylesheet'>
|
||||||
|
<link rel="stylesheet" href="uniform-font.css" />
|
||||||
|
<script src="timer.js"></script>
|
||||||
|
<title>v2 onefont</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<div class='contentContainer'>
|
||||||
|
<img id='MainHeart' src='src/youve_got_mail_whiteheart.png'>
|
||||||
|
<div class='infoWrap'>
|
||||||
|
<div class='infoGroup'>
|
||||||
|
<div class='infoBox' id='InfoBox1'>
|
||||||
|
<h1 id='Timer'>
|
||||||
|
00:00
|
||||||
|
</h1>
|
||||||
|
<p id='TimerInfo'>
|
||||||
|
!subathon for details
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class='infoBox' id='InfoBox2'>
|
||||||
|
<p id='GoalLabel'>
|
||||||
|
Next Goal:
|
||||||
|
</p>
|
||||||
|
<p id='GoalName'>
|
||||||
|
Discord Watch Party + Puzzles
|
||||||
|
</p>
|
||||||
|
<div id='GoalProgressWrap'>
|
||||||
|
<p id='GoalProgress'>
|
||||||
|
1234/5678
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class='infoBox' id='InfoBox3'>
|
||||||
|
<p id='TopUsers'>
|
||||||
|
Leaderboard
|
||||||
|
</p>
|
||||||
|
<div class='giftUserWrap'>
|
||||||
|
<div class='giftUserRow' id='GiftUserRow1'>
|
||||||
|
<p class='giftUserNum' id='GiftUserNum1'>
|
||||||
|
1
|
||||||
|
</p>
|
||||||
|
<p class='giftUserName'id='GiftUserName1'>
|
||||||
|
Usernamethatisverylong
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class='giftUserRow' id='GiftUserRow2'>
|
||||||
|
<p class='giftUserNum' id='GiftUserNum2'>
|
||||||
|
2
|
||||||
|
</p>
|
||||||
|
<p class='giftUserName'id='GiftUserName2'>
|
||||||
|
Usernamethatisverylong
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class='giftUserRow' id='GiftUserRow3'>
|
||||||
|
<p class='giftUserNum' id='GiftUserNum3'>
|
||||||
|
3
|
||||||
|
</p>
|
||||||
|
<p class='giftUserName'id='GiftUserName3'>
|
||||||
|
Usernamethatisverylong
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user