diff --git a/src/assets/stylesheets/browse.scss b/src/assets/stylesheets/browse.scss index 2b0313e..af131f4 100644 --- a/src/assets/stylesheets/browse.scss +++ b/src/assets/stylesheets/browse.scss @@ -32,9 +32,11 @@ $white: #fff; } .browse-image img { + margin-top: 50px; width: auto; height: 200px; background-color: transparent; + margin-top: 50px; } .browse-fieldContainer { @@ -150,4 +152,42 @@ $white: #fff; width: auto; height: auto; font-family: "Gotham Medium"; +} + +.browse-search { + width: 80%; + height: 50px; + background: linear-gradient( + -30deg, + rgb(187, 208, 236) 0%, + rgba(255, 255, 255, 1) 100% + ); + display: flex; + align-items: center; + justify-content: flex-start; + flex-direction: row; + border-radius: 20px; + border: 1px solid $gray; + margin-bottom: 5px; + margin-top: 5px; + transition: all 0.3s ease-in-out; + text-decoration: none; + background-color: transparent; + filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25)); +} + +.browse-search input { + width: 100%; + height: 50px; + border-radius: 20px 0 0 20px; + background-color: transparent; + outline: none; + box-shadow: none; + font-size: 18px; + font-family: "Gotham Medium"; + color: $dark-blue; + border: none; + border-right: none; + padding-left: 20px; + padding-top: 2px; } \ No newline at end of file diff --git a/src/assets/stylesheets/cabledetail.scss b/src/assets/stylesheets/cabledetail.scss index 8caf110..ca6d60a 100644 --- a/src/assets/stylesheets/cabledetail.scss +++ b/src/assets/stylesheets/cabledetail.scss @@ -35,6 +35,7 @@ $white: #fff; width: auto; height: 200px; background-color: transparent; + margin-top: 50px; } .cable-fieldContainer { diff --git a/src/assets/stylesheets/map.scss b/src/assets/stylesheets/map.scss index 7b13cce..839cc4f 100644 --- a/src/assets/stylesheets/map.scss +++ b/src/assets/stylesheets/map.scss @@ -35,6 +35,7 @@ $white: #fff; width: auto; height: 200px; background-color: transparent; + margin-top: 50px; } .map-fieldContainer { @@ -271,6 +272,7 @@ $white: #fff; width: auto; height: auto; font-size: 20px; + margin-top: 2px; color: $medium-blue; font-family: "Gotham Bold"; background-color: transparent; diff --git a/src/assets/stylesheets/navbar.scss b/src/assets/stylesheets/navbar.scss index 9de83dd..733e468 100644 --- a/src/assets/stylesheets/navbar.scss +++ b/src/assets/stylesheets/navbar.scss @@ -57,45 +57,8 @@ $white: #fff; color: $light-blue; } -.navbar-search { - width: 100%; - height: auto; - display: flex; - border-radius: 15px; - padding: 0; - margin: 0; -} - -.navbar-search input { - width: 80%; - height: auto; - padding: 10px; - border-radius: 15px 0 0 15px; - background-color: $white; - outline: none; - box-shadow: none; - font-size: 16px; - font-family: "Gotham Medium"; - color: $dark-blue; - border: solid $light-blue 2px; - border-right: none; -} - -.navbar-search button { - width: 20%; - height: auto; - border-radius: 0 15px 15px 0; - background-color: $white; - outline: none; - box-shadow: none; - font-size: 16px; - font-family: "Gotham Medium"; - border: solid $light-blue 2px; - cursor: pointer; -} - .navbar-list { - margin-top: 20px; + margin-top: 10px; width: 100%; height: auto; display: flex; diff --git a/src/assets/stylesheets/settings.scss b/src/assets/stylesheets/settings.scss index 6a93986..764cdd4 100644 --- a/src/assets/stylesheets/settings.scss +++ b/src/assets/stylesheets/settings.scss @@ -35,6 +35,7 @@ $white: #fff; width: auto; height: 200px; background-color: transparent; + margin-top: 50px; } .settings-fieldContainer { diff --git a/src/assets/stylesheets/statistics.scss b/src/assets/stylesheets/statistics.scss index bce2376..f93f20e 100644 --- a/src/assets/stylesheets/statistics.scss +++ b/src/assets/stylesheets/statistics.scss @@ -35,6 +35,7 @@ $white: #fff; width: auto; height: 200px; background-color: transparent; + margin-top: 50px; } .statistics-fieldContainer { diff --git a/src/assets/stylesheets/summary.scss b/src/assets/stylesheets/summary.scss index 7ece692..23ca153 100644 --- a/src/assets/stylesheets/summary.scss +++ b/src/assets/stylesheets/summary.scss @@ -35,6 +35,7 @@ $white: #fff; width: auto; height: 200px; background-color: transparent; + margin-top: 50px; } .summary-fieldContainer { diff --git a/src/components/BrowseComponent.js b/src/components/BrowseComponent.js index 69bfa07..8608829 100644 --- a/src/components/BrowseComponent.js +++ b/src/components/BrowseComponent.js @@ -61,6 +61,11 @@ export default class BrowseComponent extends Component { this.props.socket.removeEventListener("message", this.handleMessage); } + searchUpdate = () => { + let value = document.querySelector(".browse-search input").value; + this.props.socket.send(`{"type":"cable_search","call":"request","data":{"string":"${value}"}}`); + }; + render() { return (