diff --git a/src/Banner.css b/src/Banner.css
index a55fb8f..90d4a79 100644
--- a/src/Banner.css
+++ b/src/Banner.css
@@ -42,6 +42,12 @@
margin-right: -10px;
}
+ .banner__searchButton1{
+ top: 0%;
+ background-color: #ff7779;
+ color: white;
+ }
+
.banner__searchButton:hover {
background-color: white;
color: #ff7779;
diff --git a/src/Banner.js b/src/Banner.js
index 5ae068a..62b6bd5 100644
--- a/src/Banner.js
+++ b/src/Banner.js
@@ -22,11 +22,12 @@ function Banner() {
Plan a different kind of getaway to uncover the hidden gems near you.
+
{showSearch && }
-
+ {showSearch ?
+ :
+ }
)
diff --git a/src/Search.css b/src/Search.css
index 66ae542..3ce9970 100644
--- a/src/Search.css
+++ b/src/Search.css
@@ -1,47 +1,102 @@
.search {
position: absolute;
- top: 35px;
- left: 25%;
- width: 100vw;
+ top: 104px;
+ left: 90%;
+ transform: translate(-90%);
+ display: flex;
+ flex-direction: column;
+ border-radius: 5px;
+}
+.Dates{
+ display: flex;
+ flex-direction: row-reverse;
+}
+
+.people-count{
+ margin-top: 10px;
+ border: 1px solid black;
+ border-radius: 5px;
+ overflow: hidden;
+ width: 50%;
+ align-self: center;
}
-.search > h2 {
+/*.people-count > h2 {
+ color: black;
display: flex;
align-items: center;
justify-content: space-between;
- width: 559px;
padding: 10px;
background-color: white;
position: absolute;
left: 0;
- top: 380px;
+}*/
+
+.number > span {
+ color: black;
+ font-size: 1.1rem;
}
-.search > input {
- width: 539px;
- padding: 20px;
- position: absolute;
- left: 0;
- height: 30px;
- top: 420px;
+.peopleIcon{
+ color: black;
+}
+
+.number{
+ background: white;
+ display: flex;
+ justify-content: space-between;
+ padding: 5px;
+}
+
+.submit{
+ background: black;
+}
+
+.submit > input {
+ width: 100%;
+ box-sizing: border-box;
+ padding: 10px;
border: none;
- }
-
-.search > input:focus {
- outline-width: 0;
}
-.search > button {
- position: absolute;
- left: 0;
- top: 480px;
+
+.submit > button {
text-transform: inherit !important;
background-color: #ff7779;
color: white;
- width: 579px;
- }
+ width: 40%;
+ margin-right: 10px;
+}
-.search > button:hover {
+.submit > button:hover {
background-color: white;
color: #ff7779;
+}
+
+@media screen and (max-width: 700px){
+ .Range{
+ visibility: hidden;
+ }
+}
+
+@media screen and (max-width: 650px){
+ .search{
+ left: 100%;
+ transform: translate(-100%);
+ }
+ .people-count{
+ align-self: flex-end;
+ }
+}
+
+@media screen and (max-width: 500px){
+ .search{
+ transform: translate(-80%);
+ }
+}
+
+@media screen and (max-width: 400px){
+ .search{
+ transform: translate(-65%);
+ }
}
\ No newline at end of file
diff --git a/src/Search.js b/src/Search.js
index c5bbef6..469a5eb 100644
--- a/src/Search.js
+++ b/src/Search.js
@@ -2,7 +2,8 @@ import React, {useState} from 'react';
import './Search.css';
import "react-date-range/dist/styles.css"; // main style file
import "react-date-range/dist/theme/default.css"; // theme css file
-import { DateRangePicker } from "react-date-range";
+import { DateRange } from "react-date-range";
+import { DefinedRange } from 'react-date-range';
import { Button } from "@material-ui/core";
import PeopleIcon from "@material-ui/icons/People";
import { useHistory } from "react-router-dom";
@@ -26,12 +27,23 @@ function Search() {
return (
-
-
- Number of guests
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
)
}
diff --git a/src/SearchResult.css b/src/SearchResult.css
index 69a5ea5..1dee386 100644
--- a/src/SearchResult.css
+++ b/src/SearchResult.css
@@ -105,14 +105,11 @@
font-size: 14px;
}
}
-
@media screen and (max-width: 700px){
.searchResult {
grid-template-columns: 40% 60%;
}
-
}
-
@media screen and (max-width: 450px){
.searchResult {
height: 28vh;
@@ -128,7 +125,6 @@
height: 28vh
}
}
-
@media screen and (max-height: 700px){
.searchResult {
height: 30vh;