From eaf21e05a73c879dfbf81f71d611b3679cae8c5e Mon Sep 17 00:00:00 2001 From: Rostyslav Hnatyshyn Date: Tue, 24 Sep 2024 00:05:50 -0700 Subject: [PATCH] toolbar is only icons, added image slideshow --- css/default.scss | 56 +++++++++++++++++++++++++----------------- gallery.html | 36 ++++++++++++++++++++++++--- templates/default.html | 6 ++--- templates/gallery.html | 7 ++++++ 4 files changed, 77 insertions(+), 28 deletions(-) diff --git a/css/default.scss b/css/default.scss index 01f82c6..3290d24 100644 --- a/css/default.scss +++ b/css/default.scss @@ -153,18 +153,6 @@ article .header { display: inline; margin: 0 0.6rem; } - .gallery { - } - -.photo { - margin-top: 5px; - margin-bottom: 5px; -} - -.photo > img { - width: 100%; - height: auto; -} } @media (min-width: 640px) { @@ -196,21 +184,45 @@ article .header { float: left; font-size: 1.8rem; } - .gallery { - display:flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: center; - align-items: center; +} +/* Next & previous buttons */ +.prev, .next { + cursor: pointer; + width: auto; + padding: 16px; + color: white; + font-weight: bold; + font-size: 18px; + transition: 0.6s ease; + border-radius: 0 3px 3px 0; + user-select: none; +} + +/* Position the "next button" to the right */ +.next { + right: 0; + border-radius: 3px 0 0 3px; +} + +.prev:hover, .next:hover { + background-color: rgba(0,0,0,0.8); +} + +.gallery { + align-items: center; + display: flex; + gap: 10px; } .photo { - flex-basis: 50%; + display: none; + max-height: 50%; + flex: 1; } + .photo > img { - width: 100%; - height: auto; -} + max-width: 100%; + height: 50vh; } .svg-img { diff --git a/gallery.html b/gallery.html index df75db1..54aeb83 100644 --- a/gallery.html +++ b/gallery.html @@ -1,9 +1,39 @@ --- title: Photo Gallery --- -

-These are some of my favorite photos I've taken over the course of several years. They were all taken on film, and with the exception of a few, they were completely developed by myself. I develop a negative and then scan it using an Epson scanner and then store them in my digital archive. I use an old Canon Rebel EOS, shooting entirely on manual mode. The color photos were mostly taken on cheap FUJI reels, while the black and white are ILFORD reels. + + +

+These are some of my favorite photos I've taken over the course of several years. These are mostly self-developed film photos, although some of them are from my new digital camera. My workflow is to develop a negative and then scan it using an Epson scanner; I then store it digitally. I use an old Canon Rebel EOS, shooting entirely on manual mode. The color photos were mostly taken on cheap FUJI reels, while the black and white are ILFORD reels.

diff --git a/templates/default.html b/templates/default.html index f3ded8f..809ca3d 100644 --- a/templates/default.html +++ b/templates/default.html @@ -37,9 +37,9 @@ rshyn.site diff --git a/templates/gallery.html b/templates/gallery.html index d9523aa..3e11f05 100644 --- a/templates/gallery.html +++ b/templates/gallery.html @@ -1,4 +1,11 @@ $body$ +