Skip to content

Commit

Permalink
add create buttons to all blank pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfiller committed Sep 29, 2020
1 parent ec1f0fd commit b68243b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions web/src/layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@
flex: 1;
justify-content: center;
}
/* buttons for when X is empty */
:global(main button) {
background: none;
border: none;
font-size: 1em;
padding: 0;
cursor: pointer;
text-decoration: underline;
}
main {
flex: 1;
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/[owner]/[palette].svelte
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
{#if $data.colors.length}
<Palette />
{:else}
<p>uh oh, this palette doesn't have any colors yet.</p>
<p>uh oh, this palette doesn't have any colors yet. <button on:click={() => {$actions.current='addColor'}}>add one!</button></p>
{/if}
{:catch error}
uh oh, no palette with that name.
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/[owner]/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
{/each}
</ul>
{:else}
<p>uh oh, you have no color palettes. create one!</p>
<p>uh oh, you have no color palettes. <button on:click={() => {$actions.current='addPalette'}}>create one!</button></p>
{/if}
{:catch error}
uh oh, no user with that name.
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
{/each}
</ul>
{:else}
<p>uh oh, there are no users. create one!</p>
<p>uh oh, there are no users. <button on:click={() => {$actions.current='addUser'}}>create one!</button></p>
{/if}
{:catch error}
error?
Expand Down

0 comments on commit b68243b

Please sign in to comment.