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: InfoBlocks - Next.js Tutorial
From the course: The Freelance Stack: Real Project with Next.js and Strapi
Styling: InfoBlocks
We'll do the styling next of the info blocks and the way we're going to do it is by obviously creating our sass file first. So let's do that within our components folder right here. Info block as css our main css i'm going to do this first this time so i'm not forgetting again info block like that we'll put that to the right hand side and then we're going going to have a look at our block to make sure we're doing it right. So the first thing is we're going to create the info class here. We need to have a display flex so that it's all in one row our image and our container. We also want them to be spaced apart from each other so that they're sitting at the far corners of our info block and we need to add some padding as well. Now the padding is a little bit tricky here because we actually don't want to have padding on the side where the image is, we only want to have it on the right hand side. We need 4.8 padding here, but the thing is then when it turns around we need 4.8, it should…
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)
-
-
-
-
-
-