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

Feat/#77 회사 등록 페이지 구현 #78

Merged
merged 4 commits into from
Oct 28, 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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta, StoryObj } from '@storybook/react';
import { EmployeeContract } from './EmployeeContract';
import EmployeeContract from './EmployeeContract';

const meta: Meta<typeof EmployeeContract> = {
title: 'pages/EmployeeContract',
Expand Down
4 changes: 2 additions & 2 deletions src/pages/contract/EmployeeContract/EmployeeContract.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Button, Flex, Input, Typo } from '@/components/common';
import Layout from '@/features/layout';
import styled from '@emotion/styled';

export const EmployeeContract = () => {
export default function EmployeeContract() {
return (
<Layout>
<section>
Expand Down Expand Up @@ -151,7 +151,7 @@ export const EmployeeContract = () => {
</section>
</Layout>
);
};
}

const LineWrapper = styled.div`
border: 1px solid #e9e9e9;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta, StoryObj } from '@storybook/react';
import { EmployerContract } from './EmployerContract';
import EmployerContract from './EmployerContract';

const meta: Meta<typeof EmployerContract> = {
title: 'pages/EmployerContract',
Expand Down
4 changes: 2 additions & 2 deletions src/pages/contract/EmployerContract/EmployerContract.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Button, Flex, Input, Typo } from '@/components/common';
import Layout from '@/features/layout';
import styled from '@emotion/styled';

export const EmployerContract = () => {
export default function EmployerContract() {
return (
<Layout>
<section>
Expand Down Expand Up @@ -152,7 +152,7 @@ export const EmployerContract = () => {
</section>
</Layout>
);
};
}

const LineWrapper = styled.div`
border: 1px solid #e9e9e9;
Expand Down
14 changes: 14 additions & 0 deletions src/pages/registerCompany/RegisterCompany.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Meta, StoryObj } from '@storybook/react';
import RegisterCompany from './RegisterCompany';

const meta: Meta<typeof RegisterCompany> = {
title: 'pages/RegisterCompany',
component: RegisterCompany,
tags: ['autodocs'],
};

export default meta;

type Story = StoryObj<typeof RegisterCompany>;

export const Default: Story = {};
74 changes: 74 additions & 0 deletions src/pages/registerCompany/RegisterCompany.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import { Button, Flex, Input, Typo } from '@/components/common';
import Layout from '@/features/layout';
import styled from '@emotion/styled';

export default function RegisterCompany() {
return (
<Layout>
<section>
<Flex direction="column" alignItems="center">
<LineWrapper>
<Flex direction="column" justifyContent="space-between" alignItems="center" style={{ width: '100%' }}>
<Typo element="h1" size="24px" style={{ fontWeight: 'bold', marginBottom: '24px' }}>
회사 등록
</Typo>
<InputWrapper>
<InputContainer>
<Input
label="회사 이미지 업로드(선택)"
type="file"
// style={{ width: '570px', height: '48px' }}
></Input>
</InputContainer>
<InputContainer>
<Input label="회사명" style={{ width: '570px', height: '48px' }}></Input>
</InputContainer>
<InputContainer>
<Input label="업직종" style={{ width: '570px', height: '48px' }}></Input>
</InputContainer>
<InputContainer>
<Input label="브랜드" style={{ width: '570px', height: '48px' }}></Input>
</InputContainer>
<InputContainer>
<Input label="연 평균 매출액" style={{ width: '570px', height: '48px' }}></Input>
</InputContainer>
</InputWrapper>
<ButtonWrapper>
<Button design="default" style={{}}>
등록하기
</Button>
</ButtonWrapper>
</Flex>
</LineWrapper>
</Flex>
</section>
</Layout>
);
}

const LineWrapper = styled.div`
border: 1px solid #e9e9e9;
border-radius: 3px;
padding: 100px 200px;
margin: 52px 0;
`;

const InputWrapper = styled.div`
margin-top: 28px;
`;

const InputContainer = styled.div`
width: 700px;
display: flex;
align-items: center;
justify-content: space-between;
margin: 24px 0;
`;

const ButtonWrapper = styled.div`
width: 700px;
display: flex;
align-items: center;
justify-content: center;
margin-top: 52px;
`;
1 change: 1 addition & 0 deletions src/routes/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const ROUTE_PATH = {
VISA_REGISTRATION: '/visa-registration',
MY_ACCOUNT,
REGISTERSIGN: '/registersign',
REGISTERCOMPANY: '/register-company',
} as const;

export default ROUTE_PATH;
2 changes: 2 additions & 0 deletions src/routes/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import Resume from '@/pages/resume/Resume';
import EmployerMyAccount from '@/pages/myAccount/employer';
import EmployeeMyPage from '@/pages/employee/myPage/EmployeeMyPage';
import RegisterSign from '@/pages/registerSign/RegisterSign';
import RegisterCompany from '@/pages/registerCompany/RegisterCompany';

export const router = createBrowserRouter([
{
Expand Down Expand Up @@ -46,6 +47,7 @@ export const router = createBrowserRouter([
{ path: ROUTE_PATH.RESUME, element: <Resume /> },
{ path: ROUTE_PATH.MY_ACCOUNT.EMPLOYER, element: <EmployerMyAccount /> },
{ path: ROUTE_PATH.REGISTERSIGN, element: <RegisterSign /> },
{ path: ROUTE_PATH.REGISTERCOMPANY, element: <RegisterCompany /> },
],
},
]);
Loading