Skip to content

Commit

Permalink
#6 kwon style added cursor point to each input element
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonih1020 committed Sep 1, 2022
1 parent f886117 commit 7245587
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 18 deletions.
1 change: 1 addition & 0 deletions tiger-fe/src/components/search/SearchDates.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const NewDatePicker = styled(DatePicker)`
border: 1px solid orange;
font-size: 12px;
margin: 25px 0 25px 0;
cursor: pointer;
`;

export default SearchDates;
2 changes: 2 additions & 0 deletions tiger-fe/src/components/search/SearchLocation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const SearchLocation = () => {
width: "400px",
height: "400px",
border: "1px solid black",
zIndex: "1",
};
return (
<SearchLocationContainer>
Expand All @@ -65,6 +66,7 @@ const SearchLocationContainer = styled.div`
.location_input {
width: 400px;
height: 35px;
cursor: pointer;
}
`;

Expand Down
1 change: 1 addition & 0 deletions tiger-fe/src/components/search/SearchType.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const VehicleTypeContainer = styled.div`
width: 300px;
height: 42px;
padding: 8px;
cursor: pointer;
}
`;

Expand Down
6 changes: 4 additions & 2 deletions tiger-fe/src/global/GlobalRouter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@

import React from "react";
import { Routes, Route, BrowserRouter } from "react-router-dom";
import HomePage from "../pages/HomePage";
import RentMainPage from "../pages/RentMainPage";
import OwnerPage from "../pages/OwnerPage";
import RenterPage from "../pages/RenterPage";
import VehicleDetailPage from "../pages/VehicleDetailPage";
import VehicleListPage from "../pages/VehicleListPage";
import HomePage from "../pages/HomePage";

const GlobalRouter = () => {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="/" element={<RentMainPage />} />
<Route path="/intro" element={<HomePage />} />
<Route path="/owner" element={<OwnerPage />} />
<Route path="/renter" element={<RenterPage />} />
<Route path="/vdetail/:id" element={<VehicleDetailPage />} />
Expand Down
17 changes: 1 addition & 16 deletions tiger-fe/src/pages/HomePage.jsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
// eslint-disable-next-line

import React from "react";
import styled from "styled-components";
import ItemList from "../components/main/ItemList";

// import Header from "../global_elements/Header";
// import Search from "../global_elements/Search";

const HomePage = () => {
return (
<StHomePage>
<Header />
<Search />
<ItemList />
</StHomePage>
);
return <div></div>;
};

export default HomePage;

const StHomePage = styled.div`
height: 300vh;
`;
19 changes: 19 additions & 0 deletions tiger-fe/src/pages/RentMainPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// eslint-disable-next-line

import React from "react";
import styled from "styled-components";
import ItemList from "../components/main/ItemList";

const RentMainPage = () => {
return (
<StHomePage>
<ItemList />
</StHomePage>
);
};

export default RentMainPage;

const StHomePage = styled.div`
height: 300vh;
`;

0 comments on commit 7245587

Please sign in to comment.