From 1cc630da4247e75a18629d960768d06239b0175b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 24 Aug 2021 18:40:19 +0200 Subject: details and gallery --- public/assets/css/css.css | 97 +++++++++++++++++++++ public/assets/css/fonts.css | 11 +++ .../fonts/merriweather/Merriweather-Italic.ttf | Bin 0 -> 142548 bytes .../fonts/merriweather/Merriweather-Regular.ttf | Bin 0 -> 149092 bytes public/assets/img/arrow-back.svg | 1 + public/assets/img/arrow-forward.svg | 1 + public/assets/img/close.svg | 1 + 7 files changed, 111 insertions(+) create mode 100644 public/assets/css/fonts.css create mode 100644 public/assets/fonts/merriweather/Merriweather-Italic.ttf create mode 100644 public/assets/fonts/merriweather/Merriweather-Regular.ttf create mode 100644 public/assets/img/arrow-back.svg create mode 100644 public/assets/img/arrow-forward.svg create mode 100644 public/assets/img/close.svg (limited to 'public') diff --git a/public/assets/css/css.css b/public/assets/css/css.css index 3d4f9e0..fd62f45 100644 --- a/public/assets/css/css.css +++ b/public/assets/css/css.css @@ -6,6 +6,7 @@ body { height: 100%; overflow: hidden; background: black; + font-family: "Merriweather", serif; } .scene-tooltip { background: black; @@ -17,3 +18,99 @@ body { line-height: 1.3; font-family: serif !important; } + +/** Detail view */ + +.detail { + position: absolute; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + pointer-events: none; + transition: opacity 0.2s; + opacity: 0; + background: rgba(0, 0, 0, 0.75); + color: white; + display: flex; + flex-direction: row; +} +.detail.visible { + opacity: 1; + pointer-events: auto; +} +.detail > div { + height: 100vh; + width: 50vw; +} +.detail .content > div { + padding: 3rem 5rem 6rem 5rem; +} +.detail .media { + padding: 3rem 5rem; +} + +.detail .content { + overflow-x: hidden; + overflow-y: scroll; +} +.detail .content::-webkit-scrollbar { + width: 0; + opacity: 0; +} +.detail .content > div { + max-width: 600px; +} +.detail .title { + font-size: 1.25rem; + line-height: 1.5; + margin-bottom: 2rem; + text-transform: capitalize; + font-variant: small-caps; +} +.detail .title .index { + margin-bottom: 1rem; +} +.detail .citation { + font-size: 1rem; + line-height: 1.5; + margin-bottom: 2rem; +} +.detail .description { + font-size: 1rem; + line-height: 1.75; +} +.detail .description p { + text-indent: 2rem; +} +.detail .description p:first-of-type { + text-indent: 0; +} + +/** Image galleries */ +.gallery { + display: flex; + flex-direction: column; + justify-content: space-between; + align-items: center; +} +.gallery .image img { + cursor: pointer; + max-height: calc(100vh - 12rem); + max-width: 100%; + transition: opacity 100ms; +} +.buttons { + width: 100%; + text-align: right; +} +.buttons.close { + margin-bottom: 1rem; +} +.buttons img { + cursor: pointer; + height: 1.5rem; +} +.gallery .buttons { + margin-top: 1rem; +} diff --git a/public/assets/css/fonts.css b/public/assets/css/fonts.css new file mode 100644 index 0000000..f1e8429 --- /dev/null +++ b/public/assets/css/fonts.css @@ -0,0 +1,11 @@ +@font-face { + font-family: "Merriweather"; + src: url("../fonts/merriweather/Merriweather-Regular.ttf"); + font-style: normal; +} + +@font-face { + font-family: "Merriweather"; + src: url("../fonts/merriweather/Merriweather-Italic.ttf"); + font-style: italic; +} diff --git a/public/assets/fonts/merriweather/Merriweather-Italic.ttf b/public/assets/fonts/merriweather/Merriweather-Italic.ttf new file mode 100644 index 0000000..179acf3 Binary files /dev/null and b/public/assets/fonts/merriweather/Merriweather-Italic.ttf differ diff --git a/public/assets/fonts/merriweather/Merriweather-Regular.ttf b/public/assets/fonts/merriweather/Merriweather-Regular.ttf new file mode 100644 index 0000000..18da9e5 Binary files /dev/null and b/public/assets/fonts/merriweather/Merriweather-Regular.ttf differ diff --git a/public/assets/img/arrow-back.svg b/public/assets/img/arrow-back.svg new file mode 100644 index 0000000..6d00888 --- /dev/null +++ b/public/assets/img/arrow-back.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets/img/arrow-forward.svg b/public/assets/img/arrow-forward.svg new file mode 100644 index 0000000..6bd4748 --- /dev/null +++ b/public/assets/img/arrow-forward.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets/img/close.svg b/public/assets/img/close.svg new file mode 100644 index 0000000..0b3a55f --- /dev/null +++ b/public/assets/img/close.svg @@ -0,0 +1 @@ + \ No newline at end of file -- cgit v1.2.3-70-g09d2