From the course: The Freelance Stack: Real Project with Next.js and Strapi
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Footer JSX structure - Next.js Tutorial
From the course: The Freelance Stack: Real Project with Next.js and Strapi
Footer JSX structure
Now that we finished the header what we're going to be doing is create the footer in a similar way. Now before we do that I just want to do a little bit of restructure here and within my components folder I want to have a layout folder that I'm just going to drag the header.jsx into. If you are using Visual Studio Code it should automatically update the file import so here you can see that it's already done that for me and nothing else really needs to be done. The next thing we're going to be doing is just in the same folder create our footer.jsx and similar we can actually leave the header file open here to the side because we're going to create our footer in a very similar way. So I'm going to say here I'm going to return just a footer with a class name footer and for now I'm just going to put in an h1 tag right in here and just say footer to make sure that it's all working. Don't forget to export your component right here like this and then we're going to bring it in on the layout…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Header JSX structure17m 24s
-
(Locked)
Styling: Header8m 43s
-
(Locked)
Footer JSX structure10m 18s
-
(Locked)
Styling: Footer8m 11s
-
(Locked)
Hero section JSX structure16m 27s
-
(Locked)
Styling: Hero section15m 26s
-
(Locked)
InfoBlocks JSX structure9m 26s
-
(Locked)
Styling: InfoBlocks5m 53s
-
(Locked)
Experience page: Reuse created hero section and infoblocks8m 47s
-
(Locked)
Styling: Adjust header colour per path1m 26s
-
(Locked)
-
-
-
-
-
-