<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
				<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<base href="/" />
		<title>LeetStreams</title>
		<link rel="apple-touch-icon" sizes="180x180" href="/style/gfx/favicon/apple-touch-icon.png">
		<link rel="icon" type="image/png" sizes="32x32" href="/style/gfx/favicon/favicon-32x32.png">
		<link rel="icon" type="image/png" sizes="16x16" href="/style/gfx/favicon/favicon-16x16.png">
		<style>
			html { background-color: #010101; color: #f1f1f1; }

			div {
				width: 100%;
				height: 100%;
				display: flex;
				align-items: center;
				justify-content: center;
				flex-direction: column;
				margin: 0 auto;
			}

			.site-logo {
				max-width: 400px;
				width: 100%;
				height: auto;
			}

			.logo-text {
				width: 100%;
				max-width: 1000px;
				height: auto;
			}

			.cta-text {
				font-family: 'Verdana', sans-serif;
				font-size: 1.4em;
			}

			#discord-button {
				width: 275px;
				height: 45px;
				border: 1px solid #f1f1f1;
				border-radius: 8px;
				display: flex;
				flex-direction: row;
				cursor: pointer;
			}

			#discord-button .icon {
				width: 30%;
				background-color:rgb(83, 83, 83);
				border-top-left-radius: 8px;
				border-bottom-left-radius: 8px;
			}

			#discord-button .icon img {
				height: auto;
				max-width: 40%;
			}

			#discord-button .online {
				width: 70%;
				background-color: #5865f2;
				border-top-right-radius: 8px;
				border-bottom-right-radius: 8px;
				font-size: 1.2em;
				font-family: 'Verdana', sans-serif;
			}

			#discord-button:hover {
				opacity: 0.7;
			}

			@media screen and (max-width: 1000px) {
				.site-logo {
					max-width: 250px;
					width: 50%;
				}

				.logo-text {
					max-width: 600px;
					width: 80%;
				}
			}
		</style>
	</head>

	<body>
		<div>
			<img src="/style/gfx/site-logo.png" class="site-logo" alt="LeetStreams" title="LeetStreams" />
			<img src="/style/gfx/logo-text.png" class="logo-text" alt="LeetStreams" title="LeetStreams" />

			<br /><br /><div class="cta-text">Connect and stay updated!</div>

			<br /><br /><div id="discord-button">
				<div class="icon">
					<img src="style/gfx/discord-official.png" alt="LeetStreams Discord link" />
				</div>

				<div class="online">
					4 online
				</div>
			</div>
		</div>
		<script>
			document.getElementById('discord-button').addEventListener('click', () => {
				discord_url = 'https://discord.com/invite/A2FZGTTKbz';
				window.open(discord_url, '_blank');
			});
		</script>
	</body>
</html>
