mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
feat(astro): add page header component
This commit is contained in:
20
src/components/PageHeader.astro
Normal file
20
src/components/PageHeader.astro
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
import Backlink from '../components/Backlink.astro';
|
||||
import MainNavigation from '../components/MainNavigation.astro';
|
||||
import ThemeToggle from '../components/ThemeToggle.astro';
|
||||
|
||||
export interface Props {
|
||||
backLink?: string;
|
||||
}
|
||||
|
||||
const { backLink } = Astro.props;
|
||||
---
|
||||
|
||||
<header
|
||||
class="page-header grid grid-cols-18 grid-rows-layout mbe-layout print:hidden"
|
||||
role="banner"
|
||||
>
|
||||
<Backlink backLink={backLink} />
|
||||
<MainNavigation />
|
||||
<ThemeToggle />
|
||||
</header>
|
||||
Reference in New Issue
Block a user