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: Highlight article - Next.js Tutorial
From the course: The Freelance Stack: Real Project with Next.js and Strapi
Styling: Highlight article
So in the last one, in the last video we created the structure of the highlight article. Now we have to add the styling and we'll also take care of more general styles for the whole page, for the whole blog page. Because if you look at this here, we're always going to have the same margins around our elements. We always have, we should have 48 pixels to the side, like right here. There we go, 48. Everywhere it's 48, right? Everything should be exactly aligned. So for us to do that we can also create site-wide styling and we're also actually going to reuse that styling later on for the events page which looks exactly the same. The styling here, I mean it says 47 but it should have been 48 on all of these. So in order for us to do that we can go into our sass folder and in here we're just going to say pages so a pages directory here is mainly used exactly for that we're going to get general structure on specific pages you can also use this sort of stuff you can also use this sort of…
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)
Highlight Article JSX structure8m 8s
-
(Locked)
Styling: Highlight article6m 42s
-
(Locked)
Subscribe to newsletter JSX structure4m 34s
-
(Locked)
Styling: Subscribe to newsletter component9m 57s
-
(Locked)
Functionality subscribe to newsletter component6m 15s
-
(Locked)
Featured items component JSX structure11m 36s
-
(Locked)
Styling featured items component12m 19s
-
(Locked)
-
-
-
-