summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKamran Ahmed <kamranahmed.se@gmail.com>2018-08-20 01:31:48 +0400
committerKamran Ahmed <kamranahmed.se@gmail.com>2018-08-20 01:31:48 +0400
commit639a82c55c39e1ab788ce302c077bf5b73e5f435 (patch)
treed806bb713542bc6893b47e9dd105d7e346f4ea03 /src
parentRestructure containers (diff)
downloadgithunt-639a82c55c39e1ab788ce302c077bf5b73e5f435.tar.gz
Add top navigation
Diffstat (limited to 'src')
-rw-r--r--src/components/top-nav/index.js23
-rw-r--r--src/components/top-nav/styles.css35
-rw-r--r--src/containers/feed/index.js9
-rw-r--r--src/containers/feed/styles.css0
-rw-r--r--src/global.css4
5 files changed, 70 insertions, 1 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;
+}
+
diff --git a/src/containers/feed/index.js b/src/containers/feed/index.js
index 5e42c08..c9e28e2 100644
--- a/src/containers/feed/index.js
+++ b/src/containers/feed/index.js
@@ -1,9 +1,16 @@
import React from 'react';
+import './styles.css';
+import TopNav from '../../components/top-nav';
+
class FeedContainer extends React.Component {
render() {
return (
- <h1>Hello from the feed</h1>
+ <div className="page-wrap">
+ <TopNav/>
+ <div className="container">
+ </div>
+ </div>
);
}
}
diff --git a/src/containers/feed/styles.css b/src/containers/feed/styles.css
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/containers/feed/styles.css
diff --git a/src/global.css b/src/global.css
index e69de29..93d7a99 100644
--- a/src/global.css
+++ b/src/global.css
@@ -0,0 +1,4 @@
+body {
+ background-color: #f9f9f9;
+ min-height: 100vh;
+}