Compare View

switch
from
...
to
 
Commits (2)

Diff

Showing 4 changed files Side-by-side Diff

scripts/FeedController.js View file @ a15945b
... ... @@ -32,6 +32,22 @@ angular.module('flashy.FeedController', ['ui.router']).
32 32 success(function(data) {
33 33 console.log(data);
34 34 $scope.cards = data;
  35 +
  36 + $scope.noCards = function () {
  37 +
  38 + alert(data.length);
  39 +
  40 + if (data.length == 0) {
  41 + return true;
  42 + } else {
  43 + return false;
  44 + }
  45 +
  46 + }
  47 +
  48 +
  49 +
  50 +
35 51 }).
36 52 error(function(err) {
37 53 console.log('pulling feed failed');
styles/flashy.css View file @ a15945b
... ... @@ -203,9 +203,6 @@ body {
203 203 background-color: #e8e8e8;
204 204 overflow-x: hidden;
205 205 font-family: 'Titillium Web', sans-serif;
206   - display: flex;
207   - min-height: 100vh;
208   - flex-direction: column;
209 206 }
210 207  
211 208 html {
... ... @@ -241,7 +238,6 @@ nav {
241 238 }
242 239 main{
243 240 min-height:145px;
244   - flex: 1 0 auto;
245 241 }
246 242 .side-nav .collapsible-body {
247 243 width: 100%;
... ... @@ -283,9 +279,3 @@ md-content.md-default-theme {
283 279 /*#sidenav-overlay {
284 280 background-color: rgba(0, 0, 0, 0) !important;
285 281 }*/
286   -
287   -
288   -h3{
289   - text-align: center;
290   - color: #654193;
291   -}
292 282 \ No newline at end of file
templates/feed.html View file @ a15945b
... ... @@ -5,6 +5,7 @@
5 5 </div>
6 6 </div>
7 7  
  8 +<h2 ng-show="noCards()">No cards. Be the first one to add a card!</h2>
8 9  
9 10 <!--Lil plus button in corner-->
10 11 <div class="fixed-action-btn" style="bottom: 96px; right: 24px;">
templates/login.html View file @ a15945b
1   -<h3>Create and share flashcards in real time!</h3>
2   -
3 1 <div class="" style="margin-top:32px;">
4 2 <div class="row" style="max-width:512px; width:50%; min-width:256px; margin: 0 auto">
5 3 <ul class="tabs">