Skip to content

Commit fb87060

Browse files
committed
Remove navigation component
1 parent 6541335 commit fb87060

File tree

3 files changed

+23
-80
lines changed

3 files changed

+23
-80
lines changed

src/components/common/Layout.js

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Helmet } from "react-helmet";
44
import { Link, StaticQuery, graphql } from "gatsby";
55
import { GatsbyImage } from "gatsby-plugin-image";
66

7-
import { Navigation } from ".";
87
import { Footer } from ".";
98
import { CTA } from ".";
109
import config from "../../utils/siteConfig";
@@ -49,10 +48,18 @@ const DefaultLayout = ({ data, children, bodyClass, isHome }) => {
4948
/>
5049
<nav id="site-nav" className="flex flex-col mt-8 items-center">
5150
{/* The navigation items as setup in Ghost */}
52-
<Navigation
53-
data={localData.navigation}
54-
navClass="inline-block py-7 px-8 text-body-grey hover:opacity-100 hover:no-underline"
55-
/>
51+
52+
{localData.navigation.map((navItem, i) => (
53+
<Link
54+
className={
55+
"inline-block py-8 px-8 text-body-grey hover:text-iff-orange hover:no-underline"
56+
}
57+
to={navItem.url}
58+
key={i}
59+
>
60+
{navItem.label}
61+
</Link>
62+
))}
5663
</nav>
5764
</div>
5865
)}
@@ -87,10 +94,17 @@ const DefaultLayout = ({ data, children, bodyClass, isHome }) => {
8794
>
8895
<nav id="site-nav" className="flex items-center">
8996
{/* The navigation items as setup in Ghost */}
90-
<Navigation
91-
data={localData.navigation}
92-
navClass="inline-block py-1 px-8 text-body-grey hover:opacity-100 hover:no-underline"
93-
/>
97+
{localData.navigation.map((navItem, i) => (
98+
<Link
99+
className={
100+
"inline-block py-2 px-8 text-body-grey hover:text-iff-orange hover:no-underline"
101+
}
102+
to={navItem.url}
103+
key={i}
104+
>
105+
{navItem.label}
106+
</Link>
107+
))}
94108
</nav>
95109
</div>
96110
</div>

src/components/common/Navigation.js

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/components/common/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ export { default as PostCardBlog } from "./PostCardBlog";
44
export { default as PostCarousel } from "./PostCarousel";
55
export { default as ProjectCarousel } from "./ProjectCarousel";
66
export { default as Pagination } from "./Pagination";
7-
export { default as Navigation } from "./Navigation";
87
export { default as Footer } from "./Footer";
98
export { default as CTA } from "./CTA";

0 commit comments

Comments
 (0)