css + mobile

This commit is contained in:
yamanq 2016-02-11 19:11:57 -05:00
parent 549d31d4d1
commit fc7defd1ee
4 changed files with 17 additions and 29 deletions

View File

@ -18,6 +18,7 @@ body {
h1 { h1 {
font-family: Lato; font-family: Lato;
font-size: 300%; font-size: 300%;
margin-left: 4.2%;
} }
#date { #date {
@ -62,10 +63,12 @@ h1 {
.login-display-name { .login-display-name {
display: none !important; display: none !important;
} }
.login-button { .login-button {
margin-left: 20% !important; margin-left: 20% !important;
width: 100% !important; width: 100% !important;
height: 28px !important; height: 28px !important;
float: right;
} }
.eachDay { .eachDay {
position: relative; position: relative;
@ -97,8 +100,12 @@ h1 {
.recent { .recent {
color: #353535; color: #353535;
font-size: 160%;
background-color: #5BEF78; background-color: #5BEF78;
max-width:30%; min-width:40%;
max-width:40%;
padding-top:3%;
padding-bottom:3%;
} }
.scheduleList { .scheduleList {

View File

@ -59,13 +59,15 @@
<button id="button">Update!</button> <button id="button">Update!</button>
{{/if}} {{/if}}
<div class='about'> <div class='about'>
<p>Developed by Yaman Qalieh and Kenny Jao</p> <p>Developed by Yaman Qalieh</p>
<p>Visuals by Kenny Jao</p>
<a class="github" target="_blank" href="https://github.com/yamanq/scheduleac">Github</a> <a class="github" target="_blank" href="https://github.com/yamanq/scheduleac">Github</a>
</div> </div>
</div> </div>
</template> </template>
<template name="phone"> <template name="phone">
<p class="type">{{aftertext}} </p><p class="date">{{pretext}} </p> {{#each phone}}
<button class="nextb">Next</button> {{> recent}}
{{/each}}
</template> </template>

View File

@ -16,7 +16,7 @@ Template.client.helpers({
mostrecent: function() { mostrecent: function() {
return schedule.find({}, {sort: {timestamp: 1}, limit: 1}).fetch(); return schedule.find({}, {sort: {timestamp: 1}, limit: 1}).fetch();
}, }
}); });
@ -161,28 +161,7 @@ function getScale(index, start) {
Template.phone.helpers({ Template.phone.helpers({
pretext: function() { phone: function() {
cole = schedule.find({}, {sort: {timestamp: 1}}).fetch(); return schedule.find({}, {sort: {timestamp: 1}, limit: 1}).fetch();
date = moment(cole[currentcard].pretext);
date = date.calendar(null, {
sameDay: '[Today]',
nextDay: '[Tomorrow]',
nextWeek: 'dddd',
lastDay: '[Yesterday]',
lastWeek: '[Last] dddd',
sameElse: 'DD/MM/YYYY'
});
return date
},
aftertext: function() {
cole = schedule.find({}, {sort: {timestamp: 1}}).fetch();
return cole[currentcard].aftertext;
}
});
Template.phone.events({
'click nextb': function() {
currentcard += 1;
} }
}); });

View File

@ -1,7 +1,7 @@
var allowed = {}; var allowed = {};
allowed["ybq987@gmail.com"] = true; allowed["ybq987@gmail.com"] = true;
allowed["dweinger@bloomfield.org"] = true; allowed["dweinger@bloomfield.org"] = true;
allowed["ksjdragon@gmail.com"] = true; //allowed["ksjdragon@gmail.com"] = true;
schedule.permit(['insert', 'update', 'remove']).never().apply(); schedule.permit(['insert', 'update', 'remove']).never().apply();