From 639a82c55c39e1ab788ce302c077bf5b73e5f435 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 20 Aug 2018 01:31:48 +0400 Subject: Add top navigation --- src/components/top-nav/index.js | 23 +++++++++++++++++++++++ src/components/top-nav/styles.css | 35 +++++++++++++++++++++++++++++++++++ src/containers/feed/index.js | 9 ++++++++- src/containers/feed/styles.css | 0 src/global.css | 4 ++++ 5 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 src/components/top-nav/index.js create mode 100644 src/components/top-nav/styles.css create mode 100644 src/containers/feed/styles.css (limited to 'src') 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) => ( +
+
+ + +
+

GitHunt

+

Most starred projects on GitHub

+
+
+
+ Weekly + Monthly + Daily +
+
+
+); + +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 ( -

Hello from the feed

+
+ +
+
+
); } } diff --git a/src/containers/feed/styles.css b/src/containers/feed/styles.css new file mode 100644 index 0000000..e69de29 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; +} -- cgit v1.3