- Forgot password?
+ Forgot password?
-
+
계정이 없으신가요? 회원가입
From c659625743b587f0543fcf4f74bbf53cfe0eacef Mon Sep 17 00:00:00 2001
From: Jungu Lee <1zzangjun@gmail.com>
Date: Sun, 5 Nov 2023 03:42:17 +0900
Subject: [PATCH 3/4] =?UTF-8?q?New=20:=20Typography=20=EB=AC=B8=EC=84=9C?=
=?UTF-8?q?=ED=99=94?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Input}/Button.stories.tsx | 2 +-
.../Design_system/Typography.stories.tsx | 89 +++++++++++++++++++
2 files changed, 90 insertions(+), 1 deletion(-)
rename client/src/stories/{ => Design_system/Input}/Button.stories.tsx (95%)
create mode 100644 client/src/stories/Design_system/Typography.stories.tsx
diff --git a/client/src/stories/Button.stories.tsx b/client/src/stories/Design_system/Input/Button.stories.tsx
similarity index 95%
rename from client/src/stories/Button.stories.tsx
rename to client/src/stories/Design_system/Input/Button.stories.tsx
index 5c212fe..991b28f 100644
--- a/client/src/stories/Button.stories.tsx
+++ b/client/src/stories/Design_system/Input/Button.stories.tsx
@@ -2,7 +2,7 @@ import { Button, ButtonProps as MuiButtonProps } from "@mui/material";
import { Meta, StoryObj } from "@storybook/react";
const meta = {
- title: "Design system/Button",
+ title: "Design system/Input/Button",
component: Button,
tags: ["autodocs"],
argTypes: {
diff --git a/client/src/stories/Design_system/Typography.stories.tsx b/client/src/stories/Design_system/Typography.stories.tsx
new file mode 100644
index 0000000..b9f3593
--- /dev/null
+++ b/client/src/stories/Design_system/Typography.stories.tsx
@@ -0,0 +1,89 @@
+import { Typography } from "@mui/material";
+import { Meta, StoryObj } from "@storybook/react";
+const meta = {
+ title: "Design system/Typography",
+ component: Typography,
+ tags: ["autodocs"],
+ argTypes: {
+ variant: {
+ options: [
+ "h1",
+ "h2",
+ "subtitle1",
+ "subtitle2",
+ "body",
+ "button",
+ "label",
+ "caption",
+ ],
+ default: "body",
+ control: { type: "select" },
+ },
+ },
+ decorators: [
+ (Story, ctx) => {
+ return (
+
+
+ {ctx.args.children}
+
+
+
+ );
+ },
+ ],
+} satisfies Meta;
+
+export default meta;
+type Story = StoryObj;
+
+export const Heading1: Story = {
+ args: {
+ variant: "h1",
+ children: "오늘은 이거다 주酒, D-SHOT, DA(alcohol)ily",
+ },
+};
+
+export const Heading2: Story = {
+ args: {
+ ...Heading1.args,
+ variant: "h2",
+ },
+};
+
+export const Subtitle1: Story = {
+ args: {
+ ...Heading1.args,
+ variant: "subtitle1",
+ },
+};
+export const Subtitle2: Story = {
+ args: {
+ ...Heading1.args,
+ variant: "subtitle1",
+ },
+};
+export const Body1: Story = {
+ args: {
+ ...Heading1.args,
+ variant: "body1",
+ },
+};
+export const Button: Story = {
+ args: {
+ ...Heading1.args,
+ variant: "button",
+ },
+};
+export const Label: Story = {
+ args: {
+ ...Heading1.args,
+ variant: "label",
+ },
+};
+export const Caption: Story = {
+ args: {
+ ...Heading1.args,
+ variant: "caption",
+ },
+};
From 24ca1e0d2879eb4682f8300a709b70f4af6b3327 Mon Sep 17 00:00:00 2001
From: Jungu Lee <1zzangjun@gmail.com>
Date: Sun, 5 Nov 2023 03:42:58 +0900
Subject: [PATCH 4/4] =?UTF-8?q?Refactor=20:=20Storybook=20CD=20=EA=B0=9C?=
=?UTF-8?q?=EC=84=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
client/.dockerignore | 2 ++
1 file changed, 2 insertions(+)
diff --git a/client/.dockerignore b/client/.dockerignore
index 72e9aa4..2d2dc83 100644
--- a/client/.dockerignore
+++ b/client/.dockerignore
@@ -1,5 +1,7 @@
Dockerfile
.dockerignore
+storybook.Dockerfile
+storybook-static
node_modules
npm-debug.log
README.md