Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 00988f3

Browse files
authored
Hamburger menu responsive (#81) 🚀
* Minor fix 🚀 * Added hamburger menu 🚀 * First hamburger menu raw implementation 🚀 * Added new art menu item + fixed height ✨ * added overlay and animation 🚀 * Fixed desktop styles ✨ * raw csstransition animation 🚀 * Animation with react transition group 🚀 * styled icons complete package 🚀 * Added button to storybook 🚀 * Improving animations ✨ * Menu complted ✨ * Menu ready for production 🚀
1 parent 7de16b3 commit 00988f3

20 files changed

+1056
-107
lines changed

__stories__/atoms/icon.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { Icon } from "../../src/components/design-system/atoms/icon";
3-
import { Github } from "@styled-icons/fa-brands";
43
import { Meta } from "@storybook/react";
4+
import { Github } from "styled-icons/boxicons-logos";
55

66
export const IconContainer: React.VFC = () => (
77
<Icon>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from "react";
2+
import { Meta } from "@storybook/react";
3+
import { Overlay } from "../../src/components/design-system/atoms/overlay";
4+
import { Paragraph } from "../../src/components/design-system/atoms/paragraph";
5+
6+
export const Standard: React.VFC = () => (
7+
<>
8+
<Overlay zIndex={100} delay={"0.25s"} />
9+
<Paragraph>
10+
{"An overlay covers 100% of the visible contain with opacity"}
11+
</Paragraph>
12+
</>
13+
);
14+
15+
export default {
16+
title: "Atoms/Overlay",
17+
component: Overlay,
18+
} as Meta;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from "react";
2+
import { Meta } from "@storybook/react";
3+
import { Close } from "../../src/components/design-system/molecules/close";
4+
5+
export const CloseContainer: React.VFC = () => (
6+
<Close onClick={() => alert("click")} />
7+
);
8+
9+
// @ts-ignore
10+
CloseContainer.storyName = "Close";
11+
12+
export default {
13+
title: "Molecules",
14+
component: Close,
15+
} as Meta;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from "react";
2+
import { Meta } from "@storybook/react";
3+
import { HamburgerMenu } from "../../src/components/design-system/molecules/hamburger-menu";
4+
5+
export const HamburgerMenuContainer: React.VFC = () => (
6+
<HamburgerMenu onClick={() => alert("click")} />
7+
);
8+
9+
// @ts-ignore
10+
HamburgerMenuContainer.storyName = "Hamburger Menu";
11+
12+
export default {
13+
title: "Molecules",
14+
component: HamburgerMenu,
15+
} as Meta;

__stories__/molecules/social-contact.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
SocialContact,
55
SocialContactProps,
66
} from "../../src/components/design-system/molecules/social-contact";
7-
import { Linkedin } from "@styled-icons/fa-brands";
7+
import { Linkedin } from "styled-icons/boxicons-logos";
88

99
const Template: Story<SocialContactProps> = (args) => (
1010
<SocialContact {...args} />

__stories__/templates/blog-generic-post-list-page.stories.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import { Meta, Story } from "@storybook/react";
33
import { BlogPage } from "../../src/components/design-system/templates/blog-page";
44
import {
55
BlogGenericPostListPage,
6-
BlogGenericPostListPageProps,
6+
BlogGenericPostListPageProps
77
} from "../../src/components/design-system/templates/blog-generic-post-list-page";
8+
import { OgPageType } from "../../src/logic/seo";
89

910
export const BlogGenericPostListPagePageStory: Story<BlogGenericPostListPageProps> = (
1011
args
@@ -135,7 +136,7 @@ BlogGenericPostListPagePageStory.args = {
135136
pathname: "/blog/archive/",
136137
url: "http://localhost:8000/blog/archive/",
137138
},
138-
ogPageType: "WebSite",
139+
ogPageType: OgPageType.WebSite,
139140
ogImage: "/a-photo.jpg",
140141
trackingCategory: "archive",
141142
};

0 commit comments

Comments
 (0)