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.
Render InfoBlocks on experience page - Next.js Tutorial
From the course: The Freelance Stack: Real Project with Next.js and Strapi
Render InfoBlocks on experience page
So, absolutely amazing. We are in a really good spot. I haven't actually refreshed this again. Now it's exactly how it should be according to the design. What we want to do now is the same thing on the experience page. Oh, which doesn't have the data I think that's necessary anymore because we adjusted the info block component. So let's just go into the code and change it because I was promising you earlier on when we were writing all of those functions and we were having to deal with all that data from Strapi that it's going to make our life easier down the road. And I want to now prove it to you. So first of all I can get rid of all of this because we don't need any hard-coded data in here anymore. Instead what I need I need to actually do exactly the same thing that I did on the main page. So I could literally copy exactly this code over here. I just have to bring it in, so we have to bring fetch data from Strapi and process info blocks like that. We don't need the image component…
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)
Creating InfoBlock content type on Strapi14m 57s
-
(Locked)
Use single content type in Strapi to create InfoBlocks per page17m 33s
-
(Locked)
Fetch InfoBlock data on Strapi8m 27s
-
(Locked)
Fetch data from Strapi and process it16m 57s
-
(Locked)
Render InfoBlocks on page9m 20s
-
(Locked)
Create button from InfoBlock Strapi data on page7m 13s
-
(Locked)
Render InfoBlocks on experience page4m 45s
-
(Locked)
-
-
-
-
-