From 346d1483f0bb91398b59cdc3f10577d83ab27b6d Mon Sep 17 00:00:00 2001
From: Tilly Woodfield <22456167+tillywoodfield@users.noreply.github.com>
Date: Wed, 18 Dec 2024 10:58:00 +0200
Subject: [PATCH] docs: refactor footer docs to be a single page
---
.storybook/preview.ts | 1 +
src/scss/components/footer/Docs.mdx | 31 +++
.../footer-block/footer-block.stories.ts | 53 -----
src/scss/components/footer/footer.stories.ts | 186 ++++++++++++------
src/scss/layout/page/page.stories.ts | 4 +-
5 files changed, 159 insertions(+), 116 deletions(-)
create mode 100644 src/scss/components/footer/Docs.mdx
delete mode 100644 src/scss/components/footer/footer-block/footer-block.stories.ts
diff --git a/.storybook/preview.ts b/.storybook/preview.ts
index b07bb96..58bb0ec 100644
--- a/.storybook/preview.ts
+++ b/.storybook/preview.ts
@@ -8,6 +8,7 @@ const preview: Preview = {
parameters: {
options: {
storySort: {
+ method: "alphabetical",
order: [
"Get Started",
"Installation",
diff --git a/src/scss/components/footer/Docs.mdx b/src/scss/components/footer/Docs.mdx
new file mode 100644
index 0000000..2ab8136
--- /dev/null
+++ b/src/scss/components/footer/Docs.mdx
@@ -0,0 +1,31 @@
+import { Meta, Title, Canvas } from "@storybook/blocks";
+
+import * as ComponentStories from "./footer.stories";
+
+
+
+
+
+### Full Footer
+
+{/* TODO: Documentation about the footer */}
+
+
+
+### Useful Links Section
+
+{/* TODO: Documentation for this section */}
+
+
+
+### Additional Information Section
+
+{/* TODO: Documentation for this section */}
+
+
+
+### Legal Section
+
+{/* TODO: Documentation for this section */}
+
+
diff --git a/src/scss/components/footer/footer-block/footer-block.stories.ts b/src/scss/components/footer/footer-block/footer-block.stories.ts
deleted file mode 100644
index cab1361..0000000
--- a/src/scss/components/footer/footer-block/footer-block.stories.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-import type { Meta, StoryObj } from "@storybook/web-components";
-
-import { html } from "lit";
-
-const meta: Meta = {
- title: "Components/Footer/Footer Block",
- parameters: {
- backgrounds: {
- default: "dark",
- },
- },
-};
-
-export default meta;
-type Story = StoryObj;
-
-export const UsefulLinks: Story = {
- render: () =>
- html``,
-};
-
-export const AdditionInfo: Story = {
- render: () =>
- html``,
-};
diff --git a/src/scss/components/footer/footer.stories.ts b/src/scss/components/footer/footer.stories.ts
index de8ef77..3242a0e 100644
--- a/src/scss/components/footer/footer.stories.ts
+++ b/src/scss/components/footer/footer.stories.ts
@@ -8,17 +8,6 @@ import {
X,
Youtube,
} from "../../components/icon/icon.stories";
-import { Default as NewsletterForm } from "../../components/newsletter-form/newsletter-form.stories";
-import {
- AdditionInfo as AdditionalInfoFooterBlock,
- UsefulLinks as UsefulLinksFooterBlock,
-} from "./footer-block/footer-block.stories";
-
-const legalNavItems = [
- html`Privacy`,
- html`Data removal`,
- html`© Copyright IATI 2024. All rights reserved`,
-];
const meta: Meta = {
title: "Components/Footer",
@@ -30,61 +19,136 @@ const meta: Meta = {
export default meta;
type Story = StoryObj;
-export const Footer: Story = {
- render: (args) => html`
-