Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] 테스트 서버 색상 수정 #975

Merged
merged 4 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions frontend/src/components/PairRoom/GuideModal/GuideModal.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import type { Meta, StoryObj } from '@storybook/react';

import GuideModal from '@/components/PairRoom/GuideModal/GuideModal';

const ACCESS_CODE = 'CODUO';

const meta = {
title: 'component/PairRoom/GuideModal',
component: GuideModal,

argTypes: {
isOpen: {
control: 'boolean',
},
},
} satisfies Meta<typeof GuideModal>;

export default meta;

type Story = StoryObj<typeof GuideModal>;

export const Default: Story = {
args: {
isOpen: true,
accessCode: ACCESS_CODE,
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import type { Meta, StoryObj } from '@storybook/react';

import CompleteRoomButton from '@/components/PairRoom/PairListCard/CompleteRoomButton/CompleteRoomButton';

import useUserStore from '@/stores/userStore';

const USER_NAME = 'CODUO';

const meta = {
title: 'component/PairRoom/PairListCard/CompleteRoomButton',
component: CompleteRoomButton,
decorators: [
(Story) => {
const { setUser } = useUserStore.getState();
setUser(USER_NAME, 'SIGNED_IN');

return <Story />;
},
],
argTypes: {
isOpen: {
control: 'boolean',
},
},
} satisfies Meta<typeof CompleteRoomButton>;

export default meta;

type Story = StoryObj<typeof CompleteRoomButton>;

export const LoggedIn: Story = {
args: {
isOpen: true,
},
};

export const ClosedLoggedIn: Story = {
args: {
isOpen: false,
},
};

export const LoggedOut: Story = {
decorators: [
(Story) => {
const { resetUser } = useUserStore.getState();
resetUser();
return <Story />;
},
],
args: {
isOpen: true,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export const Layout = styled.button<{ disabled: boolean }>`
margin-top: auto;
border-radius: 0 0 2rem 2rem;

background-color: ${({ theme, disabled }) => (disabled ? theme.color.black[100] : theme.color.danger[200])};
color: ${({ theme, disabled }) => (disabled ? theme.color.black[400] : theme.color.danger[600])};
background-color: ${({ theme, disabled }) => (disabled ? theme.color.black[100] : theme.color.danger[100])};
color: ${({ theme, disabled }) => (disabled ? theme.color.black[400] : theme.color.danger[500])};
Comment on lines +20 to +21
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

font-size: ${({ theme }) => theme.fontSize.base};
text-overflow: ellipsis;
white-space: nowrap;
Expand Down
14 changes: 14 additions & 0 deletions frontend/src/components/Retrospect/Textarea/Textarea.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Meta, StoryObj } from '@storybook/react';

import Textarea from '@/components/Retrospect/Textarea/Textarea';

const meta = {
title: 'component/Retrospect/Textarea',
component: Textarea,
} satisfies Meta<typeof Textarea>;

export default meta;

type Story = StoryObj<typeof Textarea>;

export const Default: Story = {};
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const PairInfoWrapper = styled.div`
padding: 1.2rem 1.5rem;
border-radius: 1rem;

background-color: ${({ theme }) => theme.color.black[300]};
background-color: ${({ theme }) => theme.color.black[200]};
color: ${({ theme }) => theme.color.black[700]};
font-size: ${({ theme }) => theme.fontSize.base};
font-weight: ${({ theme }) => theme.fontWeight.medium};
Expand Down
Loading