Skip to content

Commit 47bfba8

Browse files
committed
chore: modernize build pipeline and refresh site assets
1 parent 1d3c016 commit 47bfba8

File tree

145 files changed

+4239
-4319
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+4239
-4319
lines changed

MEMORY.md

Lines changed: 5 additions & 2 deletions

dev/js/main.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,19 @@ class Card {
5353
}
5454

5555

56-
const removeLightbox = () => document.body.getElementsById('lightbox').remove()
56+
function removeLightbox () {
57+
58+
const lightbox = document.getElementById('lightbox')
59+
60+
if (lightbox)
61+
lightbox.remove()
62+
63+
}
5764

5865
function createLightbox (id) {
5966

67+
removeLightbox()
68+
6069
const card = document.getElementById(`theme-${id}`)
6170
const themeTitle = card.querySelector('h3')
6271
const img = card.querySelector('img')
@@ -65,7 +74,7 @@ function createLightbox (id) {
6574
<div id="lightbox" onclick="this.remove()">
6675
<h2>${themeTitle.innerText}</h2>
6776
<img src="${img.src}">
68-
<button type="button" class="btn btn-close-lightbox" onClick="removeLightbox"><i class="fas fa-times-circle"></i> Close</button>
77+
<button type="button" class="btn btn-close-lightbox" onClick="removeLightbox()"><i class="fas fa-times-circle"></i> Close</button>
6978
</div>
7079
`
7180

docs/assets/css/main.min.css

Lines changed: 487 additions & 1 deletion
Large diffs are not rendered by default.
3.15 KB
1 KB
4.38 KB
1.35 KB
21.7 KB

docs/assets/img/themes/19.webp

7.01 KB

docs/assets/img/themes/20.webp

24.9 KB

0 commit comments

Comments
 (0)