Skip to content

Commit

Permalink
feat: add empty view
Browse files Browse the repository at this point in the history
  • Loading branch information
viko16 committed Feb 3, 2019
1 parent 90582ef commit b55e388
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 10 additions & 1 deletion components/Home.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<template>
<div class="list-view">
<ol class="list">
<div
v-if="filteredList.length === 0"
class="empty-list"
>
Ooops! Nothing here..🙈
</div>
<ol
v-else
class="list"
>
<li
v-for="page of filteredList"
:key="page.key"
Expand Down
4 changes: 4 additions & 0 deletions styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ a
padding 0
list-style none

.empty-list
height 100px
text-align center

.list-item
position relative
margin-bottom 50px
Expand Down

0 comments on commit b55e388

Please sign in to comment.