From 2d0d0263e3e77db1e6ccc9039f29535fb67599cb Mon Sep 17 00:00:00 2001 From: MinamiFunakoshiTR Date: Thu, 6 Mar 2025 13:45:17 -0800 Subject: [PATCH] updates infobox --- src/components/InfoBox/InfoBox.stories.mdx | 19 +++ src/components/InfoBox/InfoBox.stories.svelte | 33 ++---- src/components/InfoBox/InfoBox.svelte | 108 ++++++++++-------- .../InfoBox/stories/docs/component.md | 17 --- 4 files changed, 88 insertions(+), 89 deletions(-) create mode 100644 src/components/InfoBox/InfoBox.stories.mdx delete mode 100644 src/components/InfoBox/stories/docs/component.md diff --git a/src/components/InfoBox/InfoBox.stories.mdx b/src/components/InfoBox/InfoBox.stories.mdx new file mode 100644 index 00000000..ee571ae6 --- /dev/null +++ b/src/components/InfoBox/InfoBox.stories.mdx @@ -0,0 +1,19 @@ +# InfoBox + +InfoBox is used to provide additional information that needs to be visually set aside from the main content flowm, such as methodology, detailed notes about data, and extra context as text stories. + +Switch the theme prop to `dark` for a dark page infobox. + +Use [snippets](https://svelte.dev/docs/svelte/snippet) to customise the content as needed, e.g. adding icons and thumbnail images. + +```svelte + + + +``` diff --git a/src/components/InfoBox/InfoBox.stories.svelte b/src/components/InfoBox/InfoBox.stories.svelte index 6ccd3d47..2ebb2125 100644 --- a/src/components/InfoBox/InfoBox.stories.svelte +++ b/src/components/InfoBox/InfoBox.stories.svelte @@ -1,15 +1,12 @@ - - - - - + diff --git a/src/components/InfoBox/InfoBox.svelte b/src/components/InfoBox/InfoBox.svelte index 98ddbd0a..f52a6fe8 100644 --- a/src/components/InfoBox/InfoBox.svelte +++ b/src/components/InfoBox/InfoBox.svelte @@ -1,47 +1,59 @@ - - - -```