summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-06-29 13:03:01 +0300
committerYuval Adam <yuval@y3xz.com>2015-06-29 13:03:01 +0300
commit6e73d7d8f03056a674908801500a5f842aed6014 (patch)
tree8930cf7eb1eb9c0ad53e3ea81d8167b1453bfb02 /client
parent7b35b04196c6dce495a67dbe68cd117a5cfc13d7 (diff)
About buttons
Diffstat (limited to 'client')
-rw-r--r--client/button.js18
-rw-r--r--client/colors.less12
-rw-r--r--client/templates/about.html2
3 files changed, 32 insertions, 0 deletions
diff --git a/client/button.js b/client/button.js
index 4c5eafa..3b7e936 100644
--- a/client/button.js
+++ b/client/button.js
@@ -229,6 +229,24 @@ Template.photo.helpers({
}
})
+Template.about.events({
+ 'click button.start-over': function (event) {
+ if (Meteor.userId()) {
+ Router.go('dates');
+ }
+ else {
+ Router.go('login');
+ }
+ },
+ 'click button.logout': function (event) {
+ $('body').append('<div style="display:none;"><iframe src="https://instagram.com/accounts/logout"></iframe></div>');
+ Meteor.logout();
+ _.delay(function () {
+ Router.go('login');
+ }, 500);
+ }
+})
+
Accounts.onLogin(function() {
if (Router.current().route.getName() == 'login') {
Router.go('dates');
diff --git a/client/colors.less b/client/colors.less
index e3ab64c..417810a 100644
--- a/client/colors.less
+++ b/client/colors.less
@@ -333,6 +333,18 @@ body {
}
}
}
+ button {
+ margin-top: 40px;
+ color: #2636F9;
+ font-size: 1.3em;
+ background-color: white;
+ padding: 7px 35px;
+ border: 1px #2636F9 solid;
+ &:hover, &:active {
+ color: white;
+ background-color: #2636F9;
+ }
+ }
}
}
}
diff --git a/client/templates/about.html b/client/templates/about.html
index caa79f6..a3bd5da 100644
--- a/client/templates/about.html
+++ b/client/templates/about.html
@@ -20,6 +20,8 @@
<div class="content"><a href="#">The NB Haifa School of Design</a></div>
</div>
</div>
+ <button class="start-over">Start Over</button>
+ <button class="logout">Logout</button>
</div>
</div>
</template>