diff --git a/docs/gallery/carousel.css b/docs/gallery/carousel.css new file mode 100644 index 0000000..c6a9fa7 --- /dev/null +++ b/docs/gallery/carousel.css @@ -0,0 +1,24 @@ +.carousel-container { + position: relative; + width: 80%; + max-width: 800px; + margin: auto; + overflow: hidden; +} + +.carousel { + display: flex; + transition: transform 0.5s ease-in-out; +} + +.carousel img { + width: 100%; + height: auto; +} +.prev { + left: 0; +} + +.next { + right: 0; +} \ No newline at end of file diff --git a/docs/gallery/carousel.js b/docs/gallery/carousel.js new file mode 100644 index 0000000..6bc4c7a --- /dev/null +++ b/docs/gallery/carousel.js @@ -0,0 +1,24 @@ +function setupCarousel() { + let currentSlide = 0; +const slides = document.querySelectorAll('.carousel img'); +const totalSlides = slides.length; + +function moveSlide(direction) { + currentSlide += direction; + + if (currentSlide < 0) { + currentSlide = totalSlides - 1; + } else if (currentSlide >= totalSlides) { + currentSlide = 0; + } + + updateCarouselPosition(); +} + +function updateCarouselPosition() { + const carousel = document.querySelector('.carousel'); + const offset = -currentSlide * 100; + carousel.style.transform = `translateX(${offset}%)`; +} +return { moveSlide } +} \ No newline at end of file diff --git a/docs/gallery/icon.js b/docs/gallery/icon.js new file mode 100644 index 0000000..88ef09a --- /dev/null +++ b/docs/gallery/icon.js @@ -0,0 +1,9 @@ +function setupIcon(iconf, el ) { + const icon = document.createElement('img') + icon.src = "./icons/"+iconf+".png" + // icon.width = "20px" + // icon.height = "20px" + icon.style.width = "40px" + icon.style.height = "40px" + return el ? el.appendChild(icon) : icon +} \ No newline at end of file diff --git a/docs/gallery/icons/Kubuntu.png b/docs/gallery/icons/Kubuntu.png new file mode 100644 index 0000000..d1380f4 Binary files /dev/null and b/docs/gallery/icons/Kubuntu.png differ diff --git a/docs/gallery/icons/alpine.png b/docs/gallery/icons/alpine.png new file mode 100644 index 0000000..660c7fb Binary files /dev/null and b/docs/gallery/icons/alpine.png differ diff --git a/docs/gallery/icons/arch.png b/docs/gallery/icons/arch.png new file mode 100644 index 0000000..be9784b Binary files /dev/null and b/docs/gallery/icons/arch.png differ diff --git a/docs/gallery/icons/blendos.png b/docs/gallery/icons/blendos.png new file mode 100644 index 0000000..ca87842 Binary files /dev/null and b/docs/gallery/icons/blendos.png differ diff --git a/docs/gallery/icons/debian.png b/docs/gallery/icons/debian.png new file mode 100644 index 0000000..edb3e68 Binary files /dev/null and b/docs/gallery/icons/debian.png differ diff --git a/docs/gallery/icons/endeavouros.png b/docs/gallery/icons/endeavouros.png new file mode 100644 index 0000000..48ed111 Binary files /dev/null and b/docs/gallery/icons/endeavouros.png differ diff --git a/docs/gallery/icons/fedora.png b/docs/gallery/icons/fedora.png new file mode 100644 index 0000000..b1544f9 Binary files /dev/null and b/docs/gallery/icons/fedora.png differ diff --git a/docs/gallery/icons/mint.png b/docs/gallery/icons/mint.png new file mode 100644 index 0000000..123c3fd Binary files /dev/null and b/docs/gallery/icons/mint.png differ diff --git a/docs/gallery/icons/nixos.png b/docs/gallery/icons/nixos.png new file mode 100644 index 0000000..4f04201 Binary files /dev/null and b/docs/gallery/icons/nixos.png differ diff --git a/docs/gallery/icons/pop!_os.png b/docs/gallery/icons/pop!_os.png new file mode 100644 index 0000000..bc94b5d Binary files /dev/null and b/docs/gallery/icons/pop!_os.png differ diff --git a/docs/gallery/icons/raspbian.png b/docs/gallery/icons/raspbian.png new file mode 100644 index 0000000..139a971 Binary files /dev/null and b/docs/gallery/icons/raspbian.png differ diff --git a/docs/gallery/icons/ubuntu.png b/docs/gallery/icons/ubuntu.png new file mode 100644 index 0000000..aa5004c Binary files /dev/null and b/docs/gallery/icons/ubuntu.png differ diff --git a/docs/gallery/index.html b/docs/gallery/index.html index 9d81426..7c2ed5a 100644 --- a/docs/gallery/index.html +++ b/docs/gallery/index.html @@ -12,6 +12,18 @@ + + @@ -23,9 +35,118 @@

Gallery

-

to be done later. (specifc: after i do the jam)

+

Gallery of the {count} rice's

- + + + + \ No newline at end of file