diff --git a/src/components/EndNotes/EndNotes.stories.svelte b/src/components/EndNotes/EndNotes.stories.svelte new file mode 100644 index 00000000..b20b51b7 --- /dev/null +++ b/src/components/EndNotes/EndNotes.stories.svelte @@ -0,0 +1,42 @@ + + + + + + + diff --git a/src/components/EndNotes/EndNotes.svelte b/src/components/EndNotes/EndNotes.svelte new file mode 100644 index 00000000..2a832573 --- /dev/null +++ b/src/components/EndNotes/EndNotes.svelte @@ -0,0 +1,58 @@ + + + + + {#if notes} + {#each notes as note} +
{@html marked.parse(note.title)}
+
{@html marked.parse(note.text)}
+ {/each} + {/if} +
+ + + diff --git a/src/components/NoteText/stories/docs/component.md b/src/components/EndNotes/stories/docs/component.md similarity index 57% rename from src/components/NoteText/stories/docs/component.md rename to src/components/EndNotes/stories/docs/component.md index 9c47180a..af7054bc 100644 --- a/src/components/NoteText/stories/docs/component.md +++ b/src/components/EndNotes/stories/docs/component.md @@ -6,14 +6,21 @@ Note text can be fed a markdown string, but text styling is intentionally restri - + ``` diff --git a/src/components/NoteText/NoteText.stories.svelte b/src/components/NoteText/NoteText.stories.svelte deleted file mode 100644 index 37785bd1..00000000 --- a/src/components/NoteText/NoteText.stories.svelte +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - diff --git a/src/components/NoteText/NoteText.svelte b/src/components/NoteText/NoteText.svelte deleted file mode 100644 index 1a4e087a..00000000 --- a/src/components/NoteText/NoteText.svelte +++ /dev/null @@ -1,45 +0,0 @@ - - - - - {#if text} - {@html marked.parse(text)} - {/if} - - - - diff --git a/src/index.js b/src/index.js index 3639d00a..017ea9b7 100644 --- a/src/index.js +++ b/src/index.js @@ -20,7 +20,7 @@ export { default as Framer } from './components/Framer/Framer.svelte'; export { default as GraphicBlock } from './components/GraphicBlock/GraphicBlock.svelte'; export { default as Headline } from './components/Headline/Headline.svelte'; export { default as HeroHeadline } from './components/HeroHeadline/Hero.svelte'; -export { default as NoteText } from './components/NoteText/NoteText.svelte'; +export { default as EndNotes } from './components/EndNotes/EndNotes.svelte'; export { default as PaddingReset } from './components/PaddingReset/PaddingReset.svelte'; export { default as PhotoCarousel } from './components/PhotoCarousel/PhotoCarousel.svelte'; export { default as PhotoPack } from './components/PhotoPack/PhotoPack.svelte';