Skip to content

Commit 1de512b

Browse files
authored
[박인건] Sprint7, Sprint8 (#313)
* sprint5 미션 * sprint5 피드백, sprint6 * chore: 로그인 및 메인 페이지 이미지 추가 * style: 로그인 작업을 위한 css 추가 * feat: 로그인 기능 추가 * feat: 로그인 API 추가 * refactor: jsx -> tsx로 변환 * feat: 로그인, 회원가입 페이지 추가 * refactor: jsx -> tsx로 변환 * build: typescript 셋팅 * feat: 로그인 기능과 연결된 pages 추가 * feat: 메인 페이지 추가 * style: 빈 이미지 default 파일, kebab 버튼 이미지 추가 * feat: 상품 상세보기 기능 및 페이지 추가 * feat: 404에러 페이지 추가 * build: typescript, vite 관련 설정 추가 * feat: Main을 tsx파일로 import * chore: tsx 파일로 변환되면서 파일 삭제
1 parent 035c5c5 commit 1de512b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+4564
-1223
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24+

README.md

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +0,0 @@
1-
# Getting Started with Create React App
2-
3-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4-
5-
## Available Scripts
6-
7-
In the project directory, you can run:
8-
9-
### `npm start`
10-
11-
Runs the app in the development mode.\
12-
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
13-
14-
The page will reload when you make changes.\
15-
You may also see any lint errors in the console.
16-
17-
### `npm test`
18-
19-
Launches the test runner in the interactive watch mode.\
20-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21-
22-
### `npm run build`
23-
24-
Builds the app for production to the `build` folder.\
25-
It correctly bundles React in production mode and optimizes the build for the best performance.
26-
27-
The build is minified and the filenames include the hashes.\
28-
Your app is ready to be deployed!
29-
30-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31-
32-
### `npm run eject`
33-
34-
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
35-
36-
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37-
38-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
39-
40-
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
41-
42-
## Learn More
43-
44-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45-
46-
To learn React, check out the [React documentation](https://reactjs.org/).
47-
48-
### Code Splitting
49-
50-
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51-
52-
### Analyzing the Bundle Size
53-
54-
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55-
56-
### Making a Progressive Web App
57-
58-
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59-
60-
### Advanced Configuration
61-
62-
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63-
64-
### Deployment
65-
66-
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67-
68-
### `npm run build` fails to minify
69-
70-
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

css/login.css

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
2+
3+
:root {
4+
--blue : #3692FF;
5+
--gray900: #111827;
6+
--gray800: #1F2937;
7+
--gray700: #374151;
8+
--gray600: #4B5563;
9+
--gray500: #6B7289;
10+
--gray400: #9CA3AF;
11+
--gray200: #E5E7EB;
12+
--gray100: #F3F4F6;
13+
--gray50: #F9FAFB;
14+
}
15+
16+
* {
17+
font-family: Pretendard;
18+
}
19+
20+
main {
21+
display: flex;
22+
flex-direction: column;
23+
justify-content: center;
24+
align-items: center;
25+
26+
gap: 40px;
27+
margin: 231px 640px;
28+
}
29+
30+
.loginForm {
31+
min-width: 640px;
32+
}
33+
34+
.login h3 {
35+
color: var(--gray800);
36+
font-size: 18px;
37+
font-weight: 700;
38+
margin-bottom: 16px;
39+
}
40+
41+
.login input{
42+
background-color: var(--gray100);
43+
44+
border-radius: 12px;
45+
border-style: none;
46+
47+
min-width: 592px;
48+
min-height: 26px;
49+
50+
padding: 15px 24px;
51+
}
52+
53+
.signup input:focus{
54+
border: 2px solid var(--blue);
55+
outline: none;
56+
}
57+
58+
.login input::placeholder {
59+
color: var(--gray400);
60+
font-size: 16px;
61+
font-weight: 400;
62+
}
63+
64+
.pw {
65+
position: relative;
66+
}
67+
68+
.pw img {
69+
position: absolute;
70+
top: 53px;
71+
right: 24px;
72+
}
73+
74+
.login button {
75+
font-size: 20px;
76+
font-weight: 600;
77+
text-align: center;
78+
color: var(--gray100);
79+
background-color: var(--gray400);
80+
81+
min-width: 640px;
82+
min-height: 56px;
83+
84+
padding: 16px 124px;
85+
86+
border-radius: 40px;
87+
border-style: none;
88+
89+
margin: 16px 0;
90+
cursor: pointer;
91+
}
92+
93+
.easyLogin {
94+
background-color: #E6F2FF;
95+
height: 74px;
96+
}
97+
98+
.easyLogin-form {
99+
display: flex;
100+
justify-content: space-between;
101+
align-items: center;
102+
103+
padding: 16px 23px;
104+
}
105+
106+
.easyLogin-title > p {
107+
color: var(--gray800);
108+
font-size: 16px;
109+
font-weight: 500;
110+
}
111+
112+
.loginType {
113+
/* padding: 16px 23px; */
114+
}
115+
116+
.signup {
117+
display: flex;
118+
justify-content: center;
119+
align-items: center;
120+
121+
/* margin-top: 50px; */
122+
}

css/signup.css

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
2+
3+
:root {
4+
--blue : #3692FF;
5+
--gray900: #111827;
6+
--gray800: #1F2937;
7+
--gray700: #374151;
8+
--gray600: #4B5563;
9+
--gray500: #6B7289;
10+
--gray400: #9CA3AF;
11+
--gray200: #E5E7EB;
12+
--gray100: #F3F4F6;
13+
--gray50: #F9FAFB;
14+
}
15+
16+
* {
17+
font-family: Pretendard;
18+
}
19+
20+
main {
21+
display: flex;
22+
flex-direction: column;
23+
justify-content: center;
24+
align-items: center;
25+
26+
gap: 40px;
27+
margin: 231px 640px;
28+
}
29+
30+
.signupForm {
31+
min-width: 640px;
32+
}
33+
34+
.signup h3 {
35+
color: var(--gray800);
36+
font-size: 18px;
37+
font-weight: 700;
38+
margin-bottom: 16px;
39+
}
40+
41+
.signup input{
42+
background-color: var(--gray100);
43+
44+
border-radius: 12px;
45+
border-style: none;
46+
47+
min-width: 592px;
48+
min-height: 26px;
49+
50+
padding: 15px 24px;
51+
}
52+
53+
.signup input:focus{
54+
border: 2px solid var(--blue);
55+
outline: none;
56+
}
57+
58+
.signup input::placeholder {
59+
color: var(--gray400);
60+
font-size: 16px;
61+
font-weight: 400;
62+
}
63+
64+
.pw, .confirmPw {
65+
position: relative;
66+
}
67+
68+
.pw img, .confirmPw img {
69+
position: absolute;
70+
top: 53px;
71+
right: 24px;
72+
}
73+
74+
.signup button {
75+
font-size: 20px;
76+
font-weight: 600;
77+
text-align: center;
78+
color: var(--gray100);
79+
background-color: var(--gray400);
80+
81+
min-width: 640px;
82+
min-height: 56px;
83+
84+
padding: 16px 124px;
85+
86+
border-radius: 40px;
87+
border-style: none;
88+
89+
margin: 16px 0;
90+
cursor: pointer;
91+
}
92+
93+
.easyLogin {
94+
background-color: #E6F2FF;
95+
height: 74px;
96+
}
97+
98+
.easyLogin-form {
99+
display: flex;
100+
justify-content: space-between;
101+
align-items: center;
102+
103+
padding: 16px 23px;
104+
}
105+
106+
.easyLogin-title > p {
107+
color: var(--gray800);
108+
font-size: 16px;
109+
font-weight: 500;
110+
}
111+
112+
.loginType {
113+
/* padding: 16px 23px; */
114+
}
115+
116+
.login {
117+
display: flex;
118+
justify-content: center;
119+
align-items: center;
120+
121+
/* margin-top: 50px; */
122+
}

images/login/google_Icon.png

1.57 KB
Loading

images/login/kakao_Icon.png

1.43 KB
Loading

images/login/logo_large.png

6.5 KB
Loading

images/login/visibility_btn.png

826 Bytes
Loading

images/main/bottom_image.png

65.8 KB
Loading

images/main/facebook_icon.png

387 Bytes
Loading

0 commit comments

Comments
 (0)