Browse Source

project created

develop
Rob Colbert 2 years ago
parent
commit
06b3b4844f
  1. 1
      .gitignore
  2. BIN
      fonts/digital-desolation-plus.otf
  3. BIN
      fonts/escapevelocity.ttf
  4. BIN
      fonts/neon-led-light.otf
  5. BIN
      fonts/platinum-sign-over.ttf
  6. BIN
      fonts/platinum-sign-under.ttf
  7. BIN
      fonts/platinum-sign.ttf
  8. BIN
      fonts/retrolight.ttf
  9. BIN
      fonts/wrestlemania.ttf
  10. 119
      index.html
  11. 9
      package.json
  12. 3171
      yarn.lock

1
.gitignore

@ -0,0 +1 @@
node_modules

BIN
fonts/digital-desolation-plus.otf

Binary file not shown.

BIN
fonts/escapevelocity.ttf

Binary file not shown.

BIN
fonts/neon-led-light.otf

Binary file not shown.

BIN
fonts/platinum-sign-over.ttf

Binary file not shown.

BIN
fonts/platinum-sign-under.ttf

Binary file not shown.

BIN
fonts/platinum-sign.ttf

Binary file not shown.

BIN
fonts/retrolight.ttf

Binary file not shown.

BIN
fonts/wrestlemania.ttf

Binary file not shown.

119
index.html

@ -0,0 +1,119 @@
<html lang="en">
<head>
<title>Starting Soon</title>
<style>
@font-face {
font-family: 'Escape Velocity';
src: url('./fonts/escapevelocity.ttf');
}
@font-face {
font-family: 'Retrolight';
src: url('./fonts/retrolight.ttf');
}
@font-face {
font-family: 'Platinum Sign';
src: url('./fonts/platinum-sign-over.ttf');
}
@font-face {
font-family: 'Digital Desolation Plus';
src: url('./fonts/digital-desolation-plus.otf');
}
html, body {
margin: 0;
padding: 0;
color: #e8e8e8;
}
.interface {
display: flex;
justify-content: center;
position: fixed;
bottom: 80px;
width: 100%;
}
.container {
display: block;
position: relative;
margin: 0 auto;
-webkit-text-stroke-width: 1px;
-webkit-text-stroke-color: #000000;
}
.container .metadata {
display: flex;
justify-content: space-between;
font-family: "Escape Velocity";
font-size: 36px;
font-weight: bold;
line-height: 1;
text-align: center;
}
.container .prompt {
font-family: "Digital Desolation Plus";
font-size: 100px;
line-height: 1;
}
.container .time-line {
display: flex;
justify-content: space-between;
}
.container .time-display {
font-family: 'Courier New', Courier, monospace;
font-size: 48px;
line-height: 1;
}
.container .countdown-display {
font-family: 'Courier New', Courier, monospace;
font-size: 48px;
line-height: 1;
}
</style>
</head>
<body>
<div class="interface">
<div class="container">
<div class="metadata">
<div>Just Joe Radio</div>
<div>justjoeradio.com</div>
</div>
<div class="prompt">STARTING SOON</div>
<div class="time-line">
<div id="countdown-display" class="countdown-display">00:00:00</div>
<div id="time-display" class="time-display">00:00:00</div>
</div>
</div>
</div>
<script src="./node_modules/moment/min/moment.min.js"></script>
<script src="./node_modules/numeral/min/numeral.min.js"></script>
<script>
window.dtp = window.dtp || { };
dtp.timeDisplay = document.getElementById('time-display');
dtp.countdown = document.getElementById('countdown-display');
const params = new URLSearchParams(window.location.search);
const year = params.get('year');
const month = params.get('month');
const day = params.get('day');
const hours = params.get('hour');
const minutes = params.get('minute');
dtp.start = new Date(year, month, day, hours, minutes, 0, 0);
function update ( ) {
const NOW = new Date();
const remaining = Math.ceil((dtp.start.valueOf() - NOW.valueOf()) / 1000.0);
dtp.timeDisplay.textContent = moment(NOW).format('hh:mm A');
dtp.countdown.textContent = numeral(remaining).format('hh:mm:ss');
requestAnimationFrame(update);
}
requestAnimationFrame(update);
</script>
</body>
</html>

9
package.json

@ -0,0 +1,9 @@
{
"dependencies": {
"forever": "^4.0.3",
"gulp": "^4.0.2",
"moment": "^2.29.4",
"numeral": "^2.0.6",
"yarn": "^1.22.19"
}
}

3171
yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save