Skip to content

Commit

Permalink
Merge pull request #119 from nanjeong-owl/dev2
Browse files Browse the repository at this point in the history
[team-29][아울 & 난정] 1주차 금요일 PR
  • Loading branch information
ink-0 committed May 28, 2022
2 parents b25e938 + b15766b commit ebe0f5b
Show file tree
Hide file tree
Showing 31 changed files with 528 additions and 178 deletions.
10 changes: 3 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
Expand All @@ -18,9 +14,9 @@
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"indent": ["error", 4],
"linebreak-style": 0,
"quotes": ["error", "double"],
"semi": ["error", "always"]
"semi": ["error", "always"],
"react/prop-types": ["off"]
}
}
100 changes: 100 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@testing-library/user-event": "^13.5.0",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-router-dom": "^6.3.0",
"react-scripts": "5.0.1",
"styled-reset": "^4.4.1",
"web-vitals": "^2.1.4"
Expand Down Expand Up @@ -40,7 +41,9 @@
"@typescript-eslint/eslint-plugin": "^5.25.0",
"@typescript-eslint/parser": "^5.25.0",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-react": "^7.30.0",
"prettier": "^2.6.2",
"styled-components": "^5.3.5"
}
}
13 changes: 9 additions & 4 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import React from "react";
import {ThemeProvider} from "styled-components";
import theme from "./theme";
import Header from "./components/header/Header";
import SearchBar from "./components/header/SearchBar";
import {BrowserRouter, Routes, Route} from "react-router-dom";
import Home from "./pages/home";
import Search from "./pages/Search";

const App = () => {
return (
<ThemeProvider theme={theme}>
<Header />
<SearchBar />
<BrowserRouter>
<Routes>
<Route path="/" element={<Home />}></Route>
<Route path="/search" element={<Search />}></Route>
</Routes>
</BrowserRouter>
</ThemeProvider>
);
};
Expand Down
10 changes: 10 additions & 0 deletions src/Modal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import styled from "styled-components";

const Modal = styled.div`
position: absolute;
background-color: ${({theme}) => theme.color.white};
border-radius: 40px;
box-shadow: 0px 0px 4px rgba(51, 51, 51, 0.05);
`;

export default Modal;
3 changes: 3 additions & 0 deletions src/assets/crossIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/menuIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/assets/searchIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/userIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions src/components/Boundary.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React from "react";
import styled from "styled-components";

// eslint-disable-next-line react/prop-types
const Boundary = ({condition}) => {
// {direction, length, weight, color}
// eslint-disable-next-line react/prop-types
return condition.direction === "vertical" ? <VerticalLine {...condition} /> : <HorizontalLine {...condition} />;
};

Expand Down
15 changes: 0 additions & 15 deletions src/components/header/DateBox.jsx

This file was deleted.

1 change: 1 addition & 0 deletions src/components/header/Gnb.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const GnbItem = styled.span`
font-size: 1rem;
cursor: pointer;
line-height: 23px;
white-space: nowrap;
&:hover {
font-weight: 700;
text-decoration-line: underline;
Expand Down
25 changes: 0 additions & 25 deletions src/components/header/GuestBox.jsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Header = () => {
};

const Background = styled.div`
background-color: rgba(0, 0, 0, 0.05);
background-color: ${({theme}) => theme.transparentColor.gray1};
height: 640px;
user-select: none;
`;
Expand Down
Loading

0 comments on commit ebe0f5b

Please sign in to comment.