Added timexone island
Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
parent
9241dc0783
commit
1e847898b9
9 changed files with 288 additions and 155 deletions
|
|
@ -1,9 +1,19 @@
|
|||
---
|
||||
import NavBar from '../components/NavBar.astro';
|
||||
|
||||
export interface Props {
|
||||
title: string;
|
||||
navLinks: {
|
||||
to: string;
|
||||
name: string;
|
||||
img: {
|
||||
src: string;
|
||||
alt: string;
|
||||
}
|
||||
}[] | undefined
|
||||
}
|
||||
|
||||
const { title } = Astro.props;
|
||||
const { title, navLinks } = Astro.props;
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
|
@ -16,6 +26,10 @@ const { title } = Astro.props;
|
|||
<title>{title}</title>
|
||||
</head>
|
||||
<body>
|
||||
{ navLinks != undefined ? (
|
||||
<NavBar links={navLinks} />
|
||||
) : (<!-- If there were NavLinks, they would be here -->)
|
||||
}
|
||||
<slot />
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue