Skip to content

Commit

Permalink
Update site
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Jun 17, 2024
1 parent deea4a6 commit b66b55d
Show file tree
Hide file tree
Showing 21 changed files with 166 additions and 115 deletions.
2 changes: 1 addition & 1 deletion internal
50 changes: 50 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion site/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
NEXT_PUBLIC_PROJECT=Master CSS
NEXT_PUBLIC_VERSION=2.0.0-rc.40
NEXT_PUBLIC_VERSION=2.0.0-rc.41
1 change: 1 addition & 0 deletions site/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist=true
Original file line number Diff line number Diff line change
@@ -1,60 +1,58 @@
import CodeTabs from 'internal/components/CodeTabs'

export default () => <CodeTabs>
{[
{
name: 'iife.html',
lang: 'html',
code: `
<!DOCTYPE html>
<html lang="en" style="display: none">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preload" as="script" href="https://cdn.master.co/css-runtime@rc">
<link rel="preload" as="style" href="https://cdn.master.co/normal.css">
<link rel="stylesheet" href="https://cdn.master.co/normal.css">
<script>
window.masterCSSConfig = {
variables: {
primary: '#000000'
}
export default () => <CodeTabs children={[
{
name: 'iife.html',
lang: 'html',
children: `
<!DOCTYPE html>
<html lang="en" style="display: none">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preload" as="script" href="https://cdn.master.co/css-runtime@rc">
<link rel="preload" as="style" href="https://cdn.master.co/normal.css">
<link rel="stylesheet" href="https://cdn.master.co/normal.css">
<script>
window.masterCSSConfig = {
variables: {
primary: '#000000'
}
</script>
+ <script src="https://cdn.master.co/css-runtime@rc"></script>
</head>
<body>
<h1 class="**fg:primary** **font:40** **font:heavy** **italic** **m:12x** **text:center**">Hello World</h1>
</body>
</html>
`
},
{
name: 'esm.html',
lang: 'html',
code: `
<!DOCTYPE html>
<html lang="en" style="display: none">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.master.co/normal.css">
<link rel="preload" as="style" href="https://cdn.master.co/normal.css">
<link rel="modulepreload" href="https://cdn.master.co/css-runtime@rc/+esm">
+ <script type="module">
+ import { initCSSRuntime } from 'https://cdn.master.co/css-runtime@rc/+esm'
+ initCSSRuntime({
+ variables: {
+ primary: '#000000'
+ }
+ })
+ </script>
</head>
<body>
<h1 class="**fg:primary** **font:40** **font:heavy** **italic** **m:12x** **text:center**">Hello World</h1>
</body>
</html>
`
}
]}
</CodeTabs>
}
</script>
+ <script src="https://cdn.master.co/css-runtime@rc"></script>
</head>
<body>
<h1 class="**fg:primary** **font:40** **font:heavy** **italic** **m:12x** **text:center**">Hello World</h1>
</body>
</html>
`
},
{
name: 'esm.html',
lang: 'html',
children: `
<!DOCTYPE html>
<html lang="en" style="display: none">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.master.co/normal.css">
<link rel="preload" as="style" href="https://cdn.master.co/normal.css">
<link rel="modulepreload" href="https://cdn.master.co/css-runtime@rc/+esm">
+ <script type="module">
+ import { initCSSRuntime } from 'https://cdn.master.co/css-runtime@rc/+esm'
+ initCSSRuntime({
+ variables: {
+ primary: '#000000'
+ }
+ })
+ </script>
</head>
<body>
<h1 class="**fg:primary** **font:40** **font:heavy** **italic** **m:12x** **text:center**">Hello World</h1>
</body>
</html>
`
}
]} />
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import RuntimeRenderingIntro from '../../../rendering-modes/components/RuntimeRe
{
name: 'Terminal',
lang: 'bash',
code: `
children: `
ng new __project__
cd __project__
`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import StaticExtractionIntro from '../../../rendering-modes/components/StaticExt
{
name: 'Terminal',
lang: 'bash',
code: `
children: `
ng new __project__
cd __project__
`
Expand Down Expand Up @@ -108,7 +108,7 @@ import StaticExtractionIntro from '../../../rendering-modes/components/StaticExt
{
name: 'angular.json',
lang: 'js',
code: `
children: `
{
…,
"projects": {
Expand Down
16 changes: 8 additions & 8 deletions site/app/[locale]/guide/installation/blazor/content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende
{
name: 'Terminal',
lang: 'bash',
code: `
children: `
dotnet new blazorserver -o project --no-https -f net6.0
cd project
`
Expand All @@ -38,7 +38,7 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende
{
name: 'Terminal',
lang: 'bash',
code: `
children: `
mkdir npm_packages
cd npm_packages
`
Expand All @@ -58,7 +58,7 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende
{
name: 'Terminal',
lang: 'bash',
code: `
children: `
npm init -y
npm install webpack webpack-cli --save-dev
`
Expand Down Expand Up @@ -115,7 +115,7 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende
{
name: 'package.json',
lang: 'js',
code: `
children: `
{
...
scripts: {
Expand All @@ -140,7 +140,7 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende
{
name: 'project.csproj',
lang: 'html',
code: `
children: `
<Project>
...
+ <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
Expand All @@ -166,7 +166,7 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende
{
name: 'Pages/_Layout.cshtml',
lang: 'html',
code: `
children: `
<html>
...
<body>
Expand All @@ -192,7 +192,7 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende
{
name: 'Terminal',
lang: 'bash',
code: `
children: `
cd project
dotnet watch
`
Expand All @@ -209,7 +209,7 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende
{
name: 'Pages/_Layout.cshtml',
lang: 'html',
code: `
children: `
@page "/"
<PageTitle>Index</PageTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import StaticExtractionIntro from '../../../rendering-modes/components/StaticExt
{
name: 'Terminal',
lang: 'bash',
code: `
children: `
npm create blazor@latest project -- --template vanilla-ts
cd project
npm install
Expand Down
8 changes: 4 additions & 4 deletions site/app/[locale]/guide/installation/laravel/content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende
{
name: 'PHP',
lang: 'bash',
code: `php artisan serve`
children: `php artisan serve`
},
{
name: 'Vite',
lang: 'bash',
code: `npm run dev`
children: `npm run dev`
}
]}
</CodeTabs>
Expand Down Expand Up @@ -133,12 +133,12 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende
{
name: 'PHP',
lang: 'bash',
code: `php artisan serve`
children: `php artisan serve`
},
{
name: 'Vite',
lang: 'bash',
code: `npm run dev`
children: `npm run dev`
}
]}
</CodeTabs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ import StaticExtractionIntro from '../../../rendering-modes/components/StaticExt
{
name: 'PHP',
lang: 'bash',
code: `php artisan serve`
children: `php artisan serve`
},
{
name: 'Vite',
lang: 'bash',
code: `npm run dev`
children: `npm run dev`
}
]}
</CodeTabs>
Expand Down Expand Up @@ -153,12 +153,12 @@ import StaticExtractionIntro from '../../../rendering-modes/components/StaticExt
{
name: 'PHP',
lang: 'bash',
code: `php artisan serve`
children: `php artisan serve`
},
{
name: 'Vite',
lang: 'bash',
code: `npm run dev`
children: `npm run dev`
}
]}
</CodeTabs>
Expand Down
Loading

0 comments on commit b66b55d

Please sign in to comment.