We'll start with the Once UI Starter which gives us access to 100+ Once UI components and a minimalistic Next.js boilerplate.Clone the repository and set up the local environment as explained in the local environment setup guide.
Create the layout
Let's create two new components in the components folder: Header.tsx and Footer.tsx.
The position="sticky" prop makes the header sticky, so it stays at the top of the page when scrolling. The light and dark props are used to conditionally render the logo based on the current theme. Don't forget to change the svg files to your own logo. The xs={{hide: true}} prop hides the navigation links on mobile.