Reorganice navigation and add first landing pages
This commit is contained in:
36
src/layouts/LandingLayout.astro
Normal file
36
src/layouts/LandingLayout.astro
Normal file
@ -0,0 +1,36 @@
|
||||
---
|
||||
import PageLayout from '~/layouts/PageLayout.astro';
|
||||
import Header from '~/components/widgets/Header.astro';
|
||||
|
||||
import { headerData } from '~/navigation';
|
||||
import { MetaData } from '~/types';
|
||||
|
||||
export interface Props {
|
||||
metadata?: MetaData;
|
||||
}
|
||||
|
||||
const { metadata } = Astro.props;
|
||||
---
|
||||
|
||||
<PageLayout metadata={metadata}>
|
||||
<Fragment slot="announcement">
|
||||
<slot name="announcement" />
|
||||
</Fragment>
|
||||
<Fragment slot="header">
|
||||
<slot name="header">
|
||||
<Header
|
||||
links={headerData?.links[2] ? [headerData.links[2]] : undefined}
|
||||
actions={[
|
||||
{
|
||||
type: 'ghost',
|
||||
text: 'Download',
|
||||
href: 'https://github.com/onwidget/astrowind'
|
||||
},
|
||||
]}
|
||||
showToggleTheme
|
||||
position="right"
|
||||
/>
|
||||
</slot>
|
||||
</Fragment>
|
||||
<slot />
|
||||
</PageLayout>
|
Reference in New Issue
Block a user