From aa652f38c7bcfbcddbec4290995e34a1d171bbab Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sat, 20 Jun 2015 10:48:06 +0300 Subject: About page and router login fix --- client/button.js | 4 +++- client/colors.less | 42 ++++++++++++++++++++++++++++++++++++++++++ client/templates/about.html | 25 +++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 client/templates/about.html (limited to 'client') diff --git a/client/button.js b/client/button.js index 27beb28..4a9906a 100644 --- a/client/button.js +++ b/client/button.js @@ -178,5 +178,7 @@ Template.photo.helpers({ }) Accounts.onLogin(function() { - Router.go('dates'); + if (Router.current().route.getName() == 'login') { + Router.go('dates'); + } }); diff --git a/client/colors.less b/client/colors.less index db572c0..4cc07cf 100644 --- a/client/colors.less +++ b/client/colors.less @@ -185,5 +185,47 @@ body { text-align: center; } } + div.about-wrapper { + display: flex; + align-items: center; + justify-content: center; + height: auto; + max-width: 500px; + margin: 0 auto; + margin-top: 85px; + div.about { + text-align: center; + h1 { + color: #2636F9; + font-size: 3.5em; + font-weight: bold; + } + h2 { + margin: 30px 10px 0px 10px; + font-size: 2em; + font-weight: bold; + color: #333; + } + div.items { + display: flex; + align-items: center; + justify-content: center; + margin-top: 50px; + div.item { + flex: 0 0 auto; + margin-right: 40px; + text-align: left; + font-weight: bold; + div.title { + color: #333; + font-size: 1em; + } + div.content a { + color: #2636F9; + } + } + } + } + } } } diff --git a/client/templates/about.html b/client/templates/about.html new file mode 100644 index 0000000..caa79f6 --- /dev/null +++ b/client/templates/about.html @@ -0,0 +1,25 @@ + -- cgit v1.3.1