Skip to content

Commit

Permalink
postseason landing page, no staff votes yet
Browse files Browse the repository at this point in the history
  • Loading branch information
xathon committed Oct 31, 2021
1 parent 3c974e0 commit 471812d
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 11 deletions.
2 changes: 1 addition & 1 deletion css/global.style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/global.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ a {
font-size: 1rem;
}
.link {
text-decoration: inherit;
text-decoration: underline;
font-family: inherit;
color: inherit;
font-size: inherit;
Expand Down
2 changes: 1 addition & 1 deletion css/index.style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/index.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
height: 100%;


background: url("../images/background/background_desktop_buildings.png") no-repeat center center fixed;
background: url("../images/background/background_desktop.png") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
Expand Down
17 changes: 11 additions & 6 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
session_unset();


if(time()>1635742800 && true) { //TODO: edit the timestamp so it matches the desired end of the contest (note: we leave it like this for now and worry about this later)
if(time()>1635742800) {
echo '<html lang="en">
<head>
<link rel="apple-touch-icon" sizes="180x180" href="https://elohell.gg/media/img/favicon/apple-touch-icon.png?v=1">
Expand Down Expand Up @@ -43,14 +43,16 @@
<h2 style="font-size: 1.25em;font-weight: normal">The first round of voting has ended!<br>
The Top 16 logos have advanced to a bracket to determine the winner.<br> Follow <a class="link" target="_blank" rel="noopener noreferrer" href="https://twitter.com/elohellesports">@elohellesports on Twitter</a>, where the final votes will happen daily! </h2>
<div class="nonmobile">
<a class="twitter-timeline" data-border-color="#FF882C" data-chrome="noheader,nofooter" data-dnt="true" data-theme="dark" data-height="30vh" href="https://twitter.com/EloHellEsports?ref_src=twsrc%5Etfw" >Tweets by EloHellEsports</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
</div>
</div>
<div class="row align-self-center w-100 nonmobile flex-fill">
<div class="nonmobile" style="width: 100%;height: 100%">
<a class="twitter-timeline" data-border-color="#FF882C" data-chrome="noheader,nofooter" data-dnt="true" data-theme="dark" data-height="35vh" href="https://twitter.com/EloHellEsports?ref_src=twsrc%5Etfw" >Tweets by EloHellEsports</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
</div>
</div>
<div class="col-lg-9 col-sm-12 d-none d-lg-flex">
<div class="col-lg-9 col-sm-12 d-none d-lg-flex" style="max-width: 1420px">
<iframe style="width: 100%;height: 90vh;display:none " src="https://docs.google.com/spreadsheets/d/e/2PACX-1vSH5pVXbhVnOBIrUvh3-Xlkcnl6sJwNBLJ8DuKDSnXiQIKLp3UkEqMJWSC6J3QB4TCi3L6rFaqEPtcC/pubhtml?widget=true&amp;headers=false"></iframe>
<iframe class="nonmobile" style="width: 100%;height: 90vh" src="https://docs.google.com/spreadsheets/d/e/2PACX-1vTyrBdzr5xMzb1pCqI0vjB7UK3zoKPRJi6voVGR35HgL33bB_D7hqsrikIGZ3Y1L_xAVyFw5AY022RE/pubhtml?widget=true&amp;headers=false"></iframe>
</div>
Expand All @@ -63,6 +65,9 @@
<img src="https://elohell.gg/media/img/logos/Elo-Hell-Logo_H-C-Dark.png" alt="Elo Hell Esports logo">
</a>
</div>
<div class="fixed-bottom nonmobile" style="right: 5px">
<p>Made with ❤ by <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/xathon_" class="link">Xathon</a>. Art by <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/kryyOW" class="link">Kryy.</a></p>
</div>
</div>
Expand Down
15 changes: 14 additions & 1 deletion vote.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,20 @@
include_once "helpers.php";
include_once "db_conn.php";

if(!isset($_SESSION['numberLogos'])){
if(time()>1635742800) {
echo '<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
<title>Redirecting...</title>
<meta content="0; URL=index.php" http-equiv="refresh">
</head>
</html>';
exit();
}

if(!isset($_SESSION['numberLogos'])){
$query = "select count(id) from logos; ";
$rCount = mysqli_query($remote,$query);
$_SESSION['numberLogos'] = mysqli_fetch_assoc($rCount)['count(id)'];
Expand Down

0 comments on commit 471812d

Please sign in to comment.