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.
Header JSX structure - Next.js Tutorial
From the course: The Freelance Stack: Real Project with Next.js and Strapi
Header JSX structure
Cool, we're back on the front end and so far where we stand right now is we've set all the sass up, all the files should be right there, but we haven't actually done anything in the JavaScript yet. Now if you're unfamiliar with Next.js, this should already give you a little bit of a better understanding how it generally works, because the first thing we're going to be doing is we'll add a header and a footer to our application. The way that works, or the way the routing works, as we've already seen in the in the crash course, is that within the app folder we can have different files. Now we have one in the root or we have two files in the root folder which are layout and page. Those can exist also in all of the child folders but right now if I put anything within layout it will display anywhere else within my application and that's exactly what I want to have for my header because my header needs to be everywhere on the page and this is what my header looks like. I have a logo, I have…
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)
-
-
-
-
-
-