From 5e0e55eb169b0b8fd6dc8d266ca8d48ff74c7f47 Mon Sep 17 00:00:00 2001 From: Gabor PEK Date: Mon, 12 Mar 2018 10:32:01 +0100 Subject: [PATCH] Add horizontal view, change header layout and fix webide position problems --- src/app/dashboard/dashboard.component.html | 2 +- src/app/dashboard/dashboard.component.scss | 72 +++++++++++++++++----- src/app/header/header.component.html | 15 ++--- src/app/header/header.component.scss | 34 ---------- src/app/login/login.component.html | 4 +- src/app/login/login.component.scss | 3 + src/app/messages/messages.component.html | 1 + src/app/messages/messages.component.scss | 11 +++- src/app/terminal/terminal.component.html | 2 +- src/app/webide/webide.component.html | 2 +- src/app/webide/webide.component.scss | 12 ++-- src/assets/scss/_variables.scss | 1 - 12 files changed, 85 insertions(+), 74 deletions(-) diff --git a/src/app/dashboard/dashboard.component.html b/src/app/dashboard/dashboard.component.html index 8522578..1c89e60 100755 --- a/src/app/dashboard/dashboard.component.html +++ b/src/app/dashboard/dashboard.component.html @@ -1,5 +1,5 @@ -
+
diff --git a/src/app/dashboard/dashboard.component.scss b/src/app/dashboard/dashboard.component.scss index 54934be..61b2feb 100755 --- a/src/app/dashboard/dashboard.component.scss +++ b/src/app/dashboard/dashboard.component.scss @@ -1,29 +1,46 @@ $space: 24px; +$small: 0.75 * $space; -$tao-plum-900: #272F4C; -$tao-gray-50: #FAFAFA; $tao-navbar-height: 67px; -$layout-template: "default"; // Change this to switch template +$tao-plum-900: #272F4C; +$tao-gray-50: #FAFAFA; +$tao-gray-100: #F2F2F2; +$tao-gray-500: #555555; + + +// Change this to switch template. Options: 'default', 'vraw', 'hraw' +$layout-template: 'hraw'; $default-layout: ( - 'messages': (1, 2, 1, 4), + 'header': (1, 2, 1, 2), + 'messages': (1, 2, 2, 10), 'webide': (4, -1, 1, -1), - 'terminal': (1, 4, 4, -1), - 'web': (2, 4, 1, 4) + 'terminal': (1, 4, 10, -1), + 'web': (2, 4, 1, 10) ); -$raw-layout: ( - 'messages': (1, 2, 1, -1), +$vraw-layout: ( + 'header': (1, 2, 1, 2), + 'messages': (1, 2, 2, -1), 'webide': (4, -1, 1, -1), 'terminal': (2, 4, 1, -1), 'web': (), ); +$hraw-layout: ( + 'header': (1, 2, 1, -1), + 'messages': (1, 2, 2, -1), + 'webide': (2, -1, 1, 10), + 'terminal': (2, -1, 10, -1), + 'web': (), +); + $layout: ( - "default": $default-layout, - "raw": $raw-layout + 'default': $default-layout, + 'vraw': $vraw-layout, + 'hraw': $hraw-layout ); @mixin position-grid-items($map, $sel) { @@ -48,25 +65,38 @@ $layout: ( } .tfw-grid-main-components { - overflow-y: hidden; + // overflow-y: visible; display: grid; - padding-top: $tao-navbar-height; width: 100vw; height: 100vh; justify-content: center; align-content: center; grid-template-columns: repeat(5, 1fr); - grid-template-rows: repeat(5, 1fr); + grid-template-rows: repeat(15, 1fr); @include position-grid-items(map_get($layout,$layout-template),'.tfw-'); - .tfw-web { - padding: $space; + .tfw-header { + padding: $small; + background-color: $tao-gray-50; + height: $tao-navbar-height; } .tfw-messages { padding: $space; background-color: $tao-gray-50; + overflow-y: scroll; + + @if ($layout-template != 'default') { + max-height: 95vmin; + } + @else { + max-height: 55vmin; + } + } + + .tfw-web { + padding: $space; } .tfw-webide { @@ -74,6 +104,16 @@ $layout: ( } .tfw-terminal { - } + border: 1px solid $tao-plum-900; + border-left: 0; + border-right: 0; + border-bottom: 0; + .xterm .xterm-viewport { + height: 100vmin; + } + + + + } } diff --git a/src/app/header/header.component.html b/src/app/header/header.component.html index 51cec9c..069490e 100755 --- a/src/app/header/header.component.html +++ b/src/app/header/header.component.html @@ -1,11 +1,4 @@ - +
+ + Tutorials +
diff --git a/src/app/header/header.component.scss b/src/app/header/header.component.scss index 81d80bb..50be1e1 100755 --- a/src/app/header/header.component.scss +++ b/src/app/header/header.component.scss @@ -11,14 +11,6 @@ $company-logo-width: 130px; font-size: $font-size-h3; } -.tfw-navbar { - background-color: rgba(255, 255, 255, 0.96); - min-height: $tao-navbar-height; - box-shadow: 0px 1px 6px 0px #888; - margin-bottom: 12px; - border: 1px solid #e7e7e7; -} - .tfw-grid-navbar { display: grid; grid-template-columns: $company-logo-width 1fr; @@ -31,29 +23,3 @@ $company-logo-width: 130px; width: $company-logo-width; } -.tfw-company-logo-mobile { - display: none; - width: 130px; -} - -@media (max-width: 767px) { - .tfw-grid-navbar { - grid-template-columns: 1fr; - } - - .tfw-company-logo { - display: none; - } - - .tfw-company-logo-mobile { - display: block; - } - - .tfw-navbar-links { - justify-self: left !important; - } -} - -.jumbotron { - padding: 2vh; -} diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index 3bf09e8..73d6cb3 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -1,4 +1,4 @@ -
+

Login page

@@ -23,7 +23,7 @@ [(ngModel)]="model.password" >
- +

diff --git a/src/app/login/login.component.scss b/src/app/login/login.component.scss index e69de29..adbd706 100644 --- a/src/app/login/login.component.scss +++ b/src/app/login/login.component.scss @@ -0,0 +1,3 @@ +.deploy-blur { + filter: blur(3px); +} diff --git a/src/app/messages/messages.component.html b/src/app/messages/messages.component.html index 0be46f1..8cad97b 100755 --- a/src/app/messages/messages.component.html +++ b/src/app/messages/messages.component.html @@ -9,3 +9,4 @@

+ diff --git a/src/app/messages/messages.component.scss b/src/app/messages/messages.component.scss index 90c889f..02f03a1 100755 --- a/src/app/messages/messages.component.scss +++ b/src/app/messages/messages.component.scss @@ -9,14 +9,21 @@ $tao-blue-500: #277EEC; $tao-gray-100: #F2F2F2; $tao-panel-border-radius-sm: 8px; +$tao-navbar-height: 67px; + $font-size-tiny: 12px; $font-size-base: 14px; +.tfw-grid-header-messages { + + display: grid; + grid-template-rows: $tao-navbar-height auto; +} + .tfw-messages-main { - max-height: 50vmin; - overflow-y: scroll; + h5 { margin-bottom: $small; diff --git a/src/app/terminal/terminal.component.html b/src/app/terminal/terminal.component.html index 8788452..32ea922 100644 --- a/src/app/terminal/terminal.component.html +++ b/src/app/terminal/terminal.component.html @@ -1 +1 @@ -
+
diff --git a/src/app/webide/webide.component.html b/src/app/webide/webide.component.html index 6bbb1b3..69547d9 100644 --- a/src/app/webide/webide.component.html +++ b/src/app/webide/webide.component.html @@ -1,4 +1,4 @@ -
+