Skip to content

Commit

Permalink
improved empty state
Browse files Browse the repository at this point in the history
  • Loading branch information
HarveyKandola committed Oct 30, 2016
1 parent 257f8fa commit 20292a3
Show file tree
Hide file tree
Showing 8 changed files with 644 additions and 677 deletions.
20 changes: 2 additions & 18 deletions app/app/styles/view/document/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,7 @@
}
}

.no-sections {
.empty-state-document {
margin-top: 150px;
text-align: center;
opacity: 0.5;

> .box {
padding: 35px;
display: inline-block;
margin: 0 20px;

> .message {
font-size: 14px;
color: $color-off-black;
margin-top: 20px;
}

> .regular-button {
cursor: default !important;
}
}
}
24 changes: 1 addition & 23 deletions app/app/styles/view/page-documents.scss
Original file line number Diff line number Diff line change
Expand Up @@ -173,31 +173,9 @@
}
}

.no-documents {
.empty-state-space {
margin-top: 150px;
text-align: center;
opacity: 0.5;
background-image: url("/assets/img/no-documents.png");
background-repeat: no-repeat;
background-position: center;

> .box {
max-width: 400px;
margin: 0 auto;
border: 1px dashed #b3adad;
padding: 20px;

> .message {
font-size: 14px;
color: $color-off-black;
margin-top: 20px;
line-height: 50px;
}

> .regular-button {
cursor: default !important;
}
}
}

.templates-list {
Expand Down
11 changes: 2 additions & 9 deletions app/app/templates/components/document/document-view.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,7 @@
</div>

{{#if noSections}}
<div class="no-sections">
<div class="box">
<div class="message">Click the
<div class="round-button-mono">
<i class="material-icons color-gray">add</i>
<div class="name">section</div>
</div>
to add a new section to this document</div>
</div>
<div class="empty-state-document">
<img src="/assets/img/empty-state-document.gif" />
</div>
{{/if}}
15 changes: 2 additions & 13 deletions app/app/templates/components/folder/documents-list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,7 @@
</ul>

{{#if emptyState}}
<div class="no-documents">
<div class="box">
<h3>This space is empty</h3>
<div class="message">Click the
<div class="round-button-mono">
<i class="material-icons color-gray">add</i>
</div> button to add a new document<br/>or
<div class="round-button-mono">
<i class="material-icons color-gray">file_upload</i>
</div>
to import .doc .docx, .txt .md files
</div>
</div>
<div class="empty-state-space">
<img src="/assets/img/empty-state-space.gif" />
</div>
{{/if}}
Binary file added app/public/assets/img/empty-state-document.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/public/assets/img/empty-state-space.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/public/assets/img/no-documents.png
Binary file not shown.
1,251 changes: 637 additions & 614 deletions embed/bindata_assetfs.go

Large diffs are not rendered by default.

0 comments on commit 20292a3

Please sign in to comment.