Skip to content

Instantly share code, notes, and snippets.

@anartzdev
Created October 3, 2023 11:37
Show Gist options
  • Save anartzdev/99eda99a8cd48731eb76c50eb3aa5bdf to your computer and use it in GitHub Desktop.
Save anartzdev/99eda99a8cd48731eb76c50eb3aa5bdf to your computer and use it in GitHub Desktop.
Qwik Book - Layouts - Nested layouts Base files
import { component$ } from '@builder.io/qwik';
export default component$(() => {
return <div>
<h1>Ruta "/about"</h1>
Esta es la página 'about'
</div>;
});
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',
},
],
};
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