Skip to content

Commit

Permalink
Updated website for finals
Browse files Browse the repository at this point in the history
  • Loading branch information
negasora committed Aug 11, 2023
1 parent 6b51bdc commit 7b3208f
Showing 1 changed file with 82 additions and 8 deletions.
90 changes: 82 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@
body {
font-family: sans-serif;
color: #fff;
margin: 0;
padding: 0;
overflow-x: hidden;
}

video {
width: 100vw;
height: 100vh;
object-fit: cover;
position: fixed;
position: absolute;
top: 0;
left: 0;
z-index: -1;
Expand All @@ -31,7 +35,7 @@
}

#previous {
position: fixed;
position: absolute;
left: 50%;
bottom: 0;
padding: 10px;
Expand All @@ -49,6 +53,62 @@
padding-bottom: 5px;
}

#bracket {
position: absolute;
bottom: -100%;
padding: 0;
width: 100%;
height: 100%;
}

#bracket-button {
position: absolute;
bottom: 50px;
right: 50px;
background: #d81bc8;
box-shadow: 0 0 15px 5px #f638e6;
border-radius: 50%;
width: 50px;
height: 50px;
font-size: 20pt;
text-align: center;
padding: 10px;
animation: pulse 3s infinite;
cursor: pointer;
}

.chevron::before {
border-style: solid;
border-width: 0.15em 0.15em 0 0;
content: '';
display: inline-block;
height: 20px;
position: relative;
width: 20px;
top: 0;
transform: rotate(135deg);
}

.chevron {
margin-top: 5px;
height: 20px;
}

@keyframes pulse {
0% {
box-shadow: 0 0 5px 2px #f638e6;
}

50% {
box-shadow: 0 0 15px 5px #f638e6;
}

100% {
box-shadow: 0 0 5px 2px #f638e6;
}
}


</style>
</head>
<body>
Expand All @@ -57,6 +117,15 @@
<source src="./title.mp4" type="video/mp4">
</video>


<div id="space">
<div style="font-size: 20pt;" id="clockdiv">soon</div>

<h2>In partnership with:<h2>
<img src="./ni-white.png" width="15%" />
</div>


<div id="previous">
<p>Past events:</p>
<ul>
Expand All @@ -65,16 +134,14 @@
</ul>
</div>

<div id="space">
<h2>We'll be back at DEF CON 31 Finals</h2>
<div style="font-size: 20pt;" id="clockdiv">soon</div>
<iframe id="bracket" src="https://livectf.challonge.com/livectf_defcon2023/module?theme=8219" width="100%" height="500" frameborder="0" scrolling="auto" allowtransparency="true"></iframe>

<h2>In partnership with:<h2>
<img src="./ni-white.png" width="15%" />
<div id="bracket-button">
<div class="chevron"></div>
</div>

<script>
const deadline = 'August 11 2023 17:00:00 GMT-0000';
const deadline = 'August 11 2023 12:00:00 UTC-0700';
function getTimeRemaining(endtime){
const total = Date.parse(endtime) - Date.parse(new Date());
const seconds = Math.floor( (total/1000) % 60 );
Expand All @@ -101,6 +168,13 @@ <h2>In partnership with:<h2>
}, 1000);
}
initializeClock('clockdiv', deadline);

document.getElementById("bracket-button").onclick = function() {
document.getElementById('bracket').scrollIntoView({
behavior: 'smooth'
});
};

</script>
</body>
</html>
Expand Down

0 comments on commit 7b3208f

Please sign in to comment.