From the course: Master Next.js: Elaborate Hands-On Web Development, React Basics, Advanced Next.js, and Deployment
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Polishing a Next.js component with styling
From the course: Master Next.js: Elaborate Hands-On Web Development, React Basics, Advanced Next.js, and Deployment
Polishing a Next.js component with styling
Okay, so let's polish this homepage. You know, wouldn't you rather walk into a home that has a nice facade, brick, newly laid out curb factor, beautiful trees, whatever, bushes that have been cut to make a statue of your face. I don't know. Anyway, let's just get this homepage looking nice and shiny. So we want to have these link components. First of all, you can't go anywhere. So let's go back into our code and let's move back to our index code. So that would be here in our pages and index at the top over here. And let's bring in the two things here. Oh, well, so we got next link. We're just not using it anymore. So we'll bring that back. And let's also bring in the date formatting. So we're going to import date from components. And that would be date. And at the bottom of the home component, where we have our lists and we're listing items here, let's modify this code. So right now our title isn't anything, it's just a title. So why don't we wrap it in a link that would then link…
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)
How to create dynamic routes with Next.js7m 15s
-
(Locked)
getStaticPaths with Next.js implementation5m 14s
-
(Locked)
Mastering dynamic static rendering with Next.js12m 3s
-
(Locked)
Rendering markdown and security vulnerabilities with injected HTML11m 23s
-
(Locked)
Polishing the dynamic post pages10m 43s
-
(Locked)
Polishing a Next.js component with styling7m 22s
-
(Locked)
Fetching data and database querying plus ISR with Next.js11m 26s
-
(Locked)
API routes with Next.js9m 1s
-
(Locked)
-