<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <meta property="theme-color" content="#a0a0a0" />
    <meta property="description" content="gifuu (/gif-oo/) may contain animations and stickers" />
    <title>gifuu</title>

    <link rel="icon" href="{{ include-b64 'image/svg+xml' 'include/favicon.svg' }}" />
    <link rel="texture" href="{{ include-b64 'image/png' 'include/texture.png' }}" />
    {{ include-env }}

    {{ include-article 'terms-of-service' 'include/articles/terms-of-service.html' }}
    {{ include-article 'privacy-policy' 'include/articles/privacy-policy.html' }}
    {{ include-article 'api-guide' 'include/articles/api-guide.html' }}

    {{ include-tag 'style' 'public/fonts/terminus/Terminus.css' }}
    {{ include-tag 'style' 'include/index/critical.css' }}
</head>

<body>

    <!-- Frontend -->
    <div class="layout-wrapper">
        <div class="layout-pane layout-background"></div>
        <div class="layout-pane layout-foreground"></div>
    </div>

    <script type="module" src="/source/index.tsx"></script>
    {{ include-tag 'script' 'include/index/background.ts' }}

    <noscript>
        <style>
            :root {
                --noscript-corner-thickness: 1px;
                --noscript-corner-margin: -16px;
                --noscript-corner-color: #606060;
            }

            /* Layout */
            div.noscript-layout {
                display: flex;
                justify-content: center;
                gap: 16px;
                box-sizing: border-box;
                margin: auto;
                padding: 16px 0;
                width: 100%;
                max-width: 1024px;
            }

            div.noscript-wrapper {
                position: relative;
                margin: 16px;
            }

            main.noscript-container {
                background-color: #161616;
                padding: 16px;
            }

            /* Elements */
            p.noscript-message {
                margin: 0;
                padding: 0;
                color: #f0f0f0;
                font-family: monospace;
                text-align: center;
            }

            /* Effects */
            div.noscript-corner {
                position: absolute;
                width: 16px;
                height: 16px;
            }

            div.noscript-corner:nth-child(1) {
                top: var(--noscript-corner-margin);
                left: var(--noscript-corner-margin);
                border-top: var(--noscript-corner-thickness) solid var(--noscript-corner-color);
                border-left: var(--noscript-corner-thickness) solid var(--noscript-corner-color);
            }

            div.noscript-corner:nth-child(2) {
                top: var(--noscript-corner-margin);
                right: var(--noscript-corner-margin);
                border-top: var(--noscript-corner-thickness) solid var(--noscript-corner-color);
                border-right: var(--noscript-corner-thickness) solid var(--noscript-corner-color);
            }

            div.noscript-corner:nth-child(3) {
                bottom: var(--noscript-corner-margin);
                left: var(--noscript-corner-margin);
                border-bottom: var(--noscript-corner-thickness) solid var(--noscript-corner-color);
                border-left: var(--noscript-corner-thickness) solid var(--noscript-corner-color);
            }

            div.noscript-corner:nth-child(4) {
                right: var(--noscript-corner-margin);
                bottom: var(--noscript-corner-margin);
                border-right: var(--noscript-corner-thickness) solid var(--noscript-corner-color);
                border-bottom: var(--noscript-corner-thickness) solid var(--noscript-corner-color);
            }
        </style>

        <div class="noscript-layout">
            <div class="noscript-wrapper">
                <div class="noscript-corner"></div>
                <div class="noscript-corner"></div>
                <div class="noscript-corner"></div>
                <div class="noscript-corner"></div>
                <main class="noscript-container">
                    <p class="noscript-message"><b>NOTICE:</b> JavaScript is required to view this site.</p>
                </main>
            </div>
        </div>
    </noscript>

</body>

</html>
