The dev.to project with GatsbyJS-14

Nabendu Biswas
2 min readFeb 26, 2020

--

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.

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.

--

--

Nabendu Biswas
Nabendu Biswas

Written by Nabendu Biswas

Architect, ReactJS & Ecosystem Expert, Youtuber, Blogger

No responses yet