summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-08-24 18:40:19 +0200
committerJules Laplace <julescarbon@gmail.com>2021-08-24 18:40:19 +0200
commit1cc630da4247e75a18629d960768d06239b0175b (patch)
tree15a21324740672b3dcfde0ad7123f5f8b20434a5 /public
parent15cc8f97b68569332b19c9e716f02532a66b36c7 (diff)
details and gallery
Diffstat (limited to 'public')
-rw-r--r--public/assets/css/css.css97
-rw-r--r--public/assets/css/fonts.css11
-rw-r--r--public/assets/fonts/merriweather/Merriweather-Italic.ttfbin0 -> 142548 bytes
-rw-r--r--public/assets/fonts/merriweather/Merriweather-Regular.ttfbin0 -> 149092 bytes
-rw-r--r--public/assets/img/arrow-back.svg1
-rw-r--r--public/assets/img/arrow-forward.svg1
-rw-r--r--public/assets/img/close.svg1
7 files changed, 111 insertions, 0 deletions
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
--- /dev/null
+++ b/public/assets/fonts/merriweather/Merriweather-Italic.ttf
Binary files 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
--- /dev/null
+++ b/public/assets/fonts/merriweather/Merriweather-Regular.ttf
Binary files 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 @@
+<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#FFFFFF"><path d="M0 0h24v24H0z" fill="none"/><path d="M11.67 3.87L9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"/></svg> \ 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 @@
+<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#FFFFFF"><g><path d="M0,0h24v24H0V0z" fill="none"/></g><g><polygon points="6.23,20.23 8,22 18,12 8,2 6.23,3.77 14.46,12"/></g></svg> \ 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 @@
+<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#FFFFFF"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg> \ No newline at end of file