]> source.dussan.org Git - nextcloud-server.git/commitdiff
Dashboard: add background image, improve panel design
authorJan C. Borchardt <hey@jancborchardt.net>
Fri, 7 Aug 2020 16:34:21 +0000 (18:34 +0200)
committerJan C. Borchardt <hey@jancborchardt.net>
Fri, 7 Aug 2020 16:47:22 +0000 (18:47 +0200)
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
apps/dashboard/README.md [new file with mode: 0644]
apps/dashboard/img/flickr-paszczak000-8715851521-mobile.jpg [new file with mode: 0644]
apps/dashboard/img/flickr-paszczak000-8715851521.jpg [new file with mode: 0644]
apps/dashboard/src/App.vue

diff --git a/apps/dashboard/README.md b/apps/dashboard/README.md
new file mode 100644 (file)
index 0000000..36c4dcf
--- /dev/null
@@ -0,0 +1,3 @@
+# Dashboard
+
+Picture credit: [Clouds by Kamil PorembiƄski](https://www.flickr.com/photos/paszczak000/8715851521/)
diff --git a/apps/dashboard/img/flickr-paszczak000-8715851521-mobile.jpg b/apps/dashboard/img/flickr-paszczak000-8715851521-mobile.jpg
new file mode 100644 (file)
index 0000000..5153d2f
Binary files /dev/null and b/apps/dashboard/img/flickr-paszczak000-8715851521-mobile.jpg differ
diff --git a/apps/dashboard/img/flickr-paszczak000-8715851521.jpg b/apps/dashboard/img/flickr-paszczak000-8715851521.jpg
new file mode 100644 (file)
index 0000000..732f28e
Binary files /dev/null and b/apps/dashboard/img/flickr-paszczak000-8715851521.jpg differ
index cffef23c01f5ae3e06ee751d4181f7442cb330b6..a5fc10099761103636bd67d1a6e278513b9b8114 100644 (file)
@@ -225,17 +225,57 @@ export default {
 }
 </script>
 
+<style lang="scss">
+// Show Dashboard background image beneath header
+#body-user #header {
+       background: none;
+}
+
+#content {
+       padding-top: 0;
+}
+
+// Hide triangle indicators from navigation since they are out of place without the header bar
+#appmenu li a.active::before,
+#appmenu li:hover a::before,
+#appmenu li:hover a.active::before,
+#appmenu li a:focus::before {
+       display: none;
+}
+</style>
+
 <style lang="scss" scoped>
        #app-dashboard {
                width: 100%;
-               margin-bottom: 100px;
+               padding-bottom: 100px;
+
+               background-color: var(--color-primary);
+               background-image: url('/nextcloud/apps/dashboard/img/flickr-paszczak000-8715851521.jpg?v=1');
+               background-size: cover;
+               background-position: center center;
+               background-repeat: no-repeat;
+               background-attachment: fixed;
+       }
+
+       @media only screen and (max-width: var(--breakpoint-mobile)) {
+               body {
+                       background-image: url('/nextcloud/apps/dashboard/img/flickr-paszczak000-8715851521-mobile.jpg?v=1');
+               }
        }
 
        h2 {
+               color: var(--color-primary-text);
                text-align: center;
                font-size: 32px;
                line-height: 130%;
-               padding: 80px 16px 0px;
+               padding: 120px 16px 0px;
+       }
+
+       .statuses {
+               ::v-deep #user-status-menu-item__subheader>button {
+                       background-color: rgba(255, 255, 255, 0.8);
+                       backdrop-filter: blur(10px);
+               }
        }
 
        .panels {
@@ -253,9 +293,9 @@ export default {
                width: 320px;
                max-width: 100%;
                margin: 16px;
-               background-color: var(--color-main-background-translucent);
+               background-color: rgba(255, 255, 255, 0.8);
+               backdrop-filter: blur(10px);
                border-radius: var(--border-radius-large);
-               border: 2px solid var(--color-border);
 
                &.sortable-ghost {
                         opacity: 0.1;