<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>FLeast</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="shortcut icon" href="./favicon.ico" type="image/png">
</head>

<style>
    .container-sm {{
        max-width: 1450px;
    }}

    body {{
        background-color: #333333;
    }}

    footer {{
        background-color: #AEC6CF;
    }}

    .strname {{
        font-weight: bold;
        word-break: break-word;
    }}

    .struser {{
        font-size: 15px;
        font-weight: bold;
        color: #0f0
    }}

    .strviews {{
        font-size: 15px;
        font-weight: bold;
        color: #f00
    }}

    .grid {{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 340px));
        justify-content: space-around;
        row-gap: 30px;
    }}
</style>

<body>
    <div class="container-sm text-white">
        <br>
        <h1>Fleast — find new favourite small streamer</h1>
        <hr>
        <p>
            The category must be specified by <b>exact name</b>.<br>Search
            <b>IRL</b> to find streams from <i>Just Chatting</i>,
            <i>Travel & Outdoors</i>, and other categories.
        </p>
        <form method="get" action="./">
            <table>
                <tr>
                    <td>
                        Category
                    </td>
                    <td>
                        Language
                    </td>
                </tr>
                <tr>
                    <td>
                        <input name="game" type="text" class="form-control-sm" maxlength="255" value="{_game_name_}" placeholder="Specify category"/>
                    </td>
                    <td>
                        <select name="lang" class="form-control-sm">
{_opt_langs_}
                        </select>
                     </td>
                    <td>
                        <input type="submit" value="Search" class="btn btn-primary btn-sm"/>
                    </td>
                </tr>
            </table>
        </form>
        <hr>
        <h4> Found {_stream_num_} streams:</h4>
        <div class="grid">
{_stream_list_}
        </div>
        <hr>
        <footer>
            <div class="text-end text-black p-2">
                Developed by Alexey Vanin | <a href="https://twitter.com/AlexVanin" target="_blank">twitter</a> |
                <a href="https://git.alexvan.in/alexvanin/fleast" target="_blank">source code</a><br>
                    Version: {_version_}
                </p>
            </div>
        </footer>
    </div>
</body>

</html>