Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<link rel="shortcut icon" href="https://www.studentrobotics.org/images/favicon.ico"/>

<title>Countdown</title>


<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="https://www.studentrobotics.org/style/css/main.css"/>
<link rel="stylesheet" href="static/index.css"/>
<link rel="stylesheet" href="https://unpkg.com/dseg@0.46.0/css/dseg.css"/>
Expand Down
Binary file modified static/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 12 additions & 4 deletions static/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ main {
justify-content:center;
align-items:center;

width: 66%;
height: 66%;
width: 33%;
height: 33%;
}

body {
Expand All @@ -25,7 +25,15 @@ main h1 {
}

main h1#countdown {
font-family: 'DSEG7-Classic';
font-family: 'Open Sans';
font-weight: bold;
transform: translateX(-8%); /* HACK: Offset so the time is centred, not the whole text */
transform: translateX(72%) translateY(110%);
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

main h1#message {
font-family: 'Open Sans';
font-weight: bold;
transform: translateX(75%) translateY(70%);
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}
2 changes: 1 addition & 1 deletion static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function showMessage(text) {
function updateCountdown(target) {
const duration = target.diffNow();
if (duration.valueOf() <= 0) {
showMessage("Starting soon!");
showMessage("Soon!");
} else {
document.getElementById(COUNTDOWN_ELEMENT_ID).innerText = duration.toFormat("-hh:mm:ss");
}
Expand Down