From eebb88b6b1fcc3d048a02ea3e1fc47e2e1310e6f Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Mon, 15 Jun 2015 13:29:33 +0200 Subject: [PATCH] New front page and darker style --- rpg-docs/Routes/Routes.js | 22 ++- rpg-docs/client/style/colors.scss | 4 +- rpg-docs/client/style/main.scss | 10 ++ .../views/characterList/characterList.html | 2 +- rpg-docs/client/views/guide/guide.html | 4 + rpg-docs/client/views/home/home.html | 27 +--- rpg-docs/client/views/home/intro/intro.html | 126 +++++++++++------- rpg-docs/client/views/home/intro/intro.js | 14 ++ rpg-docs/client/views/home/intro/intro.scss | 29 +++- rpg-docs/client/views/layout/imports.html | 1 + rpg-docs/client/views/layout/layout.html | 6 +- rpg-docs/client/views/layout/layout.js | 4 + rpg-docs/client/views/loading/loading.css | 1 + rpg-docs/client/views/loading/loading.html | 2 +- .../views/meta/changeLog/changeLog.html | 2 +- .../views/user/titledAtForm/titledAtForm.html | 2 +- .../crown-dice-logo-cropped-transparent.png | Bin 0 -> 10612 bytes rpg-docs/public/png/paper-dice-crown.png | Bin 78980 -> 61706 bytes 18 files changed, 164 insertions(+), 92 deletions(-) create mode 100644 rpg-docs/client/views/home/intro/intro.js create mode 100644 rpg-docs/public/crown-dice-logo-cropped-transparent.png diff --git a/rpg-docs/Routes/Routes.js b/rpg-docs/Routes/Routes.js index 7a9c2f2f..7a26c2cc 100644 --- a/rpg-docs/Routes/Routes.js +++ b/rpg-docs/Routes/Routes.js @@ -4,18 +4,9 @@ Router.configure({ }); Router.plugin("ensureSignedIn", { - except: [ - "home", - "characterSheet", - "atSignIn", - "atSignUp", - "atForgotPassword", - "atResetPwd", - "atEnrollAccount", - "atVerifyEmail", - "atResendVerificationEmail", - "loginButtons", - "notFound", + only: [ + "profile", + "characterList", ] }); @@ -94,4 +85,11 @@ Router.map(function() { document.title = appName; }, }); + + this.route("/guide", { + name: "guide", + onAfterAction: function() { + document.title = appName; + }, + }); }); diff --git a/rpg-docs/client/style/colors.scss b/rpg-docs/client/style/colors.scss index f98b53d3..6f501aa9 100644 --- a/rpg-docs/client/style/colors.scss +++ b/rpg-docs/client/style/colors.scss @@ -70,8 +70,8 @@ background-color: #9E9E9E; } -.blue-grey { - background-color: #607D8B; +.app-grey { + background-color: #424242; } .white { diff --git a/rpg-docs/client/style/main.scss b/rpg-docs/client/style/main.scss index a282ab4f..77a3172f 100644 --- a/rpg-docs/client/style/main.scss +++ b/rpg-docs/client/style/main.scss @@ -19,6 +19,16 @@ body { background-color: #E0E0E0; } +//fix tabs and core-toolbar having box shadow +core-toolbar { + box-shadow: none; +} + +//give drawer panel a shadow always +core-header-panel[drawer] { + box-shadow: 2px 0px 5px 0px rgba(0,0,0,0.2); +} + //Horizontal rule hr { background-color: #444; diff --git a/rpg-docs/client/views/characterList/characterList.html b/rpg-docs/client/views/characterList/characterList.html index e3a89a6f..66923574 100644 --- a/rpg-docs/client/views/characterList/characterList.html +++ b/rpg-docs/client/views/characterList/characterList.html @@ -1,5 +1,5 @@