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 intro component - Next.js Tutorial
From the course: The Freelance Stack: Real Project with Next.js and Strapi
Styling: Article intro component
To style this component we're going to create a new partial file here in our blog folder, in the sass folder. So we're going to go and say article overview SCSS. Now what do we have to do? Well the first thing as well, and let me just split this to the right so that we can see what we're doing. We're going to have this one here be a flex container, right? We again have two columns left hand side text right hand side table of contents and we want to spread them apart so we're going to say justify content space between so that both of them sit at opposing ends on our page. Now one thing that I forgot again here is to bring in the component into the main css so components blog article overview just like that but now we see exactly that. The excerpt right now is taking up a lot of space so we want to change that and how are we going to do that we can just select we can just select the info block right here and say that one should actually have a width of should have a width of 60% just…
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)
-
-