Skip to content

Commit

Permalink
#39 style added icons on search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonih1020 committed Sep 6, 2022
1 parent a51b036 commit 3be0fa8
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 7 deletions.
Binary file removed tiger-fe/src/assets/Location pin.png
Binary file not shown.
Binary file removed tiger-fe/src/assets/optimize1.webp
Binary file not shown.
Binary file removed tiger-fe/src/assets/optimize2.webp
Binary file not shown.
Binary file removed tiger-fe/src/assets/optimize3.webp
Binary file not shown.
Binary file removed tiger-fe/src/assets/optimize4.webp
Binary file not shown.
Binary file added tiger-fe/src/assets/pin_trans.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
40 changes: 33 additions & 7 deletions tiger-fe/src/global_elements/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import Button from "./Button";

import { __vehicleSearchList } from "../redux/modules/searchSlice";

import pin from "../assets/pin_trans.png";
import clock from "../assets/clock.png";
import vehicle from "../assets/vehicle.png";

const Search = () => {
const dispatch = useDispatch();

Expand All @@ -29,7 +33,6 @@ const Search = () => {
const onChangeHandler = (e) => {
setAddress(e.target.value);
};

const handlePostCode = (data) => {
let fullAddress = data.address;
let extraAddress = "";
Expand Down Expand Up @@ -186,9 +189,18 @@ const StSearch = styled.div`
const StSearchLocationContainer = styled.div`
/* margin: 26px; */
.location_input {
width: 400px;
height: 35px;
width: 350px;
height: 28px;
cursor: pointer;
background: #f2f2f2;
border-radius: 12px;
padding: 5px;
background-image: url(${pin});
background-repeat: no-repeat;
background-size: 16px;
background-position: 9px 7px;
text-indent: 30px;
border: 1px solid;
}
`;

Expand All @@ -202,15 +214,21 @@ const StCalendarWrapper = styled.div`
`;

const StNewDatePicker = styled(DatePicker)`
width: 270px;
width: 250px;
height: 42px;
box-sizing: border-box;
padding: 8px;
border-radius: 4px;
border: 1px solid orange;
font-size: 12px;
margin: 25px 0 25px 0;
cursor: pointer;
background: #f2f2f2;
border-radius: 12px;
padding: 5px;
background-image: url(${clock});
background-repeat: no-repeat;
background-size: 23px;
background-position: 9px 8px;
text-indent: 34px;
border: 1px solid;
`;

const StVehicleTypeContainer = styled.div`
Expand All @@ -220,6 +238,14 @@ const StVehicleTypeContainer = styled.div`
height: 42px;
padding: 8px;
cursor: pointer;
background: #f2f2f2;
border-radius: 12px;
padding: 5px;
background-image: url(${vehicle});
background-repeat: no-repeat;
background-size: 23px;
background-position: 9px 7px;
text-indent: 34px;
}
`;

Expand Down

0 comments on commit 3be0fa8

Please sign in to comment.