diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-03-27 22:17:19 +0100 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-03-27 22:17:19 +0100 |
| commit | aeb99d6937ff91374f66e01cdd2ef9509e3451f5 (patch) | |
| tree | a87d48e4d9ff8c7ac7f28ea73921dac686b67403 /src/Pages/art | |
| parent | 76b17d7797bfea033bd981f1159bee31cdeb49c7 (diff) | |
Added a page to display my art portfolio
Diffstat (limited to 'src/Pages/art')
| -rw-r--r-- | src/Pages/art/art.html | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/Pages/art/art.html b/src/Pages/art/art.html new file mode 100644 index 0000000..2b714e9 --- /dev/null +++ b/src/Pages/art/art.html @@ -0,0 +1,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>© 256phi | 2026 | <a href="/home">Home</a></p> + </footer> + </div> + + <!-- Lightbox for viewing art --> + <div id="lightbox" class="lightbox"> + <span class="lightbox-close">×</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> |
