Open History to see the last commit
1import { component$ } from "@builder.io/qwik";
2import {
3 QwikCityProvider,
4 RouterOutlet,
5 ServiceWorkerRegister,
6} from "@builder.io/qwik-city";
7import { RouterHead } from "./components/router-head/router-head";
8import { isDev } from "@builder.io/qwik";
9
10import "./global.css";
11
12export default component$(() => {
13 /**
14 * The root of a QwikCity site always start with the <QwikCityProvider> component,
15 * immediately followed by the document's <head> and <body>.
16 *
17 * Don't remove the `<head>` and `<body>` elements.
18 */
19
20 return (
21 <QwikCityProvider>
22 <head>
23 <meta charset="utf-8" />
24 {!isDev && (
25 <link
26 rel="manifest"
27 href={`${import.meta.env.BASE_URL}manifest.json`}
28 />
29 )}
30 <RouterHead />
31 </head>
32 <body lang="en" <% if (tailwind) { %>class="bg-black text-white"<% } %>>
33 <RouterOutlet />
34 {!isDev && <ServiceWorkerRegister />}
35 </body>
36 </QwikCityProvider>
37 );
38});