Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonwells committed Oct 25, 2024
1 parent e537013 commit 8625ae0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/features/Card.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/>
<Card
title="Some other color card"
headerColor="cream"
titleColor="cream"
bgColor="teal"
color="white"
/>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/features/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
export let content = 'This is default content';
export let bgColor = 'cream';
export let color = 'black'
export let headerColor = 'navy'
export let titleColor = 'navy'
export let icon = UserFilled;
</script>

<div class="p-6 card-shadow rounded-xl bg-{bgColor} {$$restProps.class}">
<div class="pb-6 flex justify-between">
<h5 class="font-bold text-{headerColor} inline">{title}</h5>
<h5 class="font-bold text-{titleColor} inline">{title}</h5>
<svelte:component this={icon} class="w-f48 h-f48"/>
</div>
<div class="text-{color}">
Expand Down

0 comments on commit 8625ae0

Please sign in to comment.