Created
October 3, 2023 11:37
-
-
Save anartzdev/99eda99a8cd48731eb76c50eb3aa5bdf to your computer and use it in GitHub Desktop.
Qwik Book - Layouts - Nested layouts Base files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { component$ } from '@builder.io/qwik'; | |
export default component$(() => { | |
return <div> | |
<h1>Ruta "/about"</h1> | |
Esta es la página 'about' | |
</div>; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { component$ } from '@builder.io/qwik'; | |
import type { DocumentHead } from '@builder.io/qwik-city'; | |
export default component$(() => { | |
return ( | |
<div> | |
<h1>Ruta "/"</h1> | |
Esta es la página principal | |
</div> | |
); | |
}); | |
export const head: DocumentHead = { | |
title: 'Welcome to Qwik', | |
meta: [ | |
{ | |
name: 'description', | |
content: 'Qwik site description', | |
}, | |
], | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { component$, Slot } from '@builder.io/qwik'; | |
export default component$(() => { | |
return ( | |
<div> | |
<p> | |
<code>src/routes/layout.tsx</code> | |
</p> | |
<Slot /> | |
</div> | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment