Skip to content

Commit a85bfdd

Browse files
committed
add event ended banner
1 parent b274a77 commit a85bfdd

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<body>
1414
<div id="landing">
15-
<!-- <div class="timer">
15+
<div class="timer">
1616
<p id="countdown">
1717
<script>
1818
var targetDateTime = new Date("Oct 3, 2021 12:00:00").getTime();
@@ -27,16 +27,16 @@
2727
var minutes = Math.floor((difference % (1000 * 60 * 60)) / (1000 * 60));
2828
var seconds = Math.floor((difference % (1000 * 60)) / 1000);
2929

30-
document.getElementById("countdown").innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s remaining";
30+
document.getElementById("countdown").innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s REMAINING";
3131

3232
if (difference < 0) {
3333
clearInterval(x);
34-
document.getElementById("countdown").innerHTML = "SUBMISSIONS CLOSED";
34+
document.getElementById("countdown").innerHTML = "<div>CODERED ARTEMIS HAS ENDED. CHECK OUT THE EVENT <a href='https://codered-artemis-uh.devpost.com/?ref_feature=challenge&ref_medium=discover'>HERE</a></div>";
3535
}
3636
}, 1000);
3737
</script>
3838
</p>
39-
</div> -->
39+
</div>
4040

4141
<div class="landing-content">
4242
<div class="event-info">

src/sass/_header.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,22 @@
5050
.timer{
5151
display: flex;
5252
height: 6%;
53+
justify-content: center;
5354
align-items: center;
55+
flex-direction: row;
5456
background-color: red;
5557
color: white;
5658

5759
#countdown{
5860
display: flex;
5961
align-content: center;
62+
text-align: center;
63+
font-weight: bold
64+
}
65+
66+
a {
67+
color: white;
68+
text-decoration:underline;
6069
}
6170
}
6271

0 commit comments

Comments
 (0)