The dev.to project with GatsbyJS-14

Photo by Lee Campbell on Unsplash

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.

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.

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

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.

--

--

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
Nabendu Biswas

Nabendu Biswas

589 Followers

Founder TWD, JavaScript & ReactJS Trainer, Youtuber, Blogger