-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* uxrefactor * clean up polish * . * albers square * bugs * maureen notes * toggle sections * .
- Loading branch information
1 parent
bafd0a8
commit e780c4b
Showing
42 changed files
with
1,127 additions
and
865 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,18 @@ | ||
<script lang="ts"> | ||
import { buttonStyle } from "../lib/styles"; | ||
export let color: string; | ||
export let clickColor: (color: string) => void; | ||
export let removeColor: (color: string) => void; | ||
</script> | ||
|
||
<div | ||
class=" {buttonStyle} h-12 flex justify-between items-center mb-2 opacity-100" | ||
> | ||
<button | ||
class="w-3 h-3 rounded-full mr-2" | ||
style="background-color: {color}" | ||
on:click={() => clickColor(color)} | ||
></button> | ||
<button class="" on:click={() => clickColor(color)}>{color}</button> | ||
<button class="ml-2" on:click={() => removeColor(color)}>X</button> | ||
</div> |
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,20 @@ | ||
<script lang="ts"> | ||
import type { Palette } from "../stores/color-store"; | ||
export let pal: Palette; | ||
export let onClick: () => void; | ||
</script> | ||
|
||
<div class="relative mr-2 mb-2 flex justify-center items-center"> | ||
<div class="w-full flex absolute top-0 opacity-50 pointer-events-none"> | ||
{#each pal.colors as color} | ||
<div | ||
class="h-6" | ||
style="background-color: {color.toHex()}; width: {100 / | ||
pal.colors.length}%" | ||
></div> | ||
{/each} | ||
</div> | ||
<button on:click={onClick}> | ||
{pal.name} | ||
</button> | ||
</div> |
Oops, something went wrong.