diff --git a/src/components/ScrollerAnimate/Background.svelte b/src/components/ScrollerAnimate/Background.svelte deleted file mode 100644 index 8a37201..0000000 --- a/src/components/ScrollerAnimate/Background.svelte +++ /dev/null @@ -1,51 +0,0 @@ - - -{#each steps as step, i} - {#if showStep(i)} -
- -
- {/if} -{/each} - - diff --git a/src/components/ScrollerAnimate/Foreground.svelte b/src/components/ScrollerAnimate/Foreground.svelte deleted file mode 100644 index 9115e26..0000000 --- a/src/components/ScrollerAnimate/Foreground.svelte +++ /dev/null @@ -1,64 +0,0 @@ - - -{#each steps as step, i} -
- {#if step.foreground === '' || !step.foreground} - -
- {#if typeof step.altText === 'string'} -
- -
- {/if} - {:else} -
- {#if typeof step.foreground === 'string'} - - {:else} - - {/if} -
- {#if typeof step.altText === 'string'} -
- -
- {/if} - {/if} -
-{/each} - - diff --git a/src/components/ScrollerAnimate/ScrollerAnimate.svelte b/src/components/ScrollerAnimate/ScrollerAnimate.svelte new file mode 100644 index 0000000..e9e1eed --- /dev/null +++ b/src/components/ScrollerAnimate/ScrollerAnimate.svelte @@ -0,0 +1,186 @@ + + + + + {#snippet backgroundSnippet()} + + {/snippet} + + {#snippet foregroundSnippet()} +
+ {#each graphics as graphic} +
+ + + {''} + +
+ {/each} +
+ {/snippet} +
+
+ + diff --git a/src/components/ScrollerAnimate/Squash.svelte b/src/components/ScrollerAnimate/Squash.svelte new file mode 100644 index 0000000..7dddfdc --- /dev/null +++ b/src/components/ScrollerAnimate/Squash.svelte @@ -0,0 +1,95 @@ + + +{graphics[displayedIndex].alt} + + \ No newline at end of file diff --git a/src/components/ScrollerSquash/ScrollerSquash.svelte b/src/components/ScrollerSquash/ScrollerSquash.svelte deleted file mode 100644 index 531fb7c..0000000 --- a/src/components/ScrollerSquash/ScrollerSquash.svelte +++ /dev/null @@ -1,143 +0,0 @@ - - -
- - {#snippet backgroundSnippet()} - {graphics[displayedIndex].alt} - {/snippet} - - {#snippet foregroundSnippet()} - {#each graphics as graphic} -
- {#if graphic.title}

{graphic.title}

{/if} - {#if graphic.description}

{graphic.description}

{/if} - {#if graphic.notes}{/if} -
- {/each} - {/snippet} -
-
- - diff --git a/src/pages/Squash.svelte b/src/pages/Squash.svelte index d226dba..a8f6039 100644 --- a/src/pages/Squash.svelte +++ b/src/pages/Squash.svelte @@ -1,16 +1,12 @@ -
- - - {#snippet backgroundSnippet()} - - {/snippet} - - {#snippet foregroundSnippet()} - {#each graphics as graphic, i} -
- {#if graphic.title}

{graphic.title}

{/if} - {#if graphic.description}

{graphic.description}

{/if} - {#if graphic.notes}{/if} -
- {/each} - {/snippet} -
-
- - \ No newline at end of file + \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index fa8ee48..afb321a 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,6 +1,6 @@ --- import Layout from '../layouts/Layout.astro'; -import Squash from './Squash.svelte'; +import ScrollerAnimate from '@components/ScrollerAnimate/ScrollerAnimate.svelte'; import Article from '@components/Article/Article.svelte'; import BodyText from '@components/BodyText/BodyText.svelte'; @@ -35,7 +35,7 @@ const graphics = await Promise.all([ />
- +
diff --git a/src/pages/test.astro b/src/pages/test.astro deleted file mode 100644 index 85150d2..0000000 --- a/src/pages/test.astro +++ /dev/null @@ -1,22 +0,0 @@ ---- -import Layout from '../layouts/Layout.astro'; - -import Article from '@components/Article/Article.svelte'; -import BodyText from '@components/BodyText/BodyText.svelte'; -import Headline from '@components/Headline/Headline.svelte'; - - - - - ---- - - - -
- - -
-