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: FeaturedItem component adjusted for event - Next.js Tutorial
From the course: The Freelance Stack: Real Project with Next.js and Strapi
Styling: FeaturedItem component adjusted for event
We still have a few little things here to do in styling. The very first thing is that I notice this is actually not stretching across the whole width of the space, which is what we want, and obviously as well we need to add some margin here from the signup form to the bottom. If we look back onto our page, let's maybe go with this one first, we see that there's 60 pixels in between that, so let's do that first just so that we have the signup form completely done. So on the signup form, in the very first selector, we're just going to say margin bottom of 6 rem like that. Perfect, now that gives us a little bit of space here and the next thing we can do is now make sure that our container here actually stretches across the whole 100% available space. So back in our code we are going to go into our featured items element and in here the container has to have the width of 100% just like that. Beautiful. Now we do have one last little thing here to do which is now you can't actually even…
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)
Post requests in Strapi with the newsletter signup7m 7s
-
(Locked)
Hook up frontend to signup component in Strapi10m 16s
-
(Locked)
Strapi participant and event content type7m 21s
-
(Locked)
Feeding data into Strapi for all events6m 56s
-
(Locked)
Signup form JSX15m 50s
-
(Locked)
Styling: Signup form8m 56s
-
(Locked)
Signup form functionality: Sending data to Strapi from main events page18m 50s
-
(Locked)
Pregenerate individual event pages14m 12s
-
(Locked)
Event data processing4m 46s
-
(Locked)
Render individual event page based off Strapi data9m 43s
-
(Locked)
Sign up for specific event8m 56s
-
(Locked)
Fetch and filter upcoming events with a string query from Strapi15m 26s
-
(Locked)
Adjust featured items component for individual event page11m 26s
-
(Locked)
Styling: FeaturedItem component adjusted for event3m 45s
-
(Locked)
Fetch more events on individual event page & thank you10m 45s
-
(Locked)
-