From 9e0509ab9cca04e5c463c1a76d5542009c6e4c97 Mon Sep 17 00:00:00 2001 From: Thoscellen Date: Mon, 9 Aug 2021 19:34:38 +0200 Subject: [PATCH] feat: :construction_worker: Init the pages branch dedicated to deploy to GitLab Pages. --- .gitlab-ci.yml | 5 +- README.md | 29 +- lightbox-demo.html => public/index.html | 0 main.css => public/main.css | 0 .../wireframe/index.html | 2 +- public/wireframe/wireframe.css | 250 ++++++++++++++++++ 6 files changed, 255 insertions(+), 31 deletions(-) rename lightbox-demo.html => public/index.html (100%) rename main.css => public/main.css (100%) rename lightbox-wireframe.html => public/wireframe/index.html (98%) create mode 100644 public/wireframe/wireframe.css diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9a76cb2..de43cfd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,10 +4,7 @@ pages: stage: deploy - script: - - mv assets public/assets - - mv main.css public/main.css - - mv lightbox-demo.html public/index.html + script: echo "hi" artifacts: paths: - public diff --git a/README.md b/README.md index 1373545..83868ae 100644 --- a/README.md +++ b/README.md @@ -2,33 +2,10 @@ > This repository serve resources and examples for my [Behance portfolio](https://www.behance.net/gallery/117643605/Lightbox-Remastered). -This small redesign is a personal take on lightboxes (or popins) used in One and Neo platforms. I felt the current one was in dire need of a rework and a better UI. - -The project itself is a prototype in native HTML/CSS aiming to improve the box behaviour and resizing. I worked into rearranging the content panels via Flexboxs and Grids, and redefined where content could be allowed to scroll or be static. It now takes into account the viewport and the content and try to prioritize what should be resized first. I eliminated existing empties and suboptimal areas and adjusted borders and lines to create a more easy and readable component. The component have a better hierarchical reading from top to bottom and use more width. - -This work allowed me to exercise on interface design and graphical design, inspired to step in the One guidelines, and improve my HTML and CSS skills. This prototype aim to suggest improvements on the product. +You are on the page branch. This branch serve the GitLab Pipeline to generate Pages. This works as documented on [GitLab's Docs](https://docs.gitlab.com/ee/user/project/pages/index.html#how-to-set-up-gitlab-pages-in-a-repository-where-theres-also-actual-code) * [Interactive showcase](https://khosmon.gitlab.io/Lightbox-Remastered/) -On Firefox, you can use the Adaptative View (`Ctrl / Cmd + Shift + M`) to resize it freely. +* [Wireframe showcase](https://khosmon.gitlab.io/Lightbox-Remastered/wireframe/) * [Before/After comparison](https://khosmon.gitlab.io/Lightbox-Remastered/sliderjs/) - -## Gallery - -![Exemple de lightbox avec beaucoup de hauteur disponible](./public/readme_assets/Lightbox%201.png) - -![Exemple de lightbox avec pas mal de hauteur disponible](./public/readme_assets/Lightbox%202.png) - -![Exemple de lightbox avec suffisamment de hauteur disponible](./public/readme_assets/Lightbox%203.png) - -![Exemple de lightbox avec peu de hauteur disponible](./public/readme_assets/Lightbox%204.png) - -![Exemple de lightbox avec étroitement peu de hauteur disponible](./public/readme_assets/Lightbox%205.png) - -![Exemple de lightbox avec insuffisamment de hauteur disponible](./public/readme_assets/Lightbox%206.png) - -## Credits - -* Fonts: Microsoft, Apple, Graig Rozynski, Purushoth Kumar Guttula -* Originals Design, Assets, Codes, Graphics: Open Digital Education - +💡 Note: On Firefox, you can use the Adaptative View (`Ctrl / Cmd + Shift + M`) to resize the viewport freely and easily. diff --git a/lightbox-demo.html b/public/index.html similarity index 100% rename from lightbox-demo.html rename to public/index.html diff --git a/main.css b/public/main.css similarity index 100% rename from main.css rename to public/main.css diff --git a/lightbox-wireframe.html b/public/wireframe/index.html similarity index 98% rename from lightbox-wireframe.html rename to public/wireframe/index.html index 26c82f2..38c17ee 100644 --- a/lightbox-wireframe.html +++ b/public/wireframe/index.html @@ -1,7 +1,7 @@ - + Document diff --git a/public/wireframe/wireframe.css b/public/wireframe/wireframe.css new file mode 100644 index 0000000..e28a50f --- /dev/null +++ b/public/wireframe/wireframe.css @@ -0,0 +1,250 @@ +/* Faking a real website */ + +html { + height: 100%; + } + + body { + background-color: rgb(236, 236, 236); + margin: 0; + min-height: 100%; + box-sizing: border-box; + } + + .text-ph { + background-color: rgb(236, 236, 236); + color: transparent !important; + } + + /* The body of the fake website consist of a scrollable big picture */ + + #fake { + /* background: url(./fake-home.jpg); */ + z-index: 9; + /* position: fixed; */ + top: 0; + left: 0; + min-width: 100%; + min-height: 100%; + } + + /* lightbox stuff */ + + .lb-mod { + position: fixed; + top: 0; + left: 0; + bottom: 0; + right: 0; + width: 100%; + height: 100%; + /* overflow: auto; */ + z-index: 10; + } + /* + .softener { + backdrop-filter: blur(5px); + background-color: rgba(0, 0, 0, 0.5); + } */ + + /* lightbox itself */ + + .lb-container { + display: grid; + margin: 5em; + grid-template-rows: min-content auto min-content; + position: static; + z-index: 11; + max-width: 1030px; + background-color: white; + border: 1px solid lightgray; + border-radius: 1em; + } + + .scrollable { + overflow-y: scroll; + } + + .lb-header { + position: relative; + } + + .lb-header h2 { + margin: 0.5em 1em; + overflow: hidden; + } + + .lb-header .close-button { + position: absolute; + right:.5em; + top:.5em; + width: 20px; + height: 20px; + } + + #tabs-container { + display: flex; + letter-spacing: -0.5px; + overflow-x: auto; + } + + #tabs-container a { + text-decoration: none; + } + + /* #tabs-container > span.active a { + color: rgb(255, 141, 46); + } */ + + #tabs-container > span { + flex-grow: 1; + min-width: min-content; + text-align: center; + border-bottom: 1px solid lightgray; + padding: 9px; + } + + #tabs-container > span.active { + flex-grow: 1; + min-width: min-content; + text-align: center; + border: 1px solid lightgray; + border-bottom: none; + background-color: white; + } + + .lb-body { + /* padding: 1em; */ + padding-bottom: 0; + /* max-height: 350px; */ + max-height: calc(100vh - 10em - 200px); + border-bottom: 1px solid lightgray; + background-color: white; + } + + .doc-file-browse { + display: grid; + grid-template-columns: [side] 220px [central] auto; + grid-template-rows: [toolbar] auto [main] auto; + grid-gap: 6px; + } + + .doc-file-browse #doc-file-viewmode { + visibility: hidden; + grid-row: toolbar; + grid-column: side; + justify-self: start; + } + + .doc-file-browse #doc-file-search { + visibility: hidden; + grid-row: toolbar; + grid-column: central; + justify-self: start; + } + + .doc-file-browse #doc-file-nav { + grid-row: toolbar / span 2; + grid-column: side; + } + + .doc-file-browse #doc-file-dominos { + grid-row: toolbar / span 2; + grid-column: central; + } + + input[type="text"], + input[type="password"], + input[type="search"], + input[type="email"], + input[type="tel"], + input[type="date"] { + border: 1px solid #c9ced5; + line-height: 25px; + padding: 0 10px; + box-sizing: border-box; + height: 40px; + font-size: initial; + } + + button { + /* height: 40px; */ + box-sizing: border-box; + border: none; + font-size: initial; + padding:9px 12px; + } + + .list-nav ul { + padding-left: 0; + font-size: 12pt; + } + + .list-nav li { + list-style: none; + margin: 9px; + } + + .list-nav ul li ul li { + margin-left: 12px; + } + + .list-nav li span { + padding: 3px 9px; + cursor: pointer; + } + + .list-nav li:not(.active) span:hover { + background: lightgray; + } + + .list-nav .active > span { + background: lightgray; + color: white; + } + + .domino-container { + display: flex; + flex-wrap: wrap; + justify-content: flex-start; + align-items: flex-start; + align-content: flex-start; + } + + .domino-item { + margin: 5px; + border: 1px solid #ebebeb; + width: 150px; + height: 80px; + background: url(https://via.placeholder.com/80/ebebeb/ebebeb) no-repeat; + padding-left: 86px; + overflow: hidden; + } + + .domino-item h4 { + margin: 6px 0 ; + color: rgb(53, 53, 53); + } + .domino-item h4 span.extension { + color:gray; + font-size: 70%; + } + + .domino-item .subtitle { + color:gray; + font-size: 10pt; + margin: 0; + } + + .lb-footer { + padding: 1em; + justify-self: end; + overflow: hidden; + } + + + + + + + \ No newline at end of file