The dev.to project with GatsbyJS-14

Welcome to part-14 of the series. You can find part-13 here.

In the last part we created menu for the Mobile view and in this part we will add functionality to it, to show the left or the right sidebar.

After a bit of research on the internet, i found this article which i will follow to create the menu.

The CSS-in-JS library of styled component is very much required for this part, so we will stop the development server and npm install it.

npm install --save styled-components

Next, we will create the Burger and Menu folders in components and the following files.

Burger and Menu

Rest of the chapter is exclusive content and will be in my upcoming book Gatsby Cookbook. You can find more details about it here.

Image for post
Image for post

Now, in the mobile view we will get the hamburger menu which will show the Menu on click.

Image for post
Image for post
Menu

This completes part-14 of the series. You can find part-15 here.

You can find the code for the same in this github repo.

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