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 +++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 src/components/top-nav/index.js create mode 100644 src/components/top-nav/styles.css (limited to 'src/components/top-nav') 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; +} + -- cgit v1.3