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.
Writing dynamic layout components with Next.js
From the course: Master Next.js: Elaborate Hands-On Web Development, React Basics, Advanced Next.js, and Deployment
Writing dynamic layout components with Next.js
Okay, let's finish up this layout page. We've made some excellent progress up to this point. So what did we do exactly? Well, we have our styles in from our layout module and we've learned about how with nextjs.module, we are not gonna run into any conflictions of renaming, of having the same class name, which can be an issue when you're working with classes. We created a utility of headings as well, which we haven't used yet, we have our image brought in. So the profile image picture that we took earlier, we're going to take that wonderful, beautiful profile pictures that we have of ourselves, where's mine, and our images over here, there I am, okay, wow. And cringe, cringe, cringe, and we're gonna take that and apply it as well. So what do we do so far? Well, we put a variable at top level for our name. We set up a site title, and then we added some metadata. And we really talked about metadata and how this plays a role with our SEO. And then our OG for the image, title, Twitter…
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)
-
-
-