From e731f6c84b71031d02973a96306bf9fd2f6e1d00 Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Fri, 3 Mar 2023 11:56:55 -0500 Subject: [PATCH] Updated navbar styles a bit; started work on dashboard --- assets/styles/drake.scss | 31 ++++++++++++++++++++++++++++--- lib/routes/index.rb | 11 ++++++++++- views/index.erb | 27 ++++++++++++++++++++++++++- 3 files changed, 64 insertions(+), 5 deletions(-) diff --git a/assets/styles/drake.scss b/assets/styles/drake.scss index b80244b..40d8446 100644 --- a/assets/styles/drake.scss +++ b/assets/styles/drake.scss @@ -1,10 +1,26 @@ -$navbar-height: 50px; +$navbar-height: 60px; + +$highlight-color: cornflowerblue; +$highlight-color-dark: darken($highlight-color, 10%); body{ padding-top: calc($navbar-height + 15px); background: white; } +a{ + color: $highlight-color; + transition: color 230ms ease-in-out; + &:hover{ + color: $highlight-color-dark; + } +} + +hr{ + margin-top: 20px; + margin-bottom: 20px; +} + #main-nav{ position: fixed; top: 0; @@ -20,18 +36,27 @@ body{ li{ display: inline-block; + margin-top: 5px; + margin-left: 10px; } } h3{ display: inline-block; + margin-top: 14px; + margin-left: 10px; margin-bottom: 0; color: black; - font-size: 2rem; + font-size: 2.5rem; } li > a{ - color: cornflowerblue; font-size: 2rem; + font-weight: bold; + text-decoration: none; } } + +#site-header{ + margin-bottom: 10px; +} diff --git a/lib/routes/index.rb b/lib/routes/index.rb index 71eda27..506dfae 100644 --- a/lib/routes/index.rb +++ b/lib/routes/index.rb @@ -1,8 +1,17 @@ namespace '/' do get '' do + channels = [ + { + :name => 'Bit Goblin', + :openProjects => 'N/a', + :totalProjects => 'N/a', + :last_updated => 'N/a' + } + ] erb :index, :locals => { - :title => 'Dashboard' + :title => 'Dashboard', + :channels => channels } end diff --git a/views/index.erb b/views/index.erb index f75efec..7bf71b7 100644 --- a/views/index.erb +++ b/views/index.erb @@ -1,7 +1,32 @@
-

Welcome to Stage Manager

+

Stage Manager Dashboard


+ +
+
+ + + + + + + + + + + <% channels.each do |c| %> + + + + + + + <% end %> + +
Channel nameOpen projectsTotal projectsLast updated!
<%= c[:name] %><%= c[:openProjects] %><%= c[:totalProjects] %><%= c[:last_updated] %>
+
+