<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Login | Crispy - Open Source Chat">
    <meta name="keywords" content="online, chat, app, open-source. crispy">
    <meta property="og:site_name" content="Crispy-Chat">
    <link rel="icon" href="https://tallerthanshort.github.io/ut3.ggpht/icons/crispy.png" type="image/png">
    <meta property="og:title" content="Welcome | Crispy">
    <meta property="og:image" content="https://tallerthanshort.github.io/ut3.ggpht/icons/crispy.png">
    <meta property="og:description" content="Welcome to Crispy - Open Source Chat powered by Firebase, EJS and some Internet Magic">
    <link rel="icon" type="image/x-icon" href="https://tallerthanshort.github.io/ut3.ggpht/icons/crispy.png">
    <title>Welcome | Crispy</title>
    <meta name="theme-color" content="rgba(33, 33, 33, 0.98)">
    <link rel="stylesheet" href="/css/style.css">
</head>
<body>
    <%- include('../partials/header', { username: username }) %>
    <div id="cookcons" style="display: none; width: 99%; height: 108%; align-items: center; flex-direction: column; justify-content: center; background-size: cover; background-position: center; background-color: rgba(0, 0, 0, 0.7); color: black; position: absolute; top: 0px; left: 0px;">
        <div style="text-align: center; padding: 48px 26px 24px;  background-color: white; overflow: visible; box-sizing: border-box; display: block;">
            <h2>Cookie Consent</h2>
            <p>To use this site, you must first accept the usage of Cookies.</p>
            <p>The only Cookies used on this site are essential to maintain functionality (authorisation cookies).</p>
            <p>This site, cannot, does not and will not ever track you for any reason.</p>
            <p>To opt-out of Cookies on this site, discontinue use of this website.</p>
            <button style="border: none; background-color: blue; color: white; text-transform: uppercase; font-weight: 600; cursor: pointer;" onclick="acceptCookie()">Accept Cookies</button>
        </div>
    </div>
    <script>
        const hasAcceptedCookies = localStorage.getItem('cookie');
        if (!hasAcceptedCookies) {
           document.getElementById("cookcons").style.display = 'block';
        }
        function acceptCookie() {
            localStorage.setItem("cookie", 'true');
            document.getElementById("cookcons").style.display = 'none';
        }
    </script>

    <div id="app-mount">
        <div style="height:100%; overflow-x:hidden;">
          <div>
            <div class="grid-bar">
              <div style="display: flex; align-items: center; flex-direction: column; justify-content: center;">
                <h1>Welcome to Crispy</h1>
                <h3>Open Source Chat Powered by <underline>GitHub</underline>, <underline>Firebase</underline> and some <underline>Internet Magic</underline></h3>
              </div>
            </div>
            <hr>
                <div>
                    <h2>Ever wanted to go back to the good old days when online chatting sucked? <i>Yeah that's what Crispy-Chat is.</i></h2>
                    <p>We've got it all: Invite only guilds, a janky-ass CommonJS API, stupid verifications, badges, and of course, <b>NO ORIGINAL FEATURES</b>.</p>
                    <p>So, what are you waiting for? Get started by <a href="/auth">creating an account</a>!</p>
                </div> 
            </div>
        </div>
    </div>
    <div style="padding-top: 3rem; padding-bottom: 3rem; background-color: rgba(0, 0, 0, 0.35); width: 100%; margin-left: auto; margin-right: auto;">
        <h2 style="margin-left: 0; margin-right: 0; font-size: 30px; margin: 0; padding-left: 1rem;">Crispy-Chat</h2>
        <div class="secondary-text" style="display: grid; gap: 1rem; grid-template-columns: repeat(3,minmax(0,1fr)); padding-top: 1.4rem;">
            <div style="padding-left: .5rem;">
                <div>
                    <b>Site Nav</b>
                </div>
                <div style="padding-top: .5rem;">
                    <a href="/app">App</a>
                </div>
                <div style="padding-top: .5rem;">
                    <a href="/auth">Login Page</a>
                </div>
                <div style="padding-top: .5rem;">
                    <a href="/api">API</a>
                </div>
            </div>
            <div>
                <div>
                    <b>Legal</b>
                </div>
                <div style="padding-top: .5rem;">
                    <a href="https://github.com/Common-Codes/crispy-chat/blob/main/legal/Terms%20of%20Service.md">Terms of Service</a>
                </div>
                <div style="padding-top: .5rem;">
                    <a href="https://github.com/Common-Codes/crispy-chat/blob/main/legal/Privacy%20Policy.md">Privacy Policy</a>
                </div>
            </div>
            <div>
                <div>
                    <b>Support</b>
                </div>
                <div style="padding-top: .5rem;">
                    <a href="https://rvlt.gg/MXp9zC2M">Revolt</a>
                </div>
                <div style="padding-top: .5rem;">
                    <a href="https://discord.gg/vncq8kF5hj">Discord</a>
                </div>
                <div style="padding-top: .5rem;">
                    <a href="/invite/commoncodes">Official Support Guild</a>
                </div>
            </div>
        </div>
        <div style="padding-top: 3rem; padding-left: 1rem;">
            <div>
                <p>Common-Codes 2023 - All Rights Reserved.</p>
                <p>Site made using a modified version of TallerThanShort's <a href="https://github.com/TallerThanShort/cascading-style-sheets/blob/main/crispychicken.css">crispychicken theme</a>. The crispychicken theme is licensed under the MIT License, which allows for commercial use and modifications.</p>
            </div>
        </div>
    </div>
</body>
</html>