From 5fba44a85cde81a17c40e620a74afed1427f5d4d Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Thu, 12 Jan 2023 11:13:36 -0500 Subject: [PATCH] Add main campaigns component --- histoire.config.js | 2 +- src/lib/components/Campaigns.story.svelte | 13 ++++++++ src/lib/components/Campaigns.svelte | 40 +++++++++++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 src/lib/components/Campaigns.story.svelte create mode 100644 src/lib/components/Campaigns.svelte diff --git a/histoire.config.js b/histoire.config.js index a4288f9..f29a781 100644 --- a/histoire.config.js +++ b/histoire.config.js @@ -2,5 +2,5 @@ import { defineConfig } from 'histoire'; import { HstSvelte } from '@histoire/plugin-svelte'; export default defineConfig({ - plugins: [HstSvelte()] + plugins: [HstSvelte()], }); diff --git a/src/lib/components/Campaigns.story.svelte b/src/lib/components/Campaigns.story.svelte new file mode 100644 index 0000000..44bd31c --- /dev/null +++ b/src/lib/components/Campaigns.story.svelte @@ -0,0 +1,13 @@ + + + + + + + diff --git a/src/lib/components/Campaigns.svelte b/src/lib/components/Campaigns.svelte new file mode 100644 index 0000000..bb94bd3 --- /dev/null +++ b/src/lib/components/Campaigns.svelte @@ -0,0 +1,40 @@ +
+
+
Campaigns
+ +
+ + {#each campaigns as campaign (campaign.name)} +
+ south_america +
+
{campaign.name}
+

chapter 2, second battle.

+
+ +
+ {/each} +
+ + + +