Skip to content

Commit

Permalink
#2 회원가입 페이지 틀 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeiis committed Nov 15, 2023
1 parent 2fdcb02 commit 89ecdbd
Show file tree
Hide file tree
Showing 18 changed files with 16,295 additions and 6,849 deletions.
22,732 changes: 16,027 additions & 6,705 deletions react-page/package-lock.json

Large diffs are not rendered by default.

35 changes: 30 additions & 5 deletions react-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,34 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.18",
"@mui/material": "^5.14.18",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.61",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"sass": "^1.69.5",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
"react-app/jest",
"plugin:storybook/recommended"
]
},
"browserslist": {
Expand All @@ -39,5 +44,25 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-interactions": "^7.5.3",
"@storybook/addon-links": "^7.5.3",
"@storybook/addon-onboarding": "^1.0.8",
"@storybook/blocks": "^7.5.3",
"@storybook/preset-create-react-app": "^7.5.3",
"@storybook/react": "^7.5.3",
"@storybook/react-webpack5": "^7.5.3",
"@storybook/testing-library": "^0.2.2",
"@types/node": "^20.9.0",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@types/styled-components": "^5.1.30",
"babel-plugin-named-exports-order": "^0.0.2",
"eslint-plugin-storybook": "^0.6.15",
"prop-types": "^15.8.1",
"storybook": "^7.5.3",
"webpack": "^5.89.0"
}
}
47 changes: 18 additions & 29 deletions react-page/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,28 @@
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
<style>
html {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
body {
width: 100%;
height: 100%;
}
#root {
width: 100%;
height: 100%;
}
</style>

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>옷늘날씨</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
38 changes: 0 additions & 38 deletions react-page/src/App.css

This file was deleted.

9 changes: 0 additions & 9 deletions react-page/src/App.test.tsx

This file was deleted.

23 changes: 4 additions & 19 deletions react-page/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
import React from 'react';
import logo from './logo.svg';
import './App.css';
import Register from "component/Register";

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
<>
<Register />
</>
);
}

Expand Down
7 changes: 7 additions & 0 deletions react-page/src/component/Feed.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Feed() {
return (
<>
<div>Feed</div>
</>
);
}
7 changes: 7 additions & 0 deletions react-page/src/component/Loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Loading() {
return (
<>
<div>Loading</div>
</>
);
}
7 changes: 7 additions & 0 deletions react-page/src/component/MyPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function MyPage() {
return (
<>
<div>MyPage</div>
</>
);
}
39 changes: 36 additions & 3 deletions react-page/src/component/Register.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,40 @@
import CloseIcon from "@mui/icons-material/Close";
import "../style/register.scss";

export default function Register() {
return (
<>
<div>Register</div>
</>
<div id="container">
<div id="x-div">
<CloseIcon id="x" />
</div>
<hr />
<section id="main">
<p>회원가입</p>
<form>
{/* 이메일 👉🏻 이메일 형식 유효성 검사*/}
<label htmlFor="email">이메일</label>
<div>
<input type="email" id="email" />
<button id="btn_verify">인증</button>
</div>
{/* 이름*/}
<label htmlFor="name">이름</label>
<input type="text" id="name" />
{/* 닉네임 👉🏻 중복검사*/}
<label htmlFor="nickname">닉네임</label>
<input type="text" id="nickname" />
{/* 비밀번호 👉🏻 중복검사 & 유효성 검사*/}
<label htmlFor="password">비밀번호</label>
<input
type="password"
id="password"
placeholder="비밀번호(8~20자 영문, 숫자, 특수기호 조합)"
/>
<input type="password" id="re-password" placeholder="비밀번호 확인" />
<button id="btn_register">옷늘 캐스터 등록</button>
</form>
</section>
<footer></footer>
</div>
);
}
7 changes: 7 additions & 0 deletions react-page/src/component/Upload.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Upload() {
return (
<>
<div>Upload</div>
</>
);
}
18 changes: 6 additions & 12 deletions react-page/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";

const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
document.getElementById("root") as HTMLElement,
);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
</React.StrictMode>,
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
1 change: 0 additions & 1 deletion react-page/src/logo.svg

This file was deleted.

15 changes: 0 additions & 15 deletions react-page/src/reportWebVitals.ts

This file was deleted.

5 changes: 0 additions & 5 deletions react-page/src/setupTests.ts

This file was deleted.

16 changes: 16 additions & 0 deletions react-page/src/style/_util.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
$color-main: #a8bbff;
$color-sub: #d0dbff;
$color-register: #7995f9;

@mixin x-icon($width, $height) {
color: $color-main;
width: $width;
height: $height;
}

@mixin register($size) {
color: $color-register;
text-align: center;
font-size: $size;
font-weight: 800;
line-height: normal;
letter-spacing: 3px;
}
Loading

0 comments on commit 89ecdbd

Please sign in to comment.