loading...
Cover image for Restaurant Site Project with GatsbyJS-3

Restaurant Site Project with GatsbyJS-3

nabendu82 profile image Nabendu ・1 min read

restaurant-gatsby (18 Part Series)

1) Restaurant Site Project with GatsbyJS-1 2) Restaurant Site Project with GatsbyJS-2 3 ... 16 3) Restaurant Site Project with GatsbyJS-3 4) Restaurant Site Project with GatsbyJS-4 5) Restaurant Site Project with GatsbyJS-5 6) Restaurant Site Project with GatsbyJS-6 7) Restaurant Site Project with GatsbyJS-7 8) Restaurant Site Project with GatsbyJS-8 9) Restaurant Site Project with GatsbyJS-9 10) Restaurant Site Project with GatsbyJS-10 11) Restaurant Site Project with GatsbyJS-11 12) Restaurant Site Project with GatsbyJS-12 13) Restaurant Site Project with GatsbyJS-13 14) Restaurant Site Project with GatsbyJS-14 15) Restaurant Site Project with GatsbyJS-15 16) Restaurant Site Project with GatsbyJS-16 17) Restaurant Site Project with GatsbyJS-17 18) Restaurant Site Project with GatsbyJS-18

Alt Text

Welcome to part-3 of the series. We will start creating generic styled components here, so that we don’t have to create different style in each project. Also, these styles are reusable in other part of the project.

So, create a folder utils inside src folder. Create a file styles.js inside it and the below content in it.

styles.jsstyles.js

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

Gatsby Cookbook

The book is currently 80% complete and available on leanpub to purchase at this url. So, please show your support and purchase the book or tell it to someone who is interested in developing blazing fast production websites in GatsbyJS.

https://leanpub.com/gatsbycookbook

leanpub

The code is now working perfectly in localhost on click of the Menu button.

GifGif

This completes part-3 of the series.

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

restaurant-gatsby (18 Part Series)

1) Restaurant Site Project with GatsbyJS-1 2) Restaurant Site Project with GatsbyJS-2 3 ... 16 3) Restaurant Site Project with GatsbyJS-3 4) Restaurant Site Project with GatsbyJS-4 5) Restaurant Site Project with GatsbyJS-5 6) Restaurant Site Project with GatsbyJS-6 7) Restaurant Site Project with GatsbyJS-7 8) Restaurant Site Project with GatsbyJS-8 9) Restaurant Site Project with GatsbyJS-9 10) Restaurant Site Project with GatsbyJS-10 11) Restaurant Site Project with GatsbyJS-11 12) Restaurant Site Project with GatsbyJS-12 13) Restaurant Site Project with GatsbyJS-13 14) Restaurant Site Project with GatsbyJS-14 15) Restaurant Site Project with GatsbyJS-15 16) Restaurant Site Project with GatsbyJS-16 17) Restaurant Site Project with GatsbyJS-17 18) Restaurant Site Project with GatsbyJS-18

Posted on Sep 15 '19 by:

nabendu82 profile

Nabendu

@nabendu82

Fullstack JS dev, Upcoming Author "Gatsby Cookbook"

Discussion

markdown guide