<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WaifuBoard - Gallery</title>
    <link rel="stylesheet" href="/views/css/globals.css">
    <link rel="stylesheet" href="/views/css/components/navbar.css">
    <link rel="stylesheet" href="/views/css/gallery/gallery.css">
    <link rel="icon" href="/public/assets/waifuboards.ico" type="image/x-icon">
    <link rel="stylesheet" href="/views/css/components/updateNotifier.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">

    <script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js" async></script>
    <link rel="stylesheet" href="/views/css/components/titlebar.css">
    <script src="/src/scripts/titlebar.js"></script>
</head>
<body>
<div id="titlebar"> <div class="title-left">
    <img class="app-icon" src="/public/assets/waifuboards.ico"  alt=""/>
    <span class="app-title">WaifuBoard</span>
</div>
    <div class="title-right">
        <button class="min">—</button>
        <button class="max">🗖</button>
        <button class="close">✕</button>
    </div>
</div>

<main class="gallery-main">
    <div class="gallery-hero-placeholder"></div>

    <section class="section">
        <div class="gallery-controls">
            <select id="provider-selector" class="provider-selector"></select>
        </div>

        <div class="gallery-results grid" id="gallery-results">
            <div class="gallery-card skeleton grid-item"><div class="poster-skeleton"></div></div>
            <div class="gallery-card skeleton grid-item"><div class="poster-skeleton"></div></div>
            <div class="gallery-card skeleton grid-item"><div class="poster-skeleton"></div></div>
            <div class="gallery-card skeleton grid-item"><div class="poster-skeleton"></div></div>
            <div class="gallery-card skeleton grid-item"><div class="poster-skeleton"></div></div>
            <div class="gallery-card skeleton grid-item"><div class="poster-skeleton"></div></div>
            <div class="gallery-card skeleton grid-item"><div class="poster-skeleton"></div></div>
            <div class="gallery-card skeleton grid-item"><div class="poster-skeleton"></div></div>
        </div>

        <div class="load-more-container">
            <button id="load-more-btn" class="btn-primary" style="display:none;">Load More</button>
        </div>

    </section>
</main>

<div id="updateToast" class="hidden">
    <p>Update available: <span id="latestVersionDisplay">v1.x</span></p>

    <a
            id="downloadButton"
            href="https://git.waifuboard.app/ItsSkaiya/WaifuBoard/releases"
            target="_blank"
    >
        Click To Download
    </a>
</div>

<script src="/src/scripts/updateNotifier.js"></script>
<script src="/src/scripts/gallery/gallery.js"></script>
<script src="/src/scripts/rpc-inapp.js"></script>
<script src="/src/scripts/auth-guard.js"></script>
</body>
</html>