Components
Header
Guide for Header.svelte component
This component will hold your logo, nav links, and a CTA button. On mobile it will automatically collapse into a hamburger button.
Location: src/components/Header.svelte
Setup
To change links you can edit the navLinks
array:
Updating the links array will change both desktop and mobile nav!
Header.svelte
To utilize the scrolling feature, you will need to add the href chosen for the nav link to an element on the page. See the
Pricing.svelte
component for a demo.