From 3edaa49ce72e567eb5f52199b3379551c4886a03 Mon Sep 17 00:00:00 2001 From: John Shaver Date: Sun, 17 Jul 2022 14:14:19 -0700 Subject: [PATCH] get thumbnails all in place and working --- css/main.css | 42 ++++++++++++++++++++++++++++++++++++++- index.html | 15 ++++++++++---- js/image-thumbnails.js | 26 ++++++++++++++++++++++-- package.json | 3 ++- scripts/process-images.sh | 2 +- 5 files changed, 79 insertions(+), 9 deletions(-) diff --git a/css/main.css b/css/main.css index b96ac4e..a836523 100644 --- a/css/main.css +++ b/css/main.css @@ -64,7 +64,7 @@ h4 { } .project-image > img { - width: 100%; + max-width: 100%; margin-bottom: 3rem; -webkit-box-shadow: 2px 2px 8px 1px rgba(0,0,0,0.17); -moz-box-shadow: 2px 2px 8px 1px rgba(0,0,0,0.17); @@ -104,3 +104,43 @@ section { .project-info { margin: 1.5em 0 5em 0; } + +.clickable { + cursor: pointer; +} + +.close-x { + font-size: 25px; + text-align: end; + padding: 10px 10px 0; +} + +#image-modal-wrapper { + position: fixed; + background: rgba(0,0,0,0.25); + width: 100%; + height: 100%; + left: 0; + top: 0; +} + +#image-modal-flex { + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; +} + +#image-modal { + flex-grow: 0; + max-width: 90vh; + background: #FFF; + border-radius: 4px; +} + +#image-modal-contents img { + box-sizing: border-box; + padding: 10px 25px 25px; + max-width: 100%; +} diff --git a/index.html b/index.html index 991c075..7ee316f 100644 --- a/index.html +++ b/index.html @@ -100,9 +100,9 @@

Skillsmatch

- - - + + +

Project Goals

@@ -285,6 +285,13 @@
-