Created
March 17, 2019 17:15
-
-
Save mattshardman/384e5c00efa4bb11b72834ce8ad4330c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Search.js | |
import React from 'react'; | |
function Search() { | |
return ( | |
<div className="search-box"> | |
<input type="text" className="search-input"/> | |
<style jsx>{` | |
.search-box { | |
width: 300px; | |
max-width: 100%; | |
height: 40px; | |
border-radius: 20px; | |
border: 1px solid #eaeaea; | |
} | |
.search-input { | |
width: 90%; | |
height: 100%; | |
border: none; | |
background: none; | |
} | |
`}</style> | |
</div> | |
); | |
} | |
export default Search; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment