aboutsummaryrefslogtreecommitdiff
path: root/src/Pages/art/art.html
blob: 2b714e94a4678bf31700148a279a1dddf3010b59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>256phi | Gallery</title>
    <link rel="stylesheet" href="../../Style/style.css">
</head>
<body>
    <canvas id="bg"></canvas>
    <div class="container">
        <h1>GALLERY</h1>
        <p class="subtitle">// visual output from the collective</p>

        <div class="gallery">
            <!-- Add your art here. Example: -->
            <a href="../../Assets/art/YouAreBeingWatched_11-3-2026.png" class="gallery-item">
                <img src="../../Assets/art/YouAreBeingWatched_11-3-2026.png" alt="You Are Being Watched">
            </a>
            <a href="placeholder.png" class="gallery-item">
                <img src="placeholder.png" alt="Artwork title">
            </a>
            <a href="placeholder.png" class="gallery-item">
                <img src="placeholder.png" alt="Artwork title">
            </a>
        </div>

        <footer>
            <p>&copy; 256phi | 2026 | <a href="/home">Home</a></p>
        </footer>
    </div>

    <!-- Lightbox for viewing art -->
    <div id="lightbox" class="lightbox">
        <span class="lightbox-close">&times;</span>
        <img class="lightbox-img" src="" alt="">
    </div>

    <script type="module" src="../../Background/main.js"></script>
    <script>
        const lightbox = document.getElementById('lightbox');
        const lightboxImg = lightbox.querySelector('.lightbox-img');
        const lightboxClose = lightbox.querySelector('.lightbox-close');

        document.querySelectorAll('.gallery-item').forEach(item => {
            item.addEventListener('click', e => {
                e.preventDefault();
                lightboxImg.src = item.href;
                lightboxImg.alt = item.querySelector('img').alt;
                lightbox.classList.add('active');
            });
        });

        lightboxClose.addEventListener('click', () => {
            lightbox.classList.remove('active');
        });

        lightbox.addEventListener('click', e => {
            if (e.target === lightbox) {
                lightbox.classList.remove('active');
            }
        });

        document.addEventListener('keydown', e => {
            if (e.key === 'Escape') {
                lightbox.classList.remove('active');
            }
        });
    </script>
</body>
</html>