From the course: Next.js 14 from Scratch: Build a Real-World Project Using Next.js 14 and MongoDB
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Homepage components - Next.js Tutorial
From the course: Next.js 14 from Scratch: Build a Real-World Project Using Next.js 14 and MongoDB
Homepage components
So now we're going to start to work on some of the homepage components. And I'm just going to bring over the theme just to kind of show you what we'll be doing. So I want to add this, the hero. Now, the search functionality we won't be doing till much later, but we'll just at least get it shown on the page. So we'll do the hero, and then these two info boxes I want to do. So basically, we'll have an info boxes component, which will be the grid that holds both of these. And then each one of these will be its own info box component that will be reusable and will take in certain properties like the background color, the text, the text color, the button info, things like that. And then finally, we'll do the footer as well, which is pretty simple, just has the logo. So those are the three things that I want to get done in this video. All right. So let's start with the hero. And you're going to have to use your theme files because we're going to grab the HTML from the HTML files. But let's…
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)
New project and folder structure6m 13s
-
(Locked)
Layout, homepage, and metadata10m 47s
-
(Locked)
File-based routing7m 16s
-
(Locked)
Server vs. client components and router hooks9m 44s
-
(Locked)
Start on the navbar10m 3s
-
(Locked)
Navbar links, drop-downs, and React icons12m 28s
-
(Locked)
Active links and conditional rendering11m 48s
-
(Locked)
Homepage components15m 45s
-
(Locked)
Properties page7m 26s
-
(Locked)
Property card dynamic data14m 41s
-
(Locked)
Home property listings7m 42s
-
(Locked)
Custom not found and loading pages5m 58s
-
(Locked)
-
-
-
-
-
-
-
-