Learn GatsbyJS by creating a tourism site -2

Welcome to part-2 of the series. You can find part-1 here.

As told in the earlier post, this series is based on the learning from this awesome udemy course by John Smilga

Let’s start where we left in the project. We will not be going through CSS in this series, as it’s a gatsby series.

We will have the global CSS in layout.css in the components directory. You can get the content for the same from my github link.

Also, place a images folder inside the src folder. The content for the same can be taken from by github.

We also need to import the layout.css in Layout.js

Image for post
Image for post
Layout.js

Rest of the chapter is exclusive content and will be in my upcoming book Gatsby Cookbook.

Image for post
Image for post

On desktop, we will get the whole menu and also the react-icon will be hidden.

Image for post
Image for post
Navbar on desktop

This completes part-2 of the series. Hope you learned something new. You can find the code for the same in this link.

You can find part-3 here.

Written by

UI Lead- ReactJS, JavaScript and everything in-between.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store