Skip to content

Commit

Permalink
chore: client 디렉토리 구조 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
sooyeon73 committed Nov 14, 2022
1 parent 47d2e01 commit fb7e5d3
Show file tree
Hide file tree
Showing 9 changed files with 17,407 additions and 185 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"arrowParens": "always",
"printWidth": 250,
"singleQuote": true
"singleQuote": true,
"tabWidth": 2
}
17,516 changes: 17,344 additions & 172 deletions client/package-lock.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"@types/react-dom": "^18.0.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.4.3",
"react-scripts": "5.0.1",
"styled-components": "^5.3.6",
"typescript": "^4.8.4",
"web-vitals": "^2.1.4"
},
Expand All @@ -39,5 +41,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@types/styled-components": "^5.1.26"
}
}
21 changes: 9 additions & 12 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import React from 'react';
import logo from './logo.svg';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import './App.css';
import { GlobalStyle } from './components/common/GlobalStyle';
import WelcomePage from './pages/WelcomePage';

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>
<Router>
<GlobalStyle />
<Routes>
<Route path="/" element={<WelcomePage />} />
</Routes>
</Router>
);
}

Expand Down
12 changes: 12 additions & 0 deletions client/src/components/WelcomePage/LoginMenu/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import * as S from './style';

const LoginMenu = () => {
return (
<>
<S.LoginContainer>"마요 WELCOME"</S.LoginContainer>
</>
);
};

export default LoginMenu;
11 changes: 11 additions & 0 deletions client/src/components/WelcomePage/LoginMenu/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import styled from 'styled-components';

export const LoginContainer = styled.div`
width: 50.5rem;
height: 38.5 rem;
border: 1px solid #f1f1f1;
dixplay: flex;
flex-direction: column;
justify-content: center;
align-items: center;
`;
10 changes: 10 additions & 0 deletions client/src/components/common/GlobalStyle.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { createGlobalStyle } from 'styled-components';

export const GlobalStyle = createGlobalStyle`
body {
background: rgba(0, 60, 165, 0.4);
background-size: 100% 586px;
place-items: center;
display:grid;
}
`;
8 changes: 8 additions & 0 deletions client/src/pages/WelcomePage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
import LoginMenu from '../components/WelcomePage/LoginMenu';

const WelcomePage = () => {
return <LoginMenu />;
};

export default WelcomePage;
6 changes: 6 additions & 0 deletions package-lock.json

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

0 comments on commit fb7e5d3

Please sign in to comment.