Skip to content

Commit

Permalink
Merge pull request #3 from fre-ben/header
Browse files Browse the repository at this point in the history
header
  • Loading branch information
fre-ben authored Feb 13, 2021
2 parents 288a88f + 0a2065f commit b5e2fe6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<!-- https://storybook.js.org/docs/configurations/add-custom-head-tags/#docs-content -->
<script
src="https://kit.fontawesome.com/d1f1f68cc2.js"
crossorigin="anonymous"
></script>
Empty file.
10 changes: 10 additions & 0 deletions src/components/header/header.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import "./header.css";
import { displayHeader } from "./header";
import { createElement } from "../../utils/createElement";

export default {
title: "Components/Header",
parameters: { layout: "centered" },
};

export const header = () => displayHeader();
8 changes: 8 additions & 0 deletions src/components/header/header.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { createElement } from "../../utils/createElement";

export function displayHeader() {
return createElement("h1", {
className: "header",
innerHTML: `CATLINEZ <i class="fas fa-paw"></i> <i class="far fa-newspaper"></i>`,
});
}

1 comment on commit b5e2fe6

@vercel
Copy link

@vercel vercel bot commented on b5e2fe6 Feb 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.