Skip to content

Commit

Permalink
Rename page header to top nav
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Nov 8, 2019
1 parent cd1d3d2 commit d8ed12f
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Link from 'next/link';
import { HeaderWrap } from './style';

const PageHeader = () => (
const TopNav = () => (
<HeaderWrap>
<div className="top-row container">
<div className="flex-grow-1 brand">
Expand All @@ -19,4 +19,4 @@ const PageHeader = () => (
</HeaderWrap>
);

export default PageHeader;
export default TopNav;
File renamed without changes.
11 changes: 11 additions & 0 deletions data/roadmaps.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,16 @@
"2018",
"2017"
]
},
{
"title": "React Developer Roadmap",
"description": "Step by step guide for DevOps or any other Operations Role",
"featuredDescription": "Step by step guide to become an SRE or for any operations role in 2019",
"url": "/signup",
"versions": [
"latest",
"2018",
"2017"
]
}
]
4 changes: 2 additions & 2 deletions layouts/guide/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import DefaultLayout from 'layouts/default';
import PageHeader from 'components/page-header';
import TopNav from 'components/top-nav';
import PageFooter from 'components/page-footer';

class GuideLayout extends React.Component {
Expand All @@ -9,7 +9,7 @@ class GuideLayout extends React.Component {

return (
<DefaultLayout>
<PageHeader />
<TopNav />
{ children }
<PageFooter />
</DefaultLayout>
Expand Down
4 changes: 2 additions & 2 deletions pages/[roadmap]/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Error from 'next/error';
import DefaultLayout from 'layouts/default';
import PageHeader from 'components/page-header';
import TopNav from 'components/top-nav';
import PageFooter from 'components/page-footer';
import RoadmapSummary from 'components/roadmap-summary';
import { serverOnlyProps } from 'lib/server';
Expand All @@ -15,7 +15,7 @@ const Roadmap = ({ roadmap }) => {
return (
<DefaultLayout>
<Helmet title={ roadmap.title } description={ roadmap.description } />
<PageHeader />
<TopNav />
<RoadmapSummary roadmap={ roadmap } />
<PageFooter />
</DefaultLayout>
Expand Down
4 changes: 2 additions & 2 deletions pages/about.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import AboutHeader from 'components/about-header/index';
import PageFooter from 'components/page-footer/index';
import PageHeader from 'components/page-header/index';
import TopNav from 'components/top-nav';
import DefaultLayout from 'layouts/default/index';
import FaqList from 'components/faq-list/index';

const About = () => (
<DefaultLayout>
<PageHeader />
<TopNav />
<AboutHeader />
<FaqList />
<PageFooter />
Expand Down
4 changes: 2 additions & 2 deletions pages/guides/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import DefaultLayout from 'layouts/default/index';
import PageHeader from 'components/page-header/index';
import TopNav from 'components/top-nav';

const Roadmap = () => (
<DefaultLayout>
<PageHeader />
<TopNav />
<div className="container">
<p>Show all guides here</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import FeaturedContent from 'components/featured-content/index';
import HeroSection from 'components/hero-section/index';
import PageFooter from 'components/page-footer/index';
import PageHeader from 'components/page-header/index';
import TopNav from 'components/top-nav';
import DefaultLayout from 'layouts/default/index';

const Home = (props) => (
<DefaultLayout>
<PageHeader />
<TopNav />
<HeroSection />
<FeaturedContent />
<PageFooter />
Expand Down
4 changes: 2 additions & 2 deletions pages/privacy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions pages/roadmaps.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import roadmaps from 'data/roadmaps';
import DefaultLayout from 'layouts/default/index';
import PageHeader from 'components/page-header/index';
import TopNav from 'components/top-nav';
import RoadmapBlock from 'components/roadmap-block';

const RoadmapsList = () => (
<DefaultLayout>
<PageHeader />
<TopNav />
<div className="container">
<p>Show all roadmaps here</p>
<div className="row">
{ roadmaps
.map(roadmap => (
<RoadmapBlock roadmap={ roadmap } key={ roadmap.url } />
)) }
</div>
</div>
</DefaultLayout>
);
Expand Down
4 changes: 2 additions & 2 deletions pages/terms.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8ed12f

Please sign in to comment.