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.
Metadata for SEO and social media with Next.js
From the course: Master Next.js: Elaborate Hands-On Web Development, React Basics, Advanced Next.js, and Deployment
Metadata for SEO and social media with Next.js
OK, so in the last lesson, we just wrote out relatively quickly a couple of different utility rules for different heading sizes and a few extra tags that we can bring in. Then now that we've done that, let's actually go out and actually write out the layout. And we're going to bring together a few of the concepts that we've been discussing and working on in this section, including the image, the head link, and, of course, styles. So let's import in our layout here head from next slash head. Let's import. We got the layout styles already, so we don't need that. Let's bring an image from next slash image. Let's import our util styles that we just worked on. And that's going to be all the way back in our... Actually, it's just one level back, right? Into styles and then into utils. Here, let me expand this. And we're going to want the link. So we're going to import link from next-link. All right. And we're going to add some global variables. So we're going to have a constant for the name…
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)
Download the CSS starter kit project from Next.js official7m 27s
-
(Locked)
How images optimize with Next.js5m 31s
-
(Locked)
Scripts and header data and props with Next.js6m 58s
-
(Locked)
CSS modules and Next.js optimizations with layout7m 12s
-
(Locked)
Global styling with Next.js4m 47s
-
(Locked)
Customizing utility styles with Next.js9m 55s
-
(Locked)
Metadata for SEO and social media with Next.js6m 43s
-
(Locked)
Writing dynamic layout components with Next.js11m 31s
-
(Locked)
How to use children and props in React and Next.js10m 54s
-
(Locked)
-
-
-