diff options
| author | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-20 01:31:48 +0400 |
|---|---|---|
| committer | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-20 01:31:48 +0400 |
| commit | 639a82c55c39e1ab788ce302c077bf5b73e5f435 (patch) | |
| tree | d806bb713542bc6893b47e9dd105d7e346f4ea03 /src/components/top-nav | |
| parent | Restructure containers (diff) | |
| download | githunt-639a82c55c39e1ab788ce302c077bf5b73e5f435.tar.gz | |
Add top navigation
Diffstat (limited to 'src/components/top-nav')
| -rw-r--r-- | src/components/top-nav/index.js | 23 | ||||
| -rw-r--r-- | src/components/top-nav/styles.css | 35 |
2 files changed, 58 insertions, 0 deletions
diff --git a/src/components/top-nav/index.js b/src/components/top-nav/index.js new file mode 100644 index 0000000..24f0747 --- /dev/null +++ b/src/components/top-nav/index.js @@ -0,0 +1,23 @@ +import React from 'react'; +import './styles.css'; + +const TopNav = (props) => ( + <div className='top-nav'> + <div className="container clearfix"> + <a href='/' className="logo clearfix float-left"> + <img src='/img/logo.svg'/> + <div className="logo-text"> + <h4>GitHunt</h4> + <p className="text-muted">Most starred projects on GitHub</p> + </div> + </a> + <div className="float-right duration-btns"> + <a href="#" className="btn btn-primary">Weekly</a> + <a href="#" className="btn btn-light">Monthly</a> + <a href="#" className="btn btn-light">Daily</a> + </div> + </div> + </div> +); + +export default TopNav; diff --git a/src/components/top-nav/styles.css b/src/components/top-nav/styles.css new file mode 100644 index 0000000..16d412c --- /dev/null +++ b/src/components/top-nav/styles.css @@ -0,0 +1,35 @@ +.top-nav { + background: #fff; + border-bottom: 1px solid #e8e8e8; + padding: 15px 0; + position: relative; +} + +.logo img { + height: 75px; + float: left; +} + +.logo-text { + float: left; + margin-left: 10px; + margin-top: 10px; +} + +.logo-text h4 { + margin: 3px 0 0; + font-weight: 700; + color: #2d2d2d; +} + +.logo-text p { + margin-bottom: 0; +} + +.duration-btns a.btn { + margin-left: 10px; + border-radius: 8px; + font-size: 14px; + margin-top: 24px; +} + |
