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: Article headline - Next.js Tutorial
From the course: The Freelance Stack: Real Project with Next.js and Strapi
Styling: Article headline
So this one will be very very quick because the only styling we actually have to do is the margin at the bottom and we have 30 pixels here so 3 rem from the headline and there's also one thing here I don't actually want to create individual elements or individual files for each one of those components because most of them are actually going to be quite simple except for the paragraph with image that we're going to do next. So what I'm going to do here is within the block folder I'm just going to call this article components as CSS and I'm going to write all my styling in there because for example the article headline headline is just literally going to be width 100% and a margin bottom of 3rem and that is it. We don't have to do more here except don't forget to bring this into the main CSS right here.
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)
Create dynamic zone in Strapi for customizable blog content14m 6s
-
(Locked)
Creating data for highlight article8m 28s
-
(Locked)
Article hero section JSX5m 45s
-
(Locked)
Styling: Article hero section5m 26s
-
(Locked)
Article intro component JSX8m 40s
-
(Locked)
Styling: Article intro component5m 29s
-
(Locked)
Generic article component to render different component depending on Strapi data9m 14s
-
(Locked)
Article headline JSX3m 15s
-
(Locked)
Styling: Article headline1m
-
(Locked)
Text with image component JSX15m 9s
-
(Locked)
Styling: Text with image component5m 48s
-
(Locked)
Article paragraph JSX2m 23s
-
(Locked)
Styling: Article paragraph1m 6s
-
(Locked)
Image component JSX3m 49s
-
(Locked)
Styling: Image component2m 20s
-
(Locked)
Other articles section on individual blog page3m 17s
-
(Locked)
Blog section homepage JSX13m 11s
-
(Locked)
Styling: Blog section homepage8m 52s
-
(Locked)
Fix article item for featured items on homepage1m 18s
-
(Locked)
-
-