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.
Text with image component JSX - Next.js Tutorial
From the course: The Freelance Stack: Real Project with Next.js and Strapi
Text with image component JSX
After the easiest component we're now going to look at the hardest one of them all and that is this image with text component right here and the reason why it's the hardest is just because there's lots of different moving pieces. We have first of all the image here that can be landscape and portrait but it can also be left or right and then we also have the image caption so a little bit more styling to be done and we also have to bring in this paragraph with React markdown right because we want to give you the ability to have like bold font and line breaks and all of that stuff so we will have to write a little bit more JSX or actually we don't we're not going to write that much JSX but we will we will have to think carefully about how we structure our component at least okay so if we go back here we already see now that our headlines are there and it's going to be quite nice when we're done with this video to know that we're now also having created the paragraph with image so the…
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)
-
-