initial commit
This commit is contained in:
commit
c70fc72952
143 changed files with 13594 additions and 0 deletions
17
src/components/Header.astro
Normal file
17
src/components/Header.astro
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
import Menu from './nav/Menu.astro';
|
||||
|
||||
const { nav, siteName, url } = Astro.props;
|
||||
const isHomePage = url === '/';
|
||||
---
|
||||
|
||||
<section class="main-title">
|
||||
<h1>
|
||||
{isHomePage ? (
|
||||
siteName
|
||||
) : (
|
||||
<a href="/" tabindex="0">{siteName}</a>
|
||||
)}
|
||||
</h1>
|
||||
<Menu nav={nav} />
|
||||
</section>
|
Reference in a new issue