From 1c2b7a42aa56f3b42148491504639a50e5e5bce2 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Mon, 27 Aug 2018 16:13:46 -0700 Subject: [PATCH] Ready to deploy Signed-off-by: James Ketrenos --- config/default.json | 2 +- frontend/elements/photo-thumbnail.html | 21 ++-- frontend/src/ketr-photos/ketr-photos.html | 146 ++++++++++++++++++---- server/db/index.js | 2 + server/routes/albums.js | 2 +- server/scanner.js | 8 +- 6 files changed, 144 insertions(+), 37 deletions(-) diff --git a/config/default.json b/config/default.json index 71084c1..5e6eb7b 100644 --- a/config/default.json +++ b/config/default.json @@ -7,7 +7,7 @@ } }, "server": { - "port": 8080 + "port": 8123 }, "picturesPath": "./pictures", "basePath": "/photos" diff --git a/frontend/elements/photo-thumbnail.html b/frontend/elements/photo-thumbnail.html index e722c73..184a6d7 100644 --- a/frontend/elements/photo-thumbnail.html +++ b/frontend/elements/photo-thumbnail.html @@ -28,24 +28,23 @@ } :host > div { + position: absolute; padding: 0.5em; + background-color: rgba(0, 0, 0, 0.5); + opacity: 0; + bottom: 0px; + left: 0px; + right: 0px; } - :host:hover { - background-color: rgba(0, 0, 0, 0.2); + :host:hover > div { + opacity: 1; } - div[path]:hover { - text-decoration: underline; - cursor: pointer; - } -
-
[[item.id]]
-
[[date(item)]]
-
[[item.path]]
-
[[item.filename]]
+
+ [[item.name]]
diff --git a/frontend/src/ketr-photos/ketr-photos.html b/frontend/src/ketr-photos/ketr-photos.html index 785bc26..5e35706 100755 --- a/frontend/src/ketr-photos/ketr-photos.html +++ b/frontend/src/ketr-photos/ketr-photos.html @@ -48,11 +48,17 @@ :host { } + #breadcrumb { + padding: 0.5em; + } + + #albumList > div, #breadcrumb > div { margin-right: 0.5em; cursor: pointer; } + #albumList > div:hover, #breadcrumb > div:hover { text-decoration: underline; } @@ -85,7 +91,7 @@ background-color: yellow; } - #header > * { + #header > div > * { margin-right: 0.5em; } @@ -102,6 +108,21 @@ width: 100%; } + .album-line { + display: block; + padding: 0.5em 0; + width: 100%; + cursor: pointer; + } + + .album-line > div { + margin-right: 0.5em; + } + + .album-line > div:hover { + text-decoration: underline; + } + #content { margin: 1em; } @@ -126,31 +147,35 @@ -