Skip to content

Commit

Permalink
#1 login 구성 중
Browse files Browse the repository at this point in the history
  • Loading branch information
kr-nius committed Nov 15, 2023
1 parent 2fdcb02 commit 123d50f
Show file tree
Hide file tree
Showing 18 changed files with 656 additions and 149 deletions.
544 changes: 544 additions & 0 deletions react-page/package-lock.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions react-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"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",
Expand All @@ -13,6 +17,7 @@
"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"
},
Expand Down
46 changes: 17 additions & 29 deletions react-page/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,27 @@
<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 {
display: flex;
flex-direction: column;
align-items: center;
}
body {
width: 768px;
}
#root {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
</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.

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

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>
<>
<Login />
</>
);
}

Expand Down
3 changes: 3 additions & 0 deletions react-page/src/component/Feed.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Feed() {
return null;
}
3 changes: 3 additions & 0 deletions react-page/src/component/Loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Loading() {
return null;
}
25 changes: 24 additions & 1 deletion react-page/src/component/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,30 @@
import { Link } from "@mui/icons-material";
import "../style/login.scss";
import CloseIcon from "@mui/icons-material/Close";

export default function Login() {
return (
<>
<div>Login</div>
<CloseIcon />
<hr />
<br />
<div className="login_logobox">
기온별 옷차림은,
<p>옷 늘 날 씨</p>
</div>
<br />
<br />
<form className="login_form">
<input type="text" className="login_id" placeholder="아이디" />
<br />
<input type="password" className="login_pw" placeholder="비밀번호" />
<br />
<br />
<button type="button">로 그 인</button>
</form>
<div className="login_linkbox">
<a>비밀번호 찾기</a> | <a>회원가입</a>
</div>
</>
);
}
3 changes: 3 additions & 0 deletions react-page/src/component/MyPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function MyPage() {
return null;
}
3 changes: 3 additions & 0 deletions react-page/src/component/Upload.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Upload() {
return null;
}
13 changes: 0 additions & 13 deletions react-page/src/index.css

This file was deleted.

15 changes: 4 additions & 11 deletions react-page/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
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 App from "./App";

const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
document.getElementById("root") as HTMLElement
);
root.render(
<React.StrictMode>
<App />
</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.

42 changes: 42 additions & 0 deletions react-page/src/style/login.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
hr {
width: 100%;
border: 0px;
border-top: solid #d0dbff;
}

.login_logobox {
text-align: center;
margin-top: 5%;
p {
margin: 0 auto;
font-weight: bolder;
font-size: xx-large;
}
}

.login_form {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 5%;
input {
width: 55%;
height: 40px;
padding: 0 1%;
border-radius: 7px;
border: 2px solid #d0dbff;
font-size: medium;
font-weight: 500;
}
button {
width: 57%;
border-radius: 10px;
border: none;
background-color: #a8bbff;
font-size: large;
color: white;
font-weight: bolder;
padding: 1%;
filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}
}
11 changes: 3 additions & 8 deletions react-page/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"baseUrl": "./src",
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand All @@ -20,7 +17,5 @@
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"src"
]
"include": ["src"]
}

0 comments on commit 123d50f

Please sign in to comment.