diff --git a/src/lib/components/Avatar.stories.js b/src/lib/components/Avatar.stories.js new file mode 100644 index 0000000..346c4f0 --- /dev/null +++ b/src/lib/components/Avatar.stories.js @@ -0,0 +1,50 @@ +import Avatar from './Avatar.svelte' + +export default { + title: 'Components/Avatar', + component: Avatar, + parameters: { + docs: { + description: { + component: + 'Streamlined avatar component with interactive states and music playing indicator.' + } + } + }, + argTypes: { + forcePlayingMusic: { + control: 'boolean', + description: 'Force the music playing state (shows headphones)' + } + } +} + +export const Default = { + args: { + forcePlayingMusic: false + } +} + +export const PlayingMusic = { + args: { + forcePlayingMusic: true + } +} + +export const Interactive = { + args: { + forcePlayingMusic: false + }, + render: (args) => ({ + Component: Avatar, + props: args + }), + parameters: { + docs: { + story: { + inline: false, + height: '400px' + } + } + } +} \ No newline at end of file diff --git a/src/lib/components/Avatar.svelte b/src/lib/components/Avatar.svelte index 7bb0395..3449294 100644 --- a/src/lib/components/Avatar.svelte +++ b/src/lib/components/Avatar.svelte @@ -1,13 +1,16 @@ + +{#if isVisible} +
- Right now, I'm spending my free time building a hobby journaling app called Maitsu. I've spent time at several companies over the last 11 years, but you might know me from + Currently, I'm a product designer at Grammarly. I spend my free time building a hobby journaling app called + Maitsu and running a competitive crew in + Granblue Fantasy. I've spent time + at several companies over the last 15 years, but you might know me from Pinterest, where I was the first design hire.
@@ -152,6 +154,10 @@ background: $grey-100; border-radius: $card-corner-radius; + p { + margin-bottom: $unit-2x; + } + p:first-child { margin-top: 0; }