Update layout
- Move navbar into layout - Add layout to 404 page
This commit is contained in:
parent
11473a6b53
commit
6917b0c1bd
3 changed files with 25 additions and 20 deletions
|
|
@ -1,23 +1,9 @@
|
|||
---
|
||||
import Layout from '../layouts/Layout.astro';
|
||||
import Card from '../components/Card.astro';
|
||||
import Navbar from '../components/Navbar.astro';
|
||||
|
||||
const navbarLinks = [
|
||||
{ href: "/", text: "Home" },
|
||||
{ href: "/blog", text: "Blog" },
|
||||
{ href: "/portafolio", text: "Portafolio" },
|
||||
{ href: "/curriculum", text: "Curriculum" },
|
||||
{ href: "/contact", text: "Contact" },
|
||||
]
|
||||
---
|
||||
|
||||
<Layout title="Welcome to Astro.">
|
||||
<header>
|
||||
<Navbar links={navbarLinks}/>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<h1>Welcome to <span class="text-gradient">My Page :D</span></h1>
|
||||
<p class="instructions">
|
||||
|
|
@ -26,8 +12,3 @@ const navbarLinks = [
|
|||
</p>
|
||||
</Layout>
|
||||
|
||||
<style>
|
||||
header > :global(*) {
|
||||
margin-left: auto;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue