concept this page in category nextjs

This is an excerpt from Manning's book Next.js in Action.
Consider older web technologies like PHP or static HTML sites. When working with PHP, your file my-page.php contained everything that the user sees when they visit this page. The same idea applies to static HTML content; everything in my-page.html is what the user sees. These abstractions map strongly to the result – the content that the user sees in the browser. This can be challenging in newer frameworks where the notion of a page is weaker. Developers must work harder to mentally map React component content to the concept of a page that is displayed on the screen. For example, first you might have to declare a URL route. Then, you can write a function that returns content when this route is activated. It’s kind of like a page, but it isn’t self-contained and requires more effort on our part.
Let’s break down the styles that make this page look the way it does. We’ll start with the global styles that affect elements beyond the content that this page component renders:
Listing 3.5 Global styles that apply to every element in the browser, not just content rendered by the page
*, *::before, *::after { box-sizing: border-box; } body { margin: 0; color: #333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }The first style sets the box-sizing property for every element on the screen. The second style applies to the <body> element and sets the default font color and font family to use. These two styles have something in common – they apply to elements that aren’t rendered by this page. For example, the <body> element is something that Next.js creates and renders for us. In order to style something like the <body> element, we have to tell Next.js that the styles we’re defining are scoped globally instead of scoped to the component, which is the default. We can set the global property when we’re creating a style like this: <style jsx global>.
We can see the sender, complete with a link to the friend details page, statically implemented as a link to Beth’s page for now, and the full message content below. To the right, we have the Reply button. Although this page is bare right now, it covers enough essentially functionality that we can move on before worrying about bells and whistles on this page. So, let’s look at the friend details page now. Just like the message details page, the friend details page needs data from the URL so that it can find the resource and supply data to the page: