Skip to content

Commit

Permalink
fix: header
Browse files Browse the repository at this point in the history
  • Loading branch information
Humberto Yupanqui Apaza committed Aug 13, 2023
1 parent e2177ce commit a0da547
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
2 changes: 2 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import Header from "../components/header/Header.astro";
export interface Props {
title: string;
}
Expand All @@ -19,6 +20,7 @@ const { title } = Astro.props;
<script src="/src/utils/darkMode.js"></script>
</head>
<body class="bg-zinc-100 dark:bg-zinc-950 w-full h-full flex flex-col">
<Header />
<slot />
</body>
</html>
Expand Down
2 changes: 0 additions & 2 deletions src/pages/404.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
---
import Footer from "../components/footer/Footer.astro";
import Header from "../components/header/Header.astro";
import Layout from "../layouts/Layout.astro";
import Error404 from "/public/404.gif";
---

<Layout title="Error 404, no lo he encontrado">
<Header />
<main class="w-full">
<div
class="lg:container lg:mx-auto flex items-center flex-col-reverse py-6 px-3 lg:px-0 md:py-8 md:flex-row"
Expand Down
3 changes: 1 addition & 2 deletions src/pages/blog.astro
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
import Header from "../components/header/Header.astro";
import Layout from "../layouts/Layout.astro";
---

<Layout title="Blog">
<Header />
<h1>Blog</h1>
</Layout>
3 changes: 1 addition & 2 deletions src/pages/books.astro
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
import Header from "../components/header/Header.astro";
import Layout from "../layouts/Layout.astro";
---

<Layout title="Libros">
<Header />
<h1>Hola</h1>
</Layout>
2 changes: 0 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
---
import Footer from "../components/footer/Footer.astro";
import Header from "../components/header/Header.astro";
import Main from "../components/main/Main.astro";
import Layout from "../layouts/Layout.astro";
---

<Layout title="Portafolio">
<Header />
<Main />
<Footer />
</Layout>
2 changes: 0 additions & 2 deletions src/pages/photos.astro
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
---
import Footer from "../components/footer/Footer.astro";
import Header from "../components/header/Header.astro";
import Layout from "../layouts/Layout.astro";
---

<Layout title="Fotos">
<Header />
<main class="lg:container lg:mx-auto w-full py-6 px-3 lg:px-10 md:py-8">
<div>
<h1
Expand Down

0 comments on commit a0da547

Please sign in to comment.