Skip to content

Commit

Permalink
feat: 회원가입 ui 완성 (#21)
Browse files Browse the repository at this point in the history
* feat: 회원가입 ui 완성
* chore: @mui/material 설치
* fix: img import ts 오류 해결
  • Loading branch information
Yejin0O0 authored Jul 31, 2024
1 parent bbc38a1 commit cff390b
Show file tree
Hide file tree
Showing 9 changed files with 145 additions and 42 deletions.
69 changes: 28 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.13.0",
"@libsql/client": "^0.7.0",
"@mui/material": "^5.16.6",
"@mui/material-nextjs": "^5.16.4",
"@reduxjs/toolkit": "^2.2.7",
"@tanstack/react-query": "^5.51.15",
Expand Down
10 changes: 10 additions & 0 deletions src/app/signup/SignupPage.styled.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import styled from '@emotion/styled';

export const SignupPage = styled.div`
width: 100vw;
height: 100vh;
display: flex;
flex-direction; column;
justify-content: center;
align-items: center;
`;
12 changes: 12 additions & 0 deletions src/app/signup/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use client';

import SignupSection from '@/components/signup/index';
import * as S from './SignupPage.styled';

export default function Signup() {
return (
<S.SignupPage>
<SignupSection />
</S.SignupPage>
);
}
Binary file added src/assets/images/sumtimeLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/components/signup/Signup.styled.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import styled from '@emotion/styled';

export const SignupSection = styled.div`
width: 450px;
height: 500px;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
`;

export const SignupInputDiv = styled.div`
width: 300px;
`;

export const SignupTitle = styled.p`
width: 350px;
font-size: 15px;
`;

export const SignupLogo = styled.img`
width: 200px;
cursor: pointer;
`;
65 changes: 65 additions & 0 deletions src/components/signup/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
'use client';

import Button from '@mui/material/Button';
import TextField from '@mui/material/TextField';
import logo from '@/assets/images/sumtimeLogo.png';
import * as S from './Signup.styled';

function SignupSection() {
// const [validation, setValidation] = useState(true);

return (
<S.SignupSection>
<S.SignupLogo src={logo.src} alt="logo" />

<S.SignupInputDiv>
<TextField
// error={!validation}
fullWidth
id="outlined-error-helper-text"
label="email"
// helperText={validation ? '' : '올바른 형식의 이메일을 입력해주세요'}
variant="standard"
type="email"
/>
</S.SignupInputDiv>
<S.SignupInputDiv>
<TextField
// error={!validation}
fullWidth
id="outlined-error-helper-text"
label="비밀번호"
// helperText={validation ? '' : '올바른 형식의 비밀번호를 입력해주세요'}
variant="standard"
type="password"
/>
</S.SignupInputDiv>
<S.SignupInputDiv>
<TextField
// error={!validation}
fullWidth
id="outlined-error-helper-text"
label="비밀번호 확인"
// helperText={validation ? '' : '비밀번호가 일치하지 않습니다'}
variant="standard"
type="password"
/>
</S.SignupInputDiv>
<S.SignupInputDiv>
<TextField
// error={!validation}
fullWidth
id="outlined-error-helper-text"
label="닉네임"
// helperText={validation ? '' : '0자 이내만 입력 가능합니다'}
variant="standard"
type="text"
/>
</S.SignupInputDiv>

<Button variant="outlined">회원가입</Button>
</S.SignupSection>
);
}

export default SignupSection;
3 changes: 3 additions & 0 deletions src/types/images.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module '*.png';
declare module '*.jpg';
declare module '*.jpeg';
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "next.config.mjs"],
"exclude": ["node_modules"]
"exclude": ["node_modules"],
"typeRoots": ["src/types"]
}

0 comments on commit cff390b

Please sign in to comment.