diff --git a/assets/css/app.scss b/assets/css/app.scss index 58a24b1..4fa994d 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -50,6 +50,7 @@ @import "components/move-list"; @import "components/game-state"; @import "components/player-finder"; +@import "components/search-input"; // 7. Utilities – utilities and helper classes with ability to override // anything which goes before in the triangle, eg. hide helper class diff --git a/assets/css/components/_search-input.scss b/assets/css/components/_search-input.scss new file mode 100644 index 0000000..ac1b94c --- /dev/null +++ b/assets/css/components/_search-input.scss @@ -0,0 +1,6 @@ +.search-input { + background-image: url("/images/search-icon.svg"); + background-position: center right 0.5rem; + background-repeat: no-repeat; + border: 1px solid $base-border-color; +} diff --git a/assets/js/components/opponent-finder.js b/assets/js/components/opponent-finder.js index 1267e8f..e117c85 100644 --- a/assets/js/components/opponent-finder.js +++ b/assets/js/components/opponent-finder.js @@ -145,6 +145,7 @@ class OpponentFinder extends React.Component { { this.queryStringInput = input; }} + className="search-input" name="q" value={this.state.queryString} onChange={this.handleChange.bind(this)} diff --git a/assets/static/images/search-icon.svg b/assets/static/images/search-icon.svg new file mode 100644 index 0000000..0986f1f --- /dev/null +++ b/assets/static/images/search-icon.svg @@ -0,0 +1,11 @@ + + + + search-icon + Created with Sketch. + + + + + + \ No newline at end of file