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.
Styling: Header - Next.js Tutorial
From the course: The Freelance Stack: Real Project with Next.js and Strapi
Styling: Header
So the first thing I notice here is that the layouting is obviously not right on my page, right? Everything appears in a column but I actually want it to be all displaying here as a row, right? So what can I do? Well, I need to make it a flex container but first of all I actually have to create the files to apply my styles. So similarly to how I did it here in the app folder where we have a components folder, I also want to have in my sass folder now a new folder called components and inside of there I can now just create a header as CSS and for that the first thing I'm going to do is I'm going to split my screen so I can immediately see what styles I'm applying to what elements in here and the very first thing I see here as well my parent element or the main element here within my header has the header class so that's just what I'm going to be using now in here I need it to be a flex container and that will change things quite a lot but it doesn't here right it should have changed…
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)
-
-
-
-
-
-