diff options
| author | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-21 11:33:33 +0500 |
|---|---|---|
| committer | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-21 11:33:33 +0500 |
| commit | 7c45f5ff9056ce5864037d5a891361d2310a737d (patch) | |
| tree | 2ac3feb7beea95136c8317bf9d2a1cb82bd135f1 /src/components/filters | |
| parent | Add font-awesome and feed UI (diff) | |
| download | githunt-7c45f5ff9056ce5864037d5a891361d2310a737d.tar.gz | |
Separate filters component
Diffstat (limited to 'src/components/filters')
| -rw-r--r-- | src/components/filters/index.js | 24 | ||||
| -rw-r--r-- | src/components/filters/styles.css | 32 |
2 files changed, 56 insertions, 0 deletions
diff --git a/src/components/filters/index.js b/src/components/filters/index.js new file mode 100644 index 0000000..aa5860b --- /dev/null +++ b/src/components/filters/index.js @@ -0,0 +1,24 @@ +import React from 'react'; + +import './styles.css'; + +const Filters = (props) => ( + <div className="filters-wrap"> + <a href="#" className="btn btn-light language-filter"> + <i className="fa fa-filter mr-2"></i> + All Languages + </a> + <div className="view-type btn"> + <a href="#" className="active"> + <i className="fa fa-list mr-2"></i> + List + </a> + <a href="#"> + <i className="fa fa-table mr-2"></i> + Grid + </a> + </div> + </div> +); + +export default Filters; diff --git a/src/components/filters/styles.css b/src/components/filters/styles.css new file mode 100644 index 0000000..810b7f3 --- /dev/null +++ b/src/components/filters/styles.css @@ -0,0 +1,32 @@ +.btn.view-type, .btn.language-filter { + display: inline; + box-shadow: 0 9px 62px -13px rgba(0, 0, 0, 0.20); +} + +.filters-wrap .view-type.btn { + border-radius: 8px; + padding: 10px 20px; + background: white; + margin-left: 10px; + cursor: default; +} + +.language-filter { + border-radius: 8px; + padding: 10px 20px; + background-color: white; +} + +.view-type a { + color: #ccc; + margin-left: 20px; + text-decoration: none; +} + +.view-type a.active, .view-type a:hover { + color: #343a40; +} + +.view-type a:first-child { + margin-left: 0; +} |
