forked from QwikDev/qwik
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update qwik-city (QwikDev#834)
- Loading branch information
1 parent
0513687
commit 498d052
Showing
343 changed files
with
1,926 additions
and
1,387 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/chat https://discord.gg/bNVSQmPzqy 302 | ||
/docs /docs/overview 301 | ||
/examples /examples/introduction/hello-world 301 | ||
/guide /docs/overview 301 | ||
/tutorial /tutorial/welcome/overview 301 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { component$, Host, useContextProvider, useStore } from '@builder.io/qwik'; | ||
import { Content } from '@builder.io/qwik-city'; | ||
import { GlobalStore, SiteStore } from '../../context'; | ||
|
||
export const Body = component$( | ||
() => { | ||
const store = useStore<SiteStore>({ | ||
headerMenuOpen: false, | ||
sideMenuOpen: false, | ||
}); | ||
useContextProvider(GlobalStore, store); | ||
|
||
return ( | ||
<Host | ||
class={{ | ||
'header-open': store.headerMenuOpen, | ||
'menu-open': store.sideMenuOpen, | ||
}} | ||
> | ||
<Content /> | ||
</Host> | ||
); | ||
}, | ||
{ tagName: 'body' } | ||
); |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,39 @@ | ||
import { partytownSnippet } from '@builder.io/partytown/integration'; | ||
|
||
export const Head = () => ( | ||
<> | ||
<meta charSet="utf-8" /> | ||
|
||
<title>Qwik</title> | ||
<meta name="viewport" content="width=device-width" /> | ||
|
||
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net/" /> | ||
<link rel="dns-prefetch" href="https://cdn.builder.io/" /> | ||
|
||
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png" /> | ||
<link rel="icon" href="/favicons/favicon.svg" type="image/svg+xml" /> | ||
|
||
<meta name="apple-mobile-web-app-title" content="Qwik" /> | ||
<meta name="application-name" content="Qwik" /> | ||
<meta name="apple-mobile-web-app-title" content="MyApp" /> | ||
<meta name="theme-color" content="#0093ee" /> | ||
<link rel="manifest" href="/app.webmanifest" /> | ||
|
||
<meta name="twitter:site" content="@QwikDev" /> | ||
<meta name="twitter:creator" content="@QwikDev" /> | ||
<meta name="twitter:card" content="summary_large_image" /> | ||
|
||
<meta property="fb:app_id" content="676395883130092" /> | ||
|
||
<meta property="og:url" content="https://qwik.builder.io/" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:title" content="Qwik" /> | ||
<meta property="og:description" content="Qwik is Framework reimagined for the edge" /> | ||
<meta | ||
property="og:image" | ||
content="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F56f46c6818704d47957a587157e2444f?width=1200" | ||
/> | ||
<meta | ||
property="og:image:alt" | ||
content="Image of Qwik Framework Logo, Framework reimagined for the edge. Code snippet npm init qwik@latest" | ||
/> | ||
<meta property="og:locale" content="en_US" /> | ||
<meta property="og:site_name" content="QwikDev" /> | ||
|
||
<script | ||
innerHTML={partytownSnippet({ | ||
forward: ['dataLayer.push'], | ||
})} | ||
/> | ||
<script | ||
type="text/partytown" | ||
innerHTML={`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | ||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | ||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | ||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | ||
})(window,document,'script','dataLayer','GTM-NR2STLN');`} | ||
/> | ||
|
||
<script | ||
type="text/partytown" | ||
src="https://cdn.jsdelivr.net/npm/@builder.io/persist-attribution@0.0.1-beta-2/dist/persist-attribution.min.js" | ||
id="persist-attribution-init" | ||
data-send-page-view-events="true" | ||
/> | ||
</> | ||
import { component$ } from '@builder.io/qwik'; | ||
import { useDocumentHead, useLocation } from '@builder.io/qwik-city'; | ||
import { Manifest } from './manifest'; | ||
import { Social } from './social'; | ||
import { Vendor } from './vendor'; | ||
|
||
export const Head = component$( | ||
() => { | ||
const head = useDocumentHead(); | ||
const loc = useLocation(); | ||
|
||
return ( | ||
<> | ||
<meta charSet="utf-8" /> | ||
|
||
<title>{head.title ? `${head.title} - Qwik` : `Qwik`}</title> | ||
<link rel="canonical" href={loc.href} /> | ||
<meta name="viewport" content="width=device-width" /> | ||
|
||
<Manifest /> | ||
<Social loc={loc} head={head} /> | ||
<Vendor /> | ||
|
||
{head.meta.map((m) => ( | ||
<meta {...m} /> | ||
))} | ||
|
||
{head.links.map((l) => ( | ||
<link {...l} /> | ||
))} | ||
|
||
{head.styles.map((s) => ( | ||
<style {...s.props} dangerouslySetInnerHTML={s.style} /> | ||
))} | ||
</> | ||
); | ||
}, | ||
{ tagName: 'head' } | ||
); |
Oops, something went wrong.