A marketing page should have a header, a footer, and a main content area. For the header and footer, you can use the following components.
<Header>
<Footer>
name
"HYVOR"
subName
logo
darkToggle
true
center
end
On mobile and tablets (<=992px
), content in both center
and end
slots will be hidden, and a hamburger menu will be shown instead. The hamburger
menu will open a dropdown with the content of both slots.
<script>
import Header from "@hyvor/design/marketing/Header.svelte";
import Button from "@hyvor/design/Button.svelte";
import logo from '../img/logo.svg';
</script>
<Header
logo={logo}
subName="Talk"
>
<div slot="center">
<Button as="a" href="/docs" color="invisible">
Docs
</Button>
<Button as="a" href="/pricing" color="invisible">
Pricing
</Button>
</div>
<div slot="end">
<Button as="a" href="/login" color="invisible">
Login
</Button>
<Button as="a" href="/signup">
Signup
</Button>
</div>
</Header>
email
social
x
discord
github
youtube
linkedin
center
The following example shows how to use the Footer
and FooterLinkList
components to create a footer with two columns.
<Footer
email="foss@hyvor.com"
social={{
x: 'https://twitter.com'
}}
>
<div slot="center">
<div style="display:flex">
<FooterLinkList title="Product">
<a href="pricing" target="_blank">Pricing</a>
<a href="docs" target="_blank">Docs</a>
<a href="customers" target="_blank">Customers</a>
</FooterLinkList>
<FooterLinkList title="HYVOR">
<a href="https://hyvor.com" target="_blank">hyvor.com</a>
</FooterLinkList>
</div>
</div>
</Footer>