From 829f22bb96c8004b89a2c99b5aba296f1731cd3d Mon Sep 17 00:00:00 2001 From: Raphael Paul Laude Date: Sat, 24 Feb 2024 21:54:32 -0500 Subject: [PATCH] add about modal --- pluto-hist/about.html | 56 +++++++++++++++++++++++++++++++++++++++++++ pluto-hist/index.html | 11 +++++++++ pluto-hist/main.js | 1 + pluto-hist/style.css | 31 ++++++++++++++++++++++++ 4 files changed, 99 insertions(+) create mode 100644 pluto-hist/about.html diff --git a/pluto-hist/about.html b/pluto-hist/about.html new file mode 100644 index 0000000..a25bf3c --- /dev/null +++ b/pluto-hist/about.html @@ -0,0 +1,56 @@ + diff --git a/pluto-hist/index.html b/pluto-hist/index.html index cbd8062..7c59476 100644 --- a/pluto-hist/index.html +++ b/pluto-hist/index.html @@ -6,6 +6,7 @@ + NYC Parcel ATM

Exploring PLUTO's 22 year history

+ +

2002

diff --git a/pluto-hist/main.js b/pluto-hist/main.js index 5a4f23d..75b4003 100644 --- a/pluto-hist/main.js +++ b/pluto-hist/main.js @@ -53,6 +53,7 @@ if (import.meta.env.VITE_KIOSK === "true") { document.body.classList.add("kiosk"); addAttributeToId("controls", "visibility", "visible"); addAttributeToId("centerMarker", "visibility", "visible"); + addAttributeToId("about", "display", "none"); } class Spinner { diff --git a/pluto-hist/style.css b/pluto-hist/style.css index 638d720..ff2d02a 100644 --- a/pluto-hist/style.css +++ b/pluto-hist/style.css @@ -82,6 +82,33 @@ h1 { margin-top: 0; } +#modal { + position: absolute; + width: 250px; + top: 1rem; + left: calc(var(--sidebar-width) + 3rem); + background-color: var(--bg); + color: var(--text-color); + padding: var(--box-padding); + border: 1px solid #000; + border-radius: 0.5rem; + z-index: 1000; + max-height: calc(100% - 4rem); + overflow-y: scroll; + + h3 { + font-size: 1em; + font-weight: 500; + margin: 0 0 0.5em 0; + padding: 0; + } + + p { + font-size: 0.75em; + margin: 0 0 1rem 0; + } +} + #year { /* position: fixed; */ /* top: 0.67em; */ @@ -229,6 +256,10 @@ h1 { border-bottom: #000 1px solid; } + #modal { + left: 1rem; + } + #centerMarker { left: 50%; top: 25%;