summaryrefslogtreecommitdiff
path: root/src/components/top-nav
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/top-nav')
-rw-r--r--src/components/top-nav/index.js23
-rw-r--r--src/components/top-nav/styles.css35
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;
+}
+