-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show placeholders when user has no notes (#666)
* Added placeholders that show when the app doesn't have any notes. * Adding compact (borderless) simplenote logo svg * Moved placeholders higher up into `app.jsx`. Added a new scss file for the placeholder styles. * Add 20% opacity to the placeholder text and logo. * Fixed toolbar height on mac, corrected a misspelling and used $toolbar-height var. * Don't change opacity of placeholder text, per design feedback. * RC3!
- Loading branch information
Showing
7 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
|
||
export default function SimplenoteCompactLogo() { | ||
return ( | ||
<svg className="logo" width="96" height="96" viewBox="0 0 176 176"> | ||
<g fillRule="evenodd" clipRule="evenodd"> | ||
<path | ||
d="M152.37 87.885c0-34.066-27.182-63.42-59.45-64.854-6.416-.284-12.647 1.432-17.58 5.573-5.002 4.196-8.07 10.09-8.638 16.595C65.43 59.73 78.537 68.618 91.225 72.09c30.69 8.398 48.462 30.086 46.655 56.757 9.057-11.194 14.49-25.442 14.49-40.962zM84.345 97.24c-28.696-7.853-45.817-29.174-43.62-54.317.027-.287.073-.567.102-.852C29.19 53.846 22 70.023 22 87.886c0 34.348 27.955 63.828 60.277 64.933 7.227.248 14.214-1.685 19.766-6.344 5.67-4.757 9.146-11.435 9.79-18.808 1.703-19.463-16.492-27.417-27.488-30.426z" | ||
fill="#4895d9" | ||
/> | ||
</g> | ||
</svg> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.placeholder-note-detail { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
height: 100vh; | ||
border-left: 1px solid lighten($gray, 30%); | ||
|
||
.placeholder-note-toolbar { | ||
display: block; | ||
height: $toolbar-height; | ||
border-bottom: 1px solid lighten($gray, 30%); | ||
} | ||
|
||
.placeholder-note-editor{ | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
flex: 1; | ||
|
||
.logo { | ||
width: 140px; | ||
height: 140px; | ||
opacity: 0.2; | ||
|
||
path { | ||
fill: $gray; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.placeholder-note-list { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
height: 100vh; | ||
|
||
span { | ||
color: $gray; | ||
font-size: 1.3em; | ||
} | ||
} |