create-qwik 0.0.108 → 0.0.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -19
- package/create-qwik.cjs +3 -0
- package/index.cjs +121 -0
- package/package.json +11 -7
- package/starters/apps/base/.prettierignore +6 -0
- package/starters/apps/base/README.md +41 -16
- package/starters/apps/base/gitignore +4 -6
- package/starters/apps/base/package.json +20 -23
- package/starters/apps/base/public/favicon.svg +1 -0
- package/starters/apps/base/src/entry.preview.tsx +6 -0
- package/starters/apps/base/src/entry.ssr.tsx +7 -5
- package/starters/apps/base/src/routes/service-worker.ts +9 -0
- package/starters/apps/base/tsconfig.json +5 -4
- package/starters/apps/base/vite.config.ts +3 -6
- package/starters/apps/blank/package.json +2 -15
- package/starters/apps/blank/src/components/header/header.css +37 -0
- package/starters/apps/blank/src/components/header/header.tsx +34 -0
- package/starters/apps/blank/src/components/icons/qwik.tsx +32 -0
- package/starters/apps/blank/src/components/router-head/router-head.tsx +43 -0
- package/starters/apps/blank/src/global.css +70 -3
- package/starters/apps/blank/src/root.tsx +17 -9
- package/starters/apps/blank/src/routes/index.tsx +81 -0
- package/starters/apps/{qwik-city → blank}/src/routes/layout.tsx +4 -6
- package/starters/apps/documentation-site/package.json +9 -0
- package/starters/apps/{qwik-city → documentation-site}/src/components/breadcrumbs/breadcrumbs.css +0 -0
- package/starters/apps/{qwik-city → documentation-site}/src/components/breadcrumbs/breadcrumbs.tsx +0 -0
- package/starters/apps/{qwik-city → documentation-site}/src/components/footer/footer.css +1 -1
- package/starters/apps/{qwik-city → documentation-site}/src/components/footer/footer.tsx +13 -6
- package/starters/apps/documentation-site/src/components/header/header.css +34 -0
- package/starters/apps/documentation-site/src/components/header/header.tsx +26 -0
- package/starters/apps/documentation-site/src/components/icons/qwik.tsx +20 -0
- package/starters/apps/{qwik-city → documentation-site}/src/components/menu/menu.css +0 -0
- package/starters/apps/{qwik-city → documentation-site}/src/components/menu/menu.tsx +5 -5
- package/starters/apps/documentation-site/src/components/on-this-page/on-this-page.css +33 -0
- package/starters/apps/documentation-site/src/components/on-this-page/on-this-page.tsx +62 -0
- package/starters/apps/documentation-site/src/components/router-head/router-head.tsx +43 -0
- package/starters/apps/documentation-site/src/global.css +66 -0
- package/starters/apps/documentation-site/src/root.tsx +26 -0
- package/starters/apps/documentation-site/src/routes/about-us/index.md +15 -0
- package/starters/apps/documentation-site/src/routes/docs/advanced/index.md +11 -0
- package/starters/apps/documentation-site/src/routes/docs/docs.css +22 -0
- package/starters/apps/documentation-site/src/routes/docs/getting-started/index.md +13 -0
- package/starters/apps/documentation-site/src/routes/docs/index.md +22 -0
- package/starters/apps/documentation-site/src/routes/docs/layout.tsx +25 -0
- package/starters/apps/documentation-site/src/routes/docs/menu.md +21 -0
- package/starters/apps/documentation-site/src/routes/index.tsx +89 -0
- package/starters/apps/documentation-site/src/routes/layout.tsx +15 -0
- package/starters/apps/library/package.json +1 -0
- package/starters/apps/{qwik-city → library}/tsconfig.json +1 -4
- package/starters/apps/library/vite.config.ts +1 -6
- package/create-qwik +0 -107
- package/index.js +0 -22
- package/starters/apps/base/public/favicon.ico +0 -0
- package/starters/apps/base/src/root.tsx +0 -14
- package/starters/apps/blank/src/components/app/app.tsx +0 -54
- package/starters/apps/blank/src/components/logo/logo.tsx +0 -16
- package/starters/apps/blank/src/entry.express.tsx +0 -59
- package/starters/apps/blank/src/entry.ssr.tsx +0 -15
- package/starters/apps/perf.prod/package.json +0 -22
- package/starters/apps/perf.prod/src/components/app/app.tsx +0 -189
- package/starters/apps/perf.prod/src/entry.express.tsx +0 -59
- package/starters/apps/perf.prod/src/entry.ssr.tsx +0 -15
- package/starters/apps/perf.prod/src/global.css +0 -3
- package/starters/apps/perf.prod/src/root.tsx +0 -18
- package/starters/apps/qwik-city/package.json +0 -19
- package/starters/apps/qwik-city/public/_headers +0 -2
- package/starters/apps/qwik-city/public/favicon.ico +0 -0
- package/starters/apps/qwik-city/public/favicons/android-chrome-192x192.png +0 -0
- package/starters/apps/qwik-city/public/favicons/android-chrome-256x256.png +0 -0
- package/starters/apps/qwik-city/public/favicons/apple-touch-icon.png +0 -0
- package/starters/apps/qwik-city/public/favicons/favicon.svg +0 -1
- package/starters/apps/qwik-city/public/logos/qwik-logo.svg +0 -1
- package/starters/apps/qwik-city/public/logos/qwik.svg +0 -1
- package/starters/apps/qwik-city/src/components/counter/counter.tsx +0 -19
- package/starters/apps/qwik-city/src/components/head/analytics.tsx +0 -13
- package/starters/apps/qwik-city/src/components/head/head.tsx +0 -34
- package/starters/apps/qwik-city/src/components/head/social.tsx +0 -10
- package/starters/apps/qwik-city/src/components/header/header.css +0 -46
- package/starters/apps/qwik-city/src/components/header/header.tsx +0 -36
- package/starters/apps/qwik-city/src/global.css +0 -24
- package/starters/apps/qwik-city/src/root.tsx +0 -16
- package/starters/apps/qwik-city/src/routes/about-us/index.tsx +0 -17
- package/starters/apps/qwik-city/src/routes/api/[org]/[user].json/index.ts +0 -15
- package/starters/apps/qwik-city/src/routes/api/api.css +0 -14
- package/starters/apps/qwik-city/src/routes/api/data.json/index.ts +0 -9
- package/starters/apps/qwik-city/src/routes/api/index@api.tsx +0 -34
- package/starters/apps/qwik-city/src/routes/api/layout-api.tsx +0 -37
- package/starters/apps/qwik-city/src/routes/blog/[...slug]/index.tsx +0 -36
- package/starters/apps/qwik-city/src/routes/blog/index.md +0 -7
- package/starters/apps/qwik-city/src/routes/blog/layout.tsx +0 -21
- package/starters/apps/qwik-city/src/routes/dashboard/dashboard.css +0 -14
- package/starters/apps/qwik-city/src/routes/dashboard/index.tsx +0 -15
- package/starters/apps/qwik-city/src/routes/dashboard/layout!.tsx +0 -44
- package/starters/apps/qwik-city/src/routes/dashboard/profile/index.tsx +0 -15
- package/starters/apps/qwik-city/src/routes/dashboard/settings/index.tsx +0 -15
- package/starters/apps/qwik-city/src/routes/docs/[category]/[id]/index.tsx +0 -23
- package/starters/apps/qwik-city/src/routes/docs/docs.css +0 -10
- package/starters/apps/qwik-city/src/routes/docs/getting-started/index.md +0 -44
- package/starters/apps/qwik-city/src/routes/docs/index.tsx +0 -14
- package/starters/apps/qwik-city/src/routes/docs/layout!.tsx +0 -31
- package/starters/apps/qwik-city/src/routes/docs/menu.md +0 -11
- package/starters/apps/qwik-city/src/routes/docs/overview/index.md +0 -7
- package/starters/apps/qwik-city/src/routes/index.tsx +0 -16
- package/starters/apps/qwik-city/src/routes/products/[id]/index.tsx +0 -123
- package/starters/apps/qwik-city/vite.config.ts +0 -17
- package/starters/features/prettier/.prettierignore +0 -23
- package/starters/features/prettier/package.json +0 -10
- package/starters/features/react/package.json +0 -26
- package/starters/features/react/src/entry.ssr.tsx +0 -11
- package/starters/features/react/src/react/app.tsx +0 -14
- package/starters/features/tailwindcss/package.json +0 -8
- package/starters/features/tailwindcss/postcss.config.cjs +0 -6
- package/starters/features/tailwindcss/src/global.css +0 -3
- package/starters/features/tailwindcss/tailwind.config.cjs +0 -7
- package/starters/servers/cloudflare-pages/.node-version +0 -1
- package/starters/servers/cloudflare-pages/README.md +0 -17
- package/starters/servers/cloudflare-pages/functions/[[path]].ts +0 -5
- package/starters/servers/cloudflare-pages/package.json +0 -18
- package/starters/servers/cloudflare-pages/public/_headers +0 -2
- package/starters/servers/cloudflare-pages/src/entry.cloudflare.tsx +0 -4
- package/starters/servers/express/README.md +0 -9
- package/starters/servers/express/package.json +0 -11
- package/starters/servers/express/src/entry.express.tsx +0 -31
- package/starters/servers/netlify-edge/.node-version +0 -1
- package/starters/servers/netlify-edge/README.md +0 -39
- package/starters/servers/netlify-edge/netlify.toml +0 -10
- package/starters/servers/netlify-edge/package.json +0 -19
- package/starters/servers/netlify-edge/public/_headers +0 -2
- package/starters/servers/netlify-edge/src/entry.netlify.ts +0 -6
- package/starters/servers/netlify-edge/tsconfig.json +0 -17
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { component$, Slot } from '@builder.io/qwik';
|
|
2
|
-
import Footer from '../components/footer/footer';
|
|
3
2
|
import Header from '../components/header/header';
|
|
4
3
|
|
|
5
4
|
export default component$(() => {
|
|
6
5
|
return (
|
|
7
|
-
<
|
|
6
|
+
<main>
|
|
8
7
|
<Header />
|
|
9
|
-
<
|
|
8
|
+
<section>
|
|
10
9
|
<Slot />
|
|
11
|
-
</
|
|
12
|
-
|
|
13
|
-
</div>
|
|
10
|
+
</section>
|
|
11
|
+
</main>
|
|
14
12
|
);
|
|
15
13
|
});
|
package/starters/apps/{qwik-city → documentation-site}/src/components/breadcrumbs/breadcrumbs.css
RENAMED
|
File without changes
|
package/starters/apps/{qwik-city → documentation-site}/src/components/breadcrumbs/breadcrumbs.tsx
RENAMED
|
File without changes
|
|
@@ -7,9 +7,6 @@ export default component$(() => {
|
|
|
7
7
|
return (
|
|
8
8
|
<footer>
|
|
9
9
|
<ul>
|
|
10
|
-
<li>
|
|
11
|
-
<a href="/blog">Blog</a>
|
|
12
|
-
</li>
|
|
13
10
|
<li>
|
|
14
11
|
<a href="/docs">Docs</a>
|
|
15
12
|
</li>
|
|
@@ -17,9 +14,19 @@ export default component$(() => {
|
|
|
17
14
|
<a href="/about-us">About Us</a>
|
|
18
15
|
</li>
|
|
19
16
|
<li>
|
|
20
|
-
<a
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
<a href="https://qwik.builder.io/">Qwik</a>
|
|
18
|
+
</li>
|
|
19
|
+
<li>
|
|
20
|
+
<a href="https://twitter.com/QwikDev">Twitter</a>
|
|
21
|
+
</li>
|
|
22
|
+
<li>
|
|
23
|
+
<a href="https://github.com/BuilderIO/qwik">Github</a>
|
|
24
|
+
</li>
|
|
25
|
+
<li>
|
|
26
|
+
<a href="https://qwik.builder.io/chat">Chat</a>
|
|
27
|
+
</li>
|
|
28
|
+
<li>
|
|
29
|
+
<a href="/">Home</a>
|
|
23
30
|
</li>
|
|
24
31
|
</ul>
|
|
25
32
|
</footer>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
header {
|
|
2
|
+
position: sticky;
|
|
3
|
+
top: 0;
|
|
4
|
+
z-index: 11;
|
|
5
|
+
display: grid;
|
|
6
|
+
grid-template-columns: minmax(130px, auto) 1fr;
|
|
7
|
+
gap: 30px;
|
|
8
|
+
height: 80px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: 10px;
|
|
11
|
+
background-color: white;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
header a.logo {
|
|
16
|
+
display: block;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
header a {
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
header nav {
|
|
24
|
+
text-align: right;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
header nav a {
|
|
28
|
+
display: inline-block;
|
|
29
|
+
padding: 5px 15px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
header nav a:hover {
|
|
33
|
+
text-decoration: underline;
|
|
34
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { component$, useStyles$ } from '@builder.io/qwik';
|
|
2
|
+
import { useLocation } from '@builder.io/qwik-city';
|
|
3
|
+
import { QwikLogo } from '../icons/qwik';
|
|
4
|
+
import styles from './header.css?inline';
|
|
5
|
+
|
|
6
|
+
export default component$(() => {
|
|
7
|
+
useStyles$(styles);
|
|
8
|
+
|
|
9
|
+
const { pathname } = useLocation();
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<header>
|
|
13
|
+
<a class="logo" href="/">
|
|
14
|
+
<QwikLogo />
|
|
15
|
+
</a>
|
|
16
|
+
<nav>
|
|
17
|
+
<a href="/docs" class={{ active: pathname.startsWith('/docs') }}>
|
|
18
|
+
Docs
|
|
19
|
+
</a>
|
|
20
|
+
<a href="/about-us" class={{ active: pathname.startsWith('/about-us') }}>
|
|
21
|
+
About Us
|
|
22
|
+
</a>
|
|
23
|
+
</nav>
|
|
24
|
+
</header>
|
|
25
|
+
);
|
|
26
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const QwikLogo = () => (
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 167 53">
|
|
3
|
+
<path
|
|
4
|
+
fill="#000"
|
|
5
|
+
d="M81.95 46.59h-6.4V35.4a12.25 12.25 0 0 1-7.06 2.17c-3.47 0-6.06-.94-7.67-2.92-1.6-1.96-2.42-5.45-2.42-10.43 0-5.1.95-8.62 2.87-10.67 1.96-2.08 5.1-3.09 9.43-3.09 4.1 0 7.82.57 11.25 1.67V46.6Zm-6.4-30.31a16.6 16.6 0 0 0-4.85-.66c-2.17 0-3.73.56-4.6 1.7-.85 1.17-1.32 3.38-1.32 6.65 0 3.08.41 5.14 1.26 6.26.86 1.1 2.33 1.67 4.5 1.67 2.84 0 5.01-1.17 5.01-2.62v-13Zm15.58-5.14c2.27 6.3 4.2 12.6 5.86 18.95 2.22-6.5 4.1-12.8 5.55-18.95h5.61a187.5 187.5 0 0 1 5.3 18.95c2.52-6.9 4.5-13.21 5.95-18.95h6.31a285.68 285.68 0 0 1-8.92 25.76h-7.53c-.86-4.6-2.22-10.14-4.04-16.75a151.51 151.51 0 0 1-4.89 16.75H92.8a287.88 287.88 0 0 0-8.17-25.76h6.5Zm41.7-3.58c-2.83 0-3.63-.7-3.63-3.59 0-2.57.82-3.18 3.63-3.18 2.83 0 3.63.6 3.63 3.18 0 2.89-.8 3.59-3.63 3.59Zm-3.18 3.58h6.4V36.9h-6.4V11.14Zm36.65 0c-4.54 6.46-7.72 10.39-9.49 11.8 1.46.95 5.36 5.95 10.2 13.98h-7.38c-6.02-9.13-8.89-13.07-10.3-13.67v13.67h-6.4V0h6.4v23.23c1.45-1.06 4.63-5.1 9.54-12.09h7.43Z"
|
|
6
|
+
/>
|
|
7
|
+
<path
|
|
8
|
+
fill="#18B6F6"
|
|
9
|
+
d="M40.97 52.54 32.1 43.7l-.14.02v-.1l-18.9-18.66 4.66-4.5-2.74-15.7L2 20.87a7.14 7.14 0 0 0-1.03 8.52l8.11 13.45a6.81 6.81 0 0 0 5.92 3.3l4.02-.05 21.96 6.46Z"
|
|
10
|
+
/>
|
|
11
|
+
<path
|
|
12
|
+
fill="#AC7EF4"
|
|
13
|
+
d="m45.82 20.54-1.78-3.3-.93-1.68-.37-.66-.04.04-4.9-8.47a6.85 6.85 0 0 0-5.99-3.43l-4.28.12-12.8.04a6.85 6.85 0 0 0-5.85 3.37L1.1 21.99 15 4.73l18.24 20.04L30 28.04l1.94 15.68.02-.04v.04h-.04l.04.04 1.51 1.47 7.36 7.19c.3.29.81-.06.6-.43l-4.54-8.93 7.91-14.63.26-.3a6.73 6.73 0 0 0 .76-7.6Z"
|
|
14
|
+
/>
|
|
15
|
+
<path
|
|
16
|
+
fill="#fff"
|
|
17
|
+
d="M33.3 24.69 15.02 4.75l2.6 15.62-4.66 4.51L31.91 43.7l-1.7-15.62 3.1-3.4Z"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { component$, useStyles$ } from '@builder.io/qwik';
|
|
1
|
+
import { component$, mutable, useStyles$ } from '@builder.io/qwik';
|
|
2
2
|
import { useContent, Link, useLocation } from '@builder.io/qwik-city';
|
|
3
3
|
import styles from './menu.css?inline';
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export default component$(() => {
|
|
6
6
|
useStyles$(styles);
|
|
7
7
|
|
|
8
8
|
const { menu } = useContent();
|
|
@@ -18,10 +18,10 @@ export const Menu = component$(() => {
|
|
|
18
18
|
{item.items?.map((item) => (
|
|
19
19
|
<li>
|
|
20
20
|
<Link
|
|
21
|
-
href={item.href}
|
|
22
|
-
class={{
|
|
21
|
+
href={mutable(item.href)}
|
|
22
|
+
class={mutable({
|
|
23
23
|
'is-active': loc.pathname === item.href,
|
|
24
|
-
}}
|
|
24
|
+
})}
|
|
25
25
|
>
|
|
26
26
|
{item.text}
|
|
27
27
|
</Link>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.on-this-page {
|
|
2
|
+
padding-bottom: 20px;
|
|
3
|
+
font-size: 0.9em;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.on-this-page h6 {
|
|
7
|
+
margin: 10px 0;
|
|
8
|
+
font-weight: bold;
|
|
9
|
+
text-transform: uppercase;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.on-this-page ul {
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0 0 20px 0;
|
|
15
|
+
list-style: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.on-this-page a {
|
|
19
|
+
position: relative;
|
|
20
|
+
display: block;
|
|
21
|
+
border: 0 solid #ddd;
|
|
22
|
+
border-left-width: 2px;
|
|
23
|
+
padding: 4px 2px 4px 8px;
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.on-this-page a.indent {
|
|
28
|
+
padding-left: 30px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.on-this-page a:hover {
|
|
32
|
+
border-color: var(--theme-accent);
|
|
33
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { useContent, useLocation } from '@builder.io/qwik-city';
|
|
2
|
+
import { component$, useStyles$ } from '@builder.io/qwik';
|
|
3
|
+
import styles from './on-this-page.css?inline';
|
|
4
|
+
|
|
5
|
+
export default component$(() => {
|
|
6
|
+
useStyles$(styles);
|
|
7
|
+
|
|
8
|
+
const { headings } = useContent();
|
|
9
|
+
const contentHeadings = headings?.filter((h) => h.level === 2 || h.level === 3) || [];
|
|
10
|
+
|
|
11
|
+
const { pathname } = useLocation();
|
|
12
|
+
const editUrl = `#update-your-edit-url-for-${pathname}`;
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<aside class="on-this-page">
|
|
16
|
+
{contentHeadings.length > 0 ? (
|
|
17
|
+
<>
|
|
18
|
+
<h6>On This Page</h6>
|
|
19
|
+
<ul>
|
|
20
|
+
{contentHeadings.map((h) => (
|
|
21
|
+
<li>
|
|
22
|
+
<a
|
|
23
|
+
href={`#${h.id}`}
|
|
24
|
+
class={{
|
|
25
|
+
block: true,
|
|
26
|
+
indent: h.level > 2,
|
|
27
|
+
}}
|
|
28
|
+
>
|
|
29
|
+
{h.text}
|
|
30
|
+
</a>
|
|
31
|
+
</li>
|
|
32
|
+
))}
|
|
33
|
+
</ul>
|
|
34
|
+
</>
|
|
35
|
+
) : null}
|
|
36
|
+
|
|
37
|
+
<h6>More</h6>
|
|
38
|
+
<ul>
|
|
39
|
+
<li>
|
|
40
|
+
<a href={editUrl} target="_blank">
|
|
41
|
+
Edit this page
|
|
42
|
+
</a>
|
|
43
|
+
</li>
|
|
44
|
+
<li>
|
|
45
|
+
<a href="https://qwik.builder.io/chat" target="_blank">
|
|
46
|
+
Join our community
|
|
47
|
+
</a>
|
|
48
|
+
</li>
|
|
49
|
+
<li>
|
|
50
|
+
<a href="https://github.com/BuilderIO/qwik" target="_blank">
|
|
51
|
+
Github
|
|
52
|
+
</a>
|
|
53
|
+
</li>
|
|
54
|
+
<li>
|
|
55
|
+
<a href="https://twitter.com/QwikDev" target="_blank">
|
|
56
|
+
@QwikDev
|
|
57
|
+
</a>
|
|
58
|
+
</li>
|
|
59
|
+
</ul>
|
|
60
|
+
</aside>
|
|
61
|
+
);
|
|
62
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { component$ } from '@builder.io/qwik';
|
|
2
|
+
import { useDocumentHead, useLocation } from '@builder.io/qwik-city';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The RouterHead component is placed inside of the document `<head>` element.
|
|
6
|
+
*/
|
|
7
|
+
export const RouterHead = component$(() => {
|
|
8
|
+
const head = useDocumentHead();
|
|
9
|
+
const loc = useLocation();
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<>
|
|
13
|
+
<title>{head.title}</title>
|
|
14
|
+
|
|
15
|
+
<link rel="canonical" href={loc.href} />
|
|
16
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
17
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
18
|
+
|
|
19
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
20
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
|
21
|
+
<link
|
|
22
|
+
href="https://fonts.googleapis.com/css2?family=Poppins&display=swap"
|
|
23
|
+
rel="stylesheet"
|
|
24
|
+
/>
|
|
25
|
+
|
|
26
|
+
<meta property="og:site_name" content="Qwik" />
|
|
27
|
+
<meta name="twitter:site" content="@QwikDev" />
|
|
28
|
+
<meta name="twitter:title" content="Qwik" />
|
|
29
|
+
|
|
30
|
+
{head.meta.map((m) => (
|
|
31
|
+
<meta {...m} />
|
|
32
|
+
))}
|
|
33
|
+
|
|
34
|
+
{head.links.map((l) => (
|
|
35
|
+
<link {...l} />
|
|
36
|
+
))}
|
|
37
|
+
|
|
38
|
+
{head.styles.map((s) => (
|
|
39
|
+
<style {...s.props} dangerouslySetInnerHTML={s.style} />
|
|
40
|
+
))}
|
|
41
|
+
</>
|
|
42
|
+
);
|
|
43
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--user-font-scale: 1rem - 16px;
|
|
7
|
+
--max-width: calc(100% - 1rem);
|
|
8
|
+
|
|
9
|
+
--font-body: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif,
|
|
10
|
+
Apple Color Emoji, Segoe UI Emoji;
|
|
11
|
+
--font-mono: 'IBM Plex Mono', Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console',
|
|
12
|
+
'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
|
|
13
|
+
'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
|
|
14
|
+
|
|
15
|
+
color-scheme: light;
|
|
16
|
+
--theme-accent: #006ce9;
|
|
17
|
+
--theme-text: #181818;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (min-width: 50em) {
|
|
21
|
+
:root {
|
|
22
|
+
--max-width: 46em;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
body {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
min-height: 100vh;
|
|
30
|
+
font-family: var(--font-body);
|
|
31
|
+
font-size: 1rem;
|
|
32
|
+
font-size: clamp(0.9rem, 0.75rem + 0.375vw + var(--user-font-scale), 1rem);
|
|
33
|
+
line-height: 1.5;
|
|
34
|
+
max-width: 100vw;
|
|
35
|
+
background: var(--theme-bg);
|
|
36
|
+
color: var(--theme-text);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
main {
|
|
40
|
+
padding: 10px 20px;
|
|
41
|
+
max-width: 960px;
|
|
42
|
+
margin: 0 auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
a {
|
|
46
|
+
color: var(--theme-accent);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
a:hover {
|
|
50
|
+
text-decoration: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
code,
|
|
54
|
+
kbd,
|
|
55
|
+
samp,
|
|
56
|
+
pre {
|
|
57
|
+
font-family: var(--font-mono);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
code {
|
|
61
|
+
background-color: rgb(224, 224, 224);
|
|
62
|
+
padding: 2px 4px;
|
|
63
|
+
border-radius: 3px;
|
|
64
|
+
font-size: 0.9em;
|
|
65
|
+
border-bottom: 2px solid #bfbfbf;
|
|
66
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { component$ } from '@builder.io/qwik';
|
|
2
|
+
import { QwikCity, RouterOutlet, ServiceWorkerRegister } from '@builder.io/qwik-city';
|
|
3
|
+
import { RouterHead } from './components/router-head/router-head';
|
|
4
|
+
|
|
5
|
+
import './global.css';
|
|
6
|
+
|
|
7
|
+
export default component$(() => {
|
|
8
|
+
/*
|
|
9
|
+
* The root of a QwikCity site always start with the <QwikCity> component,
|
|
10
|
+
* immediately followed by the document's <head> and <body>.
|
|
11
|
+
*
|
|
12
|
+
* Dont remove the `<head>` and `<body>` elements.
|
|
13
|
+
*/
|
|
14
|
+
return (
|
|
15
|
+
<QwikCity>
|
|
16
|
+
<head>
|
|
17
|
+
<meta charSet="utf-8" />
|
|
18
|
+
<RouterHead />
|
|
19
|
+
</head>
|
|
20
|
+
<body lang="en">
|
|
21
|
+
<RouterOutlet />
|
|
22
|
+
<ServiceWorkerRegister />
|
|
23
|
+
</body>
|
|
24
|
+
</QwikCity>
|
|
25
|
+
);
|
|
26
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: About Qwik
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# About Qwik
|
|
6
|
+
|
|
7
|
+
This page is at the root level, so it only uses the `/src/routes/layout.tsx` layout to wrap the page content.
|
|
8
|
+
|
|
9
|
+
## More info:
|
|
10
|
+
|
|
11
|
+
- [Layouts](https://qwik.builder.io/qwikcity/layout/overview/)
|
|
12
|
+
- [Routing](https://qwik.builder.io/qwikcity/routing/overview/)
|
|
13
|
+
- [Authoring Content](https://qwik.builder.io/qwikcity/content/component/)
|
|
14
|
+
- [Server Middleware](https://qwik.builder.io/qwikcity/middleware/overview/)
|
|
15
|
+
- [Static Site Generation (SSG)](https://qwik.builder.io/qwikcity/static-site-generation/overview/)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Advanced
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Advanced
|
|
6
|
+
|
|
7
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
8
|
+
|
|
9
|
+
## Ferrari
|
|
10
|
+
|
|
11
|
+
[Ferrari](https://en.wikipedia.org/wiki/Ferrari) (/fəˈrɑːri/; Italian: [ferˈraːri]) is an Italian luxury sports car manufacturer based in Maranello, Italy. Founded by Enzo Ferrari (1898–1988) in 1939 from the Alfa Romeo racing division as Auto Avio Costruzioni, the company built its first car in 1940, and produced its first Ferrari-badged car in 1947.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.docs {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: 210px auto 190px;
|
|
4
|
+
grid-template-areas: 'menu article on-this-page';
|
|
5
|
+
gap: 40px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.docs h1 {
|
|
9
|
+
margin-top: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.docs .menu {
|
|
13
|
+
grid-area: menu;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.docs article {
|
|
17
|
+
grid-area: article;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.docs .on-this-page {
|
|
21
|
+
grid-area: on-this-page;
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Getting Started
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Getting Started
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm create qwik@latest
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Ford GT40
|
|
12
|
+
|
|
13
|
+
The [Ford GT40](https://en.wikipedia.org/wiki/Ford_GT40) is a high-performance endurance racing car commissioned by the Ford Motor Company. It grew out of the "Ford GT" (for Grand Touring) project, an effort to compete in European long-distance sports car races, against Ferrari, which won the prestigious 24 Hours of Le Mans race from 1960 to 1965. Ford succeeded with the GT40, winning the 1966 through 1969 races.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Overview
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Docs Site Overview
|
|
6
|
+
|
|
7
|
+
This page is wrapped by two layouts because this source file `src/routes/docs/index.md` is nested. The applied layouts are:
|
|
8
|
+
|
|
9
|
+
- `src/routes/docs/layout.tsx`
|
|
10
|
+
- `src/routes/layout.tsx`
|
|
11
|
+
|
|
12
|
+
## Left Menu
|
|
13
|
+
|
|
14
|
+
The left menu ordering is created with the `src/routes/docs/menu.md` markdown file.
|
|
15
|
+
|
|
16
|
+
## More info:
|
|
17
|
+
|
|
18
|
+
- [Layouts](https://qwik.builder.io/qwikcity/layout/overview/)
|
|
19
|
+
- [Routing](https://qwik.builder.io/qwikcity/routing/overview/)
|
|
20
|
+
- [Authoring Content](https://qwik.builder.io/qwikcity/content/component/)
|
|
21
|
+
- [Server Middleware](https://qwik.builder.io/qwikcity/middleware/overview/)
|
|
22
|
+
- [Static Site Generation (SSG)](https://qwik.builder.io/qwikcity/static-site-generation/overview/)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { component$, Slot, useStyles$ } from '@builder.io/qwik';
|
|
2
|
+
import type { DocumentHead } from '@builder.io/qwik-city';
|
|
3
|
+
import Menu from '~/components/menu/menu';
|
|
4
|
+
import OnThisPage from '~/components/on-this-page/on-this-page';
|
|
5
|
+
import styles from './docs.css';
|
|
6
|
+
|
|
7
|
+
export default component$(() => {
|
|
8
|
+
useStyles$(styles);
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<div class="docs">
|
|
12
|
+
<Menu />
|
|
13
|
+
<article>
|
|
14
|
+
<Slot />
|
|
15
|
+
</article>
|
|
16
|
+
<OnThisPage />
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const head: DocumentHead = ({ head }) => {
|
|
22
|
+
return {
|
|
23
|
+
title: `${head.title} - Documentation`,
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Guide
|
|
2
|
+
|
|
3
|
+
## Guides
|
|
4
|
+
|
|
5
|
+
- [Getting Started](getting-started/index.md)
|
|
6
|
+
|
|
7
|
+
## Advanced
|
|
8
|
+
|
|
9
|
+
- [Overview](advanced/index.md)
|
|
10
|
+
|
|
11
|
+
## Examples
|
|
12
|
+
|
|
13
|
+
- [Hello World](https://qwik.builder.io/examples/introduction/hello-world/)
|
|
14
|
+
- [Tutorials](https://qwik.builder.io/tutorial/welcome/overview/)
|
|
15
|
+
- [Playground](https://qwik.builder.io/playground/)
|
|
16
|
+
|
|
17
|
+
## Community
|
|
18
|
+
|
|
19
|
+
- [@QwikDev](https://twitter.com/QwikDev)
|
|
20
|
+
- [Discord](https://qwik.builder.io/chat)
|
|
21
|
+
- [Github](https://github.com/BuilderIO/qwik)
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { component$ } from '@builder.io/qwik';
|
|
2
|
+
import type { DocumentHead } from '@builder.io/qwik-city';
|
|
3
|
+
|
|
4
|
+
export default component$(() => {
|
|
5
|
+
return (
|
|
6
|
+
<>
|
|
7
|
+
<h1>Welcome to Qwik Docs Starter</h1>
|
|
8
|
+
|
|
9
|
+
<ul>
|
|
10
|
+
<li>This homepage uses a layout without a menu.</li>
|
|
11
|
+
<li>
|
|
12
|
+
<span>The </span>
|
|
13
|
+
<a href="/docs">Documentation</a>
|
|
14
|
+
<span> pages use multiple nested layouts, one of them providing a left menu.</span>
|
|
15
|
+
</li>
|
|
16
|
+
<li>
|
|
17
|
+
Check out the <code>src/routes</code> directory to get started.
|
|
18
|
+
</li>
|
|
19
|
+
<li>
|
|
20
|
+
Add integrations with <code>npm run qwik add</code>.
|
|
21
|
+
</li>
|
|
22
|
+
<li>
|
|
23
|
+
More info about development in <code>README.md</code>
|
|
24
|
+
</li>
|
|
25
|
+
<li>
|
|
26
|
+
<a href="/docs">Qwik City</a>
|
|
27
|
+
<span> is the meta-framework for Qwik</span>
|
|
28
|
+
</li>
|
|
29
|
+
</ul>
|
|
30
|
+
|
|
31
|
+
<h2>Commands</h2>
|
|
32
|
+
|
|
33
|
+
<table class="commands">
|
|
34
|
+
<tr>
|
|
35
|
+
<td>
|
|
36
|
+
<code>npm run dev</code>
|
|
37
|
+
</td>
|
|
38
|
+
<td>Start the dev server and watch for changes.</td>
|
|
39
|
+
</tr>
|
|
40
|
+
<tr>
|
|
41
|
+
<td>
|
|
42
|
+
<code>npm run preview</code>
|
|
43
|
+
</td>
|
|
44
|
+
<td>Production build and start preview server.</td>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr>
|
|
47
|
+
<td>
|
|
48
|
+
<code>npm run build</code>
|
|
49
|
+
</td>
|
|
50
|
+
<td>Production build.</td>
|
|
51
|
+
</tr>
|
|
52
|
+
<tr>
|
|
53
|
+
<td>
|
|
54
|
+
<code>npm run qwik add</code>
|
|
55
|
+
</td>
|
|
56
|
+
<td>Add integration like edge servers and SSG.</td>
|
|
57
|
+
</tr>
|
|
58
|
+
</table>
|
|
59
|
+
|
|
60
|
+
<h2>Community</h2>
|
|
61
|
+
|
|
62
|
+
<ul>
|
|
63
|
+
<li>
|
|
64
|
+
<span>Questions or just want to say hi? </span>
|
|
65
|
+
<a href="https://qwik.builder.io/chat" target="_blank">
|
|
66
|
+
Chat on discord!
|
|
67
|
+
</a>
|
|
68
|
+
</li>
|
|
69
|
+
<li>
|
|
70
|
+
<span>Follow </span>
|
|
71
|
+
<a href="https://twitter.com/QwikDev" target="_blank">
|
|
72
|
+
@QwikDev
|
|
73
|
+
</a>
|
|
74
|
+
<span> on Twitter</span>
|
|
75
|
+
</li>
|
|
76
|
+
<li>
|
|
77
|
+
<span>Open issues and contribute on </span>
|
|
78
|
+
<a href="https://github.com/BuilderIO/qwik" target="_blank">
|
|
79
|
+
Github
|
|
80
|
+
</a>
|
|
81
|
+
</li>
|
|
82
|
+
</ul>
|
|
83
|
+
</>
|
|
84
|
+
);
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export const head: DocumentHead = {
|
|
88
|
+
title: 'Welcome to Qwik Docs Starter',
|
|
89
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { component$, Slot } from '@builder.io/qwik';
|
|
2
|
+
import Footer from '~/components/footer/footer';
|
|
3
|
+
import Header from '~/components/header/header';
|
|
4
|
+
|
|
5
|
+
export default component$(() => {
|
|
6
|
+
return (
|
|
7
|
+
<>
|
|
8
|
+
<Header />
|
|
9
|
+
<main>
|
|
10
|
+
<Slot />
|
|
11
|
+
</main>
|
|
12
|
+
<Footer />
|
|
13
|
+
</>
|
|
14
|
+
);
|
|
15
|
+
});
|