From bb6eb10c1f147af167be4258c437a0a036249297 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 24 Aug 2021 23:03:50 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20`Footer`=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layouts/Footer.stories.jsx | 17 +++++++++++++++++ src/components/layouts/Footer.tsx | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/components/layouts/Footer.stories.jsx create mode 100644 src/components/layouts/Footer.tsx diff --git a/src/components/layouts/Footer.stories.jsx b/src/components/layouts/Footer.stories.jsx new file mode 100644 index 0000000..b9229f4 --- /dev/null +++ b/src/components/layouts/Footer.stories.jsx @@ -0,0 +1,17 @@ +import * as React from "react" +import * as ReactDOM from "react-dom" +import * as Decorators from "../../utils/Decorators" +import { Footer as FooterComponent } from "./Footer" + + +export default { + component: FooterComponent, + title: "Layouts/Footer", + decorators: [Decorators.Bluelib], +} + + +export const Footer = props => ( + © 2021 Stefano Pigozzi +) +Footer.args = {} diff --git a/src/components/layouts/Footer.tsx b/src/components/layouts/Footer.tsx new file mode 100644 index 0000000..4e17b3a --- /dev/null +++ b/src/components/layouts/Footer.tsx @@ -0,0 +1,17 @@ +import * as React from "react" +import * as ReactDOM from "react-dom" +import * as Types from "../../types" +import {BaseElement} from "../BaseElement" +import mergeClassNames from "classnames" + + +export interface FooterProps extends Types.BluelibHTMLProps {} + + +export function Footer({...props}: FooterProps): JSX.Element { + props.bluelibClassNames = mergeClassNames(props.bluelibClassNames, "page-footer") + + return ( + + ) +}