-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
181 lines (148 loc) · 9.07 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?php
session_start();
session_unset();
if(time()>1605459600 && false) { //TODO: edit the timestamp so it matches the desired end of the contest
//TODO edit the page for the new branding
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">
<link rel="icon" type="image/png" sizes="32x32" href="https://elohell.gg/media/img/favicon/favicon-32x32.png?v=1">
<link rel="icon" type="image/png" sizes="16x16" href="https://elohell.gg/media/img/favicon/favicon-16x16.png?v=1">
<link rel="manifest" href="https://elohell.gg/media/img/favicon/site.webmanifest?v=1">
<link rel="mask-icon" href="https://elohell.gg/media/img/favicon/safari-pinned-tab.svg?v=1" color="#e53e62">
<link rel="shortcut icon" href="https://elohell.gg/media/img/favicon/favicon.ico?v=1">
<link href="css/style.css" rel="stylesheet">
<link href="css/index.style.css" rel="stylesheet">
<link href="css/bootstrap-grid.css" rel="stylesheet">
<title>GitGud Logocontest</title>
<meta property="og:title" content="GitGud Logocontest" />
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://logos.elohell.gg/" />
<meta property="og:image" content="https://elohell.gg/media/img/logos/ggs6/GG_V_C_Dark.png">
<meta property="og:description" content="Vote for your favorite logos in the Elo Hell GitGud Tournament!">
<meta name="theme-color" content="#FF882C">
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
</head>
<body>
<div class="container d-flex h-100" style="max-width: 1920px" >
<div class="row" style="min-width: 100%">
<div class="col-lg-3 col-sm-12">
<div class="row align-self-center">
<a target="_blank" rel="noopener noreferrer" href="https://events.elohell.gg/gitgud/info/" style="margin: auto">
<img src="https://elohell.gg/media/img/logos/ggs6/GG_V_C_Dark.png" style="width: 10em" alt="GitGud logo">
</a>
</div>
<div class="row align-self-center w-100" >
<div class="col-10 col-6-lg d-none d-lg-block" style="text-align: center;margin: auto">
<h1 style="font-size: 3em;margin-top: 0.2em;margin-bottom: 0.2em;">Welcome to the GitGud logocontest!</h1>
<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 href="https://twitter.com/EloHellEsports">@elohellesports</a> on Twitter, where the final votes will happen daily! </h2>
<a class="twitter-timeline" data-border-color="#FF882C" data-chrome="noheader,nofooter,transparent" data-dnt="true" data-theme="dark" data-height="300" 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 class="col-10 col-6-lg d-lg-none" style="text-align: center;margin: auto">
<h1 style="font-size: 6vw;margin-top: 0.2em;margin-bottom: 0.2em;">Welcome to the GitGud logocontest!</h1>
<p style="font-size: 3em;margin-top: 0.2em;margin-bottom: 0.2em;">The first round of voting has ended!<br>
The Top 16 logos have advanced to a bracket to determine the winner.<br> Follow <a href="https://twitter.com/EloHellEsports">@elohellesports</a> on Twitter, where the final votes will happen daily! </p>
</div>
</div>
</div>
<div class="col-lg-9 col-sm-12 d-none d-lg-flex">
<iframe style="width: 100%;height: 50em" src="https://docs.google.com/spreadsheets/d/e/2PACX-1vSH5pVXbhVnOBIrUvh3-Xlkcnl6sJwNBLJ8DuKDSnXiQIKLp3UkEqMJWSC6J3QB4TCi3L6rFaqEPtcC/pubhtml?widget=true&headers=false"></iframe>
</div>
<div class="col d-lg-none" style="text-align: center;margin-top: 50px">
<a style="font-size: 3em" class="btn btn-lg btn-block" role="button" href="https://docs.google.com/spreadsheets/d/1eJXaD7MPxcyMbc3-7ILmir0U-bgmyroCbN1NYjRPVk8/edit?usp=sharing">Bracket</a>
</div>
</div>
<div class="row" style="position: relative;margin-top: 2em;margin-bottom: -3em">
<a href="https://elohell.gg">
<img src="https://elohell.gg/media/img/logos/Elo-Hell-Logo_H-C-Dark.png" style="height: 5em" alt="Elo Hell Esports logo">
</a>
</div>
</div>
</body>
</html>';
} else {
//TODO implement rebranding, make sure head is correct everywhere
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">
<link rel="icon" type="image/png" sizes="32x32" href="https://elohell.gg/media/img/favicon/favicon-32x32.png?v=1">
<link rel="icon" type="image/png" sizes="16x16" href="https://elohell.gg/media/img/favicon/favicon-16x16.png?v=1">
<link rel="manifest" href="https://elohell.gg/media/img/favicon/site.webmanifest?v=1">
<link rel="mask-icon" href="https://elohell.gg/media/img/favicon/safari-pinned-tab.svg?v=1" color="#e53e62">
<link rel="shortcut icon" href="https://elohell.gg/media/img/favicon/favicon.ico?v=1">
<link href="css/global.style.css" rel="stylesheet">
<link href="css/index.style.css" rel="stylesheet">
<link href="css/bootstrap-grid.css" rel="stylesheet">
<title>GitGud Logocontest</title>
<meta property="og:title" content="GitGud Logocontest" />
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://logos.elohell.gg/" />
<meta property="og:image" content="https://elohell.gg/media/img/logos/ggs6/GG_V_C_Dark.png">
<meta property="og:description" content="Vote for your favorite team logos in the Elo Hell GitGud Tournament!">
<meta name="theme-color" content="#8633fc">
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" name="viewport">
</head>
<body>
<div class="container-fluid d-flex h-100" >
<div class="row align-content-center" id="firstrow">
<a target="_blank" rel="noopener noreferrer" href="https://events.elohell.gg/gitgud/info/">
<img id="gg-logo" src="https://elohell.gg/media/img/logos/ggs6/GG_V_C_Dark.png" alt="GitGud logo">
</a>
</div>
<div class="row align-self-center w-100">
<div class="col-12 col-6-lg" style="text-align: center">
<h1 id="welcome" style="margin-block-end: 0.25em;">Welcome to the GitGud logocontest!</h1>
</div>
</div>
<div class="row align-self-center w-100">
<div class="col-8 w-100">
<div class="tutorial-container collapsed" id="tutorial-container">
<p class="header">How does it work?</p>
<p id="tutorial" style="display: none">
You will be shown two randomly picked logos. Just click on the one you like more!<br>
Once the initial voting phase is over, the top 16 logos with the best "win/loss" ratio will face off in a bracket on Twitter!
</p>
</div>
</div>
</div>
<div class="row align-self-center w-100" style="margin-top: 2vh">
<div class="col-10 col-2-lg " style="text-align: center;width: 100%">
<a class="btn btn-lg" role="button" href="vote.php">Start</a>
</div>
</div>
<div class="fixed-bottom">
<a href="https://elohell.gg" style="font-size: 0">
<img src="https://elohell.gg/media/img/logos/Elo-Hell-Logo_H-C-Dark.png" alt="Elo Hell Esports logo">
</a>
</div>
</div>
<script lang="js">
let text = document.getElementById("tutorial");
let container = document.getElementById("tutorial-container");
let welcome = document.getElementById("welcome");
let x = window.matchMedia("(max-width: 576px)");
//TODO integrate this https://github.com/ryanve/verge#jquery to maybe get better viewport from chrome mobile. 320dpi https://discord.com/channels/440799818068000769/545320602257326080/892250014250848286
container.addEventListener("click",function () {
if(text.style.display === "none") {
text.style.display = "block";
if(x.matches) {
welcome.style.display = "none";
}
} else {
text.style.display = "none";
if(x.matches) {
welcome.style.display = "block";
}
}
container.classList.toggle("collapsed");
})
if(x.matches) {
}
</script>
</body>
</html>
';
}
?>