diff --git a/src/img/hd/IMG_9329 - Copie.jpg b/src/img/hd/IMG_9329 - Copie.jpg new file mode 100644 index 0000000..422ec1b Binary files /dev/null and b/src/img/hd/IMG_9329 - Copie.jpg differ diff --git a/src/img/hd/IMG_9428.jpg b/src/img/hd/IMG_9428.jpg new file mode 100644 index 0000000..eaaa73c Binary files /dev/null and b/src/img/hd/IMG_9428.jpg differ diff --git a/src/img/hd/IMG_9465.jpg b/src/img/hd/IMG_9465.jpg new file mode 100644 index 0000000..1459351 Binary files /dev/null and b/src/img/hd/IMG_9465.jpg differ diff --git a/src/img/hd/IMG_9489.jpg b/src/img/hd/IMG_9489.jpg new file mode 100644 index 0000000..753cb0e Binary files /dev/null and b/src/img/hd/IMG_9489.jpg differ diff --git a/src/img/hd/galerie0.jpg b/src/img/hd/galerie0.jpg new file mode 100644 index 0000000..30a7458 Binary files /dev/null and b/src/img/hd/galerie0.jpg differ diff --git a/src/img/hd/galerie1.jpg b/src/img/hd/galerie1.jpg new file mode 100644 index 0000000..d04d77a Binary files /dev/null and b/src/img/hd/galerie1.jpg differ diff --git a/src/img/hd/galerie2.jpg b/src/img/hd/galerie2.jpg new file mode 100644 index 0000000..ccec868 Binary files /dev/null and b/src/img/hd/galerie2.jpg differ diff --git a/src/img/hd/galerie3.jpg b/src/img/hd/galerie3.jpg new file mode 100644 index 0000000..6326848 Binary files /dev/null and b/src/img/hd/galerie3.jpg differ diff --git a/src/img/hd/galerie4.jpg b/src/img/hd/galerie4.jpg new file mode 100644 index 0000000..96df5c5 Binary files /dev/null and b/src/img/hd/galerie4.jpg differ diff --git a/src/img/hd/galerie5.jpg b/src/img/hd/galerie5.jpg new file mode 100644 index 0000000..2a2ce86 Binary files /dev/null and b/src/img/hd/galerie5.jpg differ diff --git a/src/img/hd/galerie6.jpg b/src/img/hd/galerie6.jpg new file mode 100644 index 0000000..cae9b6b Binary files /dev/null and b/src/img/hd/galerie6.jpg differ diff --git a/src/img/hd/galerie7.jpg b/src/img/hd/galerie7.jpg new file mode 100644 index 0000000..68d1bad Binary files /dev/null and b/src/img/hd/galerie7.jpg differ diff --git a/src/img/hd/galerie8.jpg b/src/img/hd/galerie8.jpg new file mode 100644 index 0000000..8ab9a0a Binary files /dev/null and b/src/img/hd/galerie8.jpg differ diff --git a/src/img/miniature/galerie0.jpg b/src/img/miniature/galerie0.jpg new file mode 100644 index 0000000..c39c233 Binary files /dev/null and b/src/img/miniature/galerie0.jpg differ diff --git a/src/img/miniature/galerie1.jpg b/src/img/miniature/galerie1.jpg new file mode 100644 index 0000000..b71a6dd Binary files /dev/null and b/src/img/miniature/galerie1.jpg differ diff --git a/src/img/miniature/galerie2.jpg b/src/img/miniature/galerie2.jpg new file mode 100644 index 0000000..9f7ff30 Binary files /dev/null and b/src/img/miniature/galerie2.jpg differ diff --git a/src/img/miniature/galerie3.jpg b/src/img/miniature/galerie3.jpg new file mode 100644 index 0000000..51c0266 Binary files /dev/null and b/src/img/miniature/galerie3.jpg differ diff --git a/src/img/miniature/galerie4.jpg b/src/img/miniature/galerie4.jpg new file mode 100644 index 0000000..f3fe80c Binary files /dev/null and b/src/img/miniature/galerie4.jpg differ diff --git a/src/img/miniature/galerie5.jpg b/src/img/miniature/galerie5.jpg new file mode 100644 index 0000000..9a077ea Binary files /dev/null and b/src/img/miniature/galerie5.jpg differ diff --git a/src/img/miniature/galerie6.jpg b/src/img/miniature/galerie6.jpg new file mode 100644 index 0000000..58176f5 Binary files /dev/null and b/src/img/miniature/galerie6.jpg differ diff --git a/src/img/miniature/galerie7.jpg b/src/img/miniature/galerie7.jpg new file mode 100644 index 0000000..4654bea Binary files /dev/null and b/src/img/miniature/galerie7.jpg differ diff --git a/src/img/miniature/galerie8.jpg b/src/img/miniature/galerie8.jpg new file mode 100644 index 0000000..bac4ef0 Binary files /dev/null and b/src/img/miniature/galerie8.jpg differ diff --git a/src/img/miniature/img_8666.jpg b/src/img/miniature/img_8666.jpg new file mode 100644 index 0000000..ea58348 Binary files /dev/null and b/src/img/miniature/img_8666.jpg differ diff --git a/src/index.html b/src/index.html index a2aa8f5..8387d5b 100644 --- a/src/index.html +++ b/src/index.html @@ -5,10 +5,11 @@ + Métamorphose - +

Méta
morphose

Manifeste de mode de seconde main, Manifeste pour la mode de demain.

@@ -106,32 +107,23 @@

Galerie

-
- +
-
- +
-
- +
-
- +
-
- +
-
- +
-
- +
-
- +
-
- +
@@ -181,5 +173,37 @@ +
+ + + + +
+ diff --git a/src/js/modale.js b/src/js/modale.js new file mode 100644 index 0000000..eec1056 --- /dev/null +++ b/src/js/modale.js @@ -0,0 +1,39 @@ +var numberOfImages = 9; +var currentImageNumber = null; + +function viewPicture (number) { + document.getElementById('modale').style.display = 'flex'; + document.getElementById('body').style.overflow = 'hidden'; + getPicture(number); +} + +function getPicture (number) { + currentImageNumber = number; + document.getElementById('modale_wide_view').src = 'img/hd/galerie' + number + '.jpg'; +} + +function closeModalView () { + document.getElementById('modale').style.display = 'none'; + document.getElementById('body').style.overflow = 'auto'; +} + +function leftModalView () { + getPicture((currentImageNumber - 1 + numberOfImages) % numberOfImages); +} + +function rightModalView () { + getPicture((currentImageNumber + 1) % numberOfImages); +} + +/* Close modale when pressing escape */ +// TODO +/* +window.onload = function () { + document.getElementById('body').addEventListener('keypress', function(e) { + console.log(e) + if(e.key == "Escape"){ + closeModalView() + } + }); +} +*/ diff --git a/src/main.css b/src/main.css index 61c14d4..29de4fb 100644 --- a/src/main.css +++ b/src/main.css @@ -11,6 +11,10 @@ body { color: #444; } +button, .button { + cursor: pointer; +} + h1 { font-family: Kiona; font-size: 121px; @@ -69,7 +73,7 @@ h1,h2 { color: #222; } -section { +section:not(#modale){ margin: 5em 10px 0; } @@ -171,6 +175,13 @@ header #download { object-fit: cover; } +#galerie .content > div { + background-size: cover; + cursor: pointer; + background-position-y: center; + background-position-x: center; +} + #galerie .content>div:nth-child(1){ grid-column: span 3; grid-row: span 6; @@ -265,4 +276,52 @@ ul,ol,li { .a { color: #005700; +} + +#modale { + position: fixed; + background-color: #000000dd; + display: none; + width: 100vw; + height: 100vh; + top: 0; + left: 0; + text-align: center; +} + +#modale img { + max-width: calc(100% - 100px); + max-height: 100%; + object-fit: contain; +} + +#modale button:not(.close) { + flex: auto; + background: none; + border: none; + padding: 0; +} + +#modale button.close, #modale button div { + background-color: #333; + color: #AAA; + border-radius: 100%; + display: inline-block; + border: none; +} + +#modale button:not(.close) div { + height: 35px; + width: 35px; + line-height: 30px; +} + +#modale button.close { + position: absolute; + top: 2px; + right: 2px; + height: 50px; + width: 50px; + line-height: 45px; + padding: 0; } \ No newline at end of file