<!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">
    <title>Main page</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Smooch+Sans:wght@300;400;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="/css/styles.css">
</head>
<body>
    <main>
        <section class="roomsSection">
            <h3>Available {{db.roomsCount}} rooms:</h3>
            <div class="rooms">
                {{#db.rooms}}
                <a class="roomItem" href="/room/{{id}}">
                    Room {{id}}
                </a>
                {{/db.rooms}}
                {{^db.rooms}}
                <p><b>No rooms available!</b></p>
                {{/db.rooms}}
            </div>
            <button onclick="javascript:location = `/createRoom`">Create new room</button>
        </section>
    </main>
</body>
</html>