diff --git a/examples/blog-multiple-authors/.stackblitzrc b/examples/blog-multiple-authors/.stackblitzrc new file mode 100644 index 0000000000..43798ecff8 --- /dev/null +++ b/examples/blog-multiple-authors/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/examples/blog-multiple-authors/README.md b/examples/blog-multiple-authors/README.md index 68f2e536ba..53c9af60a3 100644 --- a/examples/blog-multiple-authors/README.md +++ b/examples/blog-multiple-authors/README.md @@ -4,6 +4,8 @@ npm init astro -- --template blog-multiple-authors ``` +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/blog-multiple-authors) + > πŸ§‘β€πŸš€ **Seasoned astronaut?** Delete this file. Have fun! Features: diff --git a/examples/blog/.stackblitzrc b/examples/blog/.stackblitzrc new file mode 100644 index 0000000000..43798ecff8 --- /dev/null +++ b/examples/blog/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/examples/blog/README.md b/examples/blog/README.md index 09673cc3d2..d01ff471af 100644 --- a/examples/blog/README.md +++ b/examples/blog/README.md @@ -4,6 +4,8 @@ npm init astro -- --template blog ``` +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/blog) + > πŸ§‘β€πŸš€ **Seasoned astronaut?** Delete this file. Have fun! Features: diff --git a/examples/docs/.stackblitzrc b/examples/docs/.stackblitzrc new file mode 100644 index 0000000000..43798ecff8 --- /dev/null +++ b/examples/docs/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/examples/docs/README.md b/examples/docs/README.md index 75e3b4f975..26505fe434 100644 --- a/examples/docs/README.md +++ b/examples/docs/README.md @@ -4,6 +4,8 @@ npm init astro -- --template docs ``` +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/docs) + ## Features - βœ… **Full Markdown support** diff --git a/examples/framework-lit/.stackblitzrc b/examples/framework-lit/.stackblitzrc new file mode 100644 index 0000000000..43798ecff8 --- /dev/null +++ b/examples/framework-lit/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/examples/framework-lit/README.md b/examples/framework-lit/README.md new file mode 100644 index 0000000000..413c58760d --- /dev/null +++ b/examples/framework-lit/README.md @@ -0,0 +1,9 @@ +# Astro + Lit Example + +``` +npm init astro -- --template framework-lit +``` + +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/framework-lit) + +This example showcases Astro working with [Lit](https://lit.dev/). \ No newline at end of file diff --git a/examples/framework-multiple/.stackblitzrc b/examples/framework-multiple/.stackblitzrc new file mode 100644 index 0000000000..43798ecff8 --- /dev/null +++ b/examples/framework-multiple/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/examples/framework-multiple/README.md b/examples/framework-multiple/README.md index 559e90bc9c..455ea371e6 100644 --- a/examples/framework-multiple/README.md +++ b/examples/framework-multiple/README.md @@ -4,6 +4,8 @@ npm init astro -- --template framework-multiple ``` +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/framework-multiple) + This example showcases Astro's built-in support for multiple frameworks ([React](https://reactjs.org), [Preact](https://preactjs.com), [Svelte](https://svelte.dev), and [Vue (`v3.x`)](https://v3.vuejs.org/)). No configuration is needed to enable these frameworksβ€”just start writing components in `src/components`. diff --git a/examples/framework-preact/.stackblitzrc b/examples/framework-preact/.stackblitzrc new file mode 100644 index 0000000000..43798ecff8 --- /dev/null +++ b/examples/framework-preact/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/examples/framework-preact/README.md b/examples/framework-preact/README.md index 5302fa9dbb..8b5dfd62f5 100644 --- a/examples/framework-preact/README.md +++ b/examples/framework-preact/README.md @@ -1,38 +1,11 @@ -# Using Preact with Astro +# Astro + Preact Example -This example showcases Astro's built-in support for [Preact](https://www.preactjs.com/). - -## Installation - -### Automatic - -Bootstrap your Astro project with this template! - -```shell +``` npm init astro -- --template framework-preact ``` -### Manual +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/framework-preact) -To use Preact components in your Astro project: - -1. Install `@astrojs/renderer-preact` - - ```shell - npm i @astrojs/renderer-preact - ``` - -2. Add `"@astrojs/renderer-preact"` to your `renderers` in `astro.config.mjs`. - - ```js - export default { - renderers: [ - "@astrojs/renderer-preact", - // optionally, others... - ] - } - ``` - -## Usage +This example showcases Astro working with [Preact](https://preactjs.com). Write your Preact components as `.jsx` or `.tsx` files in your project. diff --git a/examples/framework-react/.stackblitzrc b/examples/framework-react/.stackblitzrc new file mode 100644 index 0000000000..43798ecff8 --- /dev/null +++ b/examples/framework-react/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/examples/framework-react/README.md b/examples/framework-react/README.md index 3701554be3..f6f9a7941b 100644 --- a/examples/framework-react/README.md +++ b/examples/framework-react/README.md @@ -1,38 +1,11 @@ -# Using React with Astro +# Astro + React Example -This example showcases Astro's built-in support for [React](https://reactjs.org/). - -## Installation - -### Automatic - -Bootstrap your Astro project with this template! - -```shell +``` npm init astro -- --template framework-react ``` -### Manual +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/framework-react) -To use React components in your Astro project: - -1. Install `@astrojs/renderer-react` - - ```shell - npm i @astrojs/renderer-react - ``` - -2. Add `"@astrojs/renderer-react"` to your `renderers` in `astro.config.mjs`. - - ```js - export default { - renderers: [ - "@astrojs/renderer-react", - // optionally, others... - ] - } - ``` - -## Usage +This example showcases Astro working with [React](https://reactjs.org/). Write your React components as `.jsx` or `.tsx` files in your project. diff --git a/examples/framework-solid/.stackblitzrc b/examples/framework-solid/.stackblitzrc new file mode 100644 index 0000000000..43798ecff8 --- /dev/null +++ b/examples/framework-solid/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/examples/framework-solid/README.md b/examples/framework-solid/README.md index e7afc1b84f..c9bfa2baba 100644 --- a/examples/framework-solid/README.md +++ b/examples/framework-solid/README.md @@ -1,38 +1,11 @@ -# Using Solid with Astro +# Astro + Solid.js Example -This example showcases Astro's built-in support for [Solid](https://www.solidjs.com/). - -## Installation - -### Automatic - -Bootstrap your Astro project with this template! - -```shell -npm init astro --template framework-solid +``` +npm init astro -- --template framework-solid ``` -### Manual +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/framework-solid) -To use Solid components in your Astro project: - -1. Install `@astrojs/renderer-solid` - - ```shell - npm i @astrojs/renderer-solid - ``` - -2. Add `"@astrojs/renderer-solid"` to your `renderers` in `astro.config.mjs`. - - ```js - export default { - renderers: [ - "@astrojs/renderer-solid", - // optionally, others... - ] - } - ``` - -## Usage +This example showcases Astro working with [Solid](https://www.solidjs.com/). Write your Solid components as `.jsx` or `.tsx` files in your project. diff --git a/examples/framework-svelte/.stackblitzrc b/examples/framework-svelte/.stackblitzrc new file mode 100644 index 0000000000..43798ecff8 --- /dev/null +++ b/examples/framework-svelte/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/examples/framework-svelte/README.md b/examples/framework-svelte/README.md index deaf1da764..96352495a1 100644 --- a/examples/framework-svelte/README.md +++ b/examples/framework-svelte/README.md @@ -1,38 +1,9 @@ -# Using Svelte with Astro +# Astro + Svelte Example -This example showcases Astro's built-in support for [Svelte](https://svelte.dev/). - -## Installation - -### Automatic - -Bootstrap your Astro project with this template! - -```shell +``` npm init astro -- --template framework-svelte ``` -### Manual +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/framework-svelte) -To use Svelte components in your Astro project: - -1. Install `@astrojs/renderer-svelte` - - ```shell - npm i @astrojs/renderer-svelte - ``` - -2. Add `"@astrojs/renderer-svelte"` to your `renderers` in `astro.config.mjs`. - - ```js - export default { - renderers: [ - "@astrojs/renderer-svelte", - // optionally, others... - ] - } - ``` - -## Usage - -Write your Svelte components as `.svelte` files in your project. +This example showcases Astro working with [Svelte](https://svelte.dev/). diff --git a/examples/framework-vue/.stackblitzrc b/examples/framework-vue/.stackblitzrc new file mode 100644 index 0000000000..43798ecff8 --- /dev/null +++ b/examples/framework-vue/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/examples/framework-vue/README.md b/examples/framework-vue/README.md index 2c6240f012..8212f6a9ba 100644 --- a/examples/framework-vue/README.md +++ b/examples/framework-vue/README.md @@ -1,38 +1,10 @@ -# Using Vue with Astro +# Astro + Vue Example -This example showcases Astro's built-in support for [Vue](https://v3.vuejs.org/). - -## Installation - -### Automatic - -Bootstrap your Astro project with this template! - -```shell +``` npm init astro -- --template framework-vue ``` -### Manual +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/framework-vue) -To use Vue components in your Astro project: +This example showcases Astro working with [Vue](https://v3.vuejs.org/). -1. Install `@astrojs/renderer-vue` - - ```shell - npm i @astrojs/renderer-vue - ``` - -2. Add `"@astrojs/renderer-vue"` to your `renderers` in `astro.config.mjs`. - - ```js - export default { - renderers: [ - "@astrojs/renderer-vue", - // optionally, others... - ] - } - ``` - -## Usage - -Write your Vue components as `.vue` files in your project. diff --git a/examples/minimal/.stackblitzrc b/examples/minimal/.stackblitzrc new file mode 100644 index 0000000000..43798ecff8 --- /dev/null +++ b/examples/minimal/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/examples/minimal/README.md b/examples/minimal/README.md index 0326ec12f0..b1284d33b9 100644 --- a/examples/minimal/README.md +++ b/examples/minimal/README.md @@ -1,12 +1,20 @@ -# [Astro](https://astro.build) +# Astro Starter Kit: Minimal + +``` +npm init astro -- --template minimal +``` + +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/minimal) + +> πŸ§‘β€πŸš€ **Seasoned astronaut?** Delete this file. Have fun! + +## πŸš€ Project Structure Inside of your Astro project, you'll see the following folders and files: ``` / β”œβ”€β”€ public/ -β”‚ β”œβ”€β”€ robots.txt -β”‚ └── favicon.ico β”œβ”€β”€ src/ β”‚ └── pages/ β”‚ └── index.astro diff --git a/examples/portfolio/.stackblitzrc b/examples/portfolio/.stackblitzrc new file mode 100644 index 0000000000..43798ecff8 --- /dev/null +++ b/examples/portfolio/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/examples/portfolio/README.md b/examples/portfolio/README.md index bd1044325d..6a32943e79 100644 --- a/examples/portfolio/README.md +++ b/examples/portfolio/README.md @@ -4,6 +4,8 @@ npm init astro -- --template portfolio ``` +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/snowpackjs/astro/tree/latest/examples/portfolio) + > πŸ§‘β€πŸš€ **Seasoned astronaut?** Delete this file. Have fun! ## 🧞 Commands diff --git a/examples/snowpack/.gitignore b/examples/snowpack/.gitignore deleted file mode 100644 index d436c6dadd..0000000000 --- a/examples/snowpack/.gitignore +++ /dev/null @@ -1,18 +0,0 @@ -# build output -dist - -# dependencies -node_modules/ -.snowpack/ - -# logs -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# environment variables -.env -.env.production - -# macOS-specific files -.DS_Store diff --git a/examples/snowpack/.npmrc b/examples/snowpack/.npmrc deleted file mode 100644 index 0cc653b2c3..0000000000 --- a/examples/snowpack/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -## force pnpm to hoist -shamefully-hoist = true \ No newline at end of file diff --git a/examples/snowpack/.prettierrc b/examples/snowpack/.prettierrc deleted file mode 100644 index a20502b7f0..0000000000 --- a/examples/snowpack/.prettierrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "singleQuote": true, - "trailingComma": "all" -} diff --git a/examples/snowpack/LICENSE b/examples/snowpack/LICENSE deleted file mode 100644 index 4fa554b1c2..0000000000 --- a/examples/snowpack/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 Fred K. Schott - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/examples/snowpack/README.md b/examples/snowpack/README.md deleted file mode 100644 index bde1f08268..0000000000 --- a/examples/snowpack/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# Astro Demo - -## Getting set up - -1. Check out Astro at: https://github.com/snowpackjs/astro - - 1. Install and build Astro: - - ```shell - npm install - npm run build - ``` - - 2. Link Astro: - - ```shell - npm link - ``` - -2. In this project link Astro and install other deps: - -```shell -npm link astro -npm install -``` - -3. Run the Astro dev environment. - -```shell -npm start -``` - -4. Build the website. (Not yet working.) - -```shell -npm run build -``` diff --git a/examples/snowpack/astro.config.mjs b/examples/snowpack/astro.config.mjs deleted file mode 100644 index 14b5d565a9..0000000000 --- a/examples/snowpack/astro.config.mjs +++ /dev/null @@ -1,21 +0,0 @@ -// Full Astro Configuration API Documentation: -// https://docs.astro.build/reference/configuration-reference - -// @type-check enabled! -// VSCode and other TypeScript-enabled text editors will provide auto-completion, -// helpful tooltips, and warnings if your exported object is invalid. -// You can disable this by removing "@ts-check" and `@type` comments below. - -// @ts-check -export default /** @type {import('astro').AstroUserConfig} */ ({ - projectRoot: '.', - pages: './src/pages', - dist: './dist', - public: './public', - // Set "renderers" to "[]" to disable all default, builtin component support. - renderers: [ - '@astrojs/renderer-vue', - '@astrojs/renderer-svelte', - '@astrojs/renderer-preact', - ], -}); diff --git a/examples/snowpack/package.json b/examples/snowpack/package.json deleted file mode 100644 index 56fdac2c8b..0000000000 --- a/examples/snowpack/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@example/snowpack", - "version": "0.0.1", - "private": true, - "scripts": { - "start": "astro dev", - "build": "astro build", - "preview": "astro preview", - "test": "jest /__test__/", - "format": "prettier --write \"src/**/*.js\" && yarn format:css", - "lint": "prettier --check \"src/**/*.js\"" - }, - "dependencies": { - "date-fns": "^2.19.0", - "deepmerge": "^4.2.2", - "docsearch.js": "^2.6.3", - "htm": "^3.0.4" - }, - "devDependencies": { - "@contentful/rich-text-html-renderer": "^14.1.2", - "@contentful/rich-text-types": "^14.1.2", - "astro": "^0.20.7" - }, - "snowpack": { - "workspaceRoot": "../.." - } -} diff --git a/examples/snowpack/public/favicon/android-chrome-192x192.png b/examples/snowpack/public/favicon/android-chrome-192x192.png deleted file mode 100644 index 2c21cb5b96..0000000000 Binary files a/examples/snowpack/public/favicon/android-chrome-192x192.png and /dev/null differ diff --git a/examples/snowpack/public/favicon/android-chrome-512x512.png b/examples/snowpack/public/favicon/android-chrome-512x512.png deleted file mode 100644 index b63a9829e7..0000000000 Binary files a/examples/snowpack/public/favicon/android-chrome-512x512.png and /dev/null differ diff --git a/examples/snowpack/public/favicon/apple-touch-icon.png b/examples/snowpack/public/favicon/apple-touch-icon.png deleted file mode 100644 index 604af6675a..0000000000 Binary files a/examples/snowpack/public/favicon/apple-touch-icon.png and /dev/null differ diff --git a/examples/snowpack/public/favicon/favicon-16x16.png b/examples/snowpack/public/favicon/favicon-16x16.png deleted file mode 100644 index eca2bf2cf6..0000000000 Binary files a/examples/snowpack/public/favicon/favicon-16x16.png and /dev/null differ diff --git a/examples/snowpack/public/favicon/favicon-32x32.png b/examples/snowpack/public/favicon/favicon-32x32.png deleted file mode 100644 index 2a1a3b921e..0000000000 Binary files a/examples/snowpack/public/favicon/favicon-32x32.png and /dev/null differ diff --git a/examples/snowpack/public/favicon/favicon.ico b/examples/snowpack/public/favicon/favicon.ico deleted file mode 100644 index 1dd685c3a0..0000000000 Binary files a/examples/snowpack/public/favicon/favicon.ico and /dev/null differ diff --git a/examples/snowpack/public/favicon/site.webmanifest b/examples/snowpack/public/favicon/site.webmanifest deleted file mode 100644 index fa99de77db..0000000000 --- a/examples/snowpack/public/favicon/site.webmanifest +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "", - "short_name": "", - "icons": [ - { - "src": "/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "theme_color": "#ffffff", - "background_color": "#ffffff", - "display": "standalone" -} diff --git a/examples/snowpack/public/img/JSAwardWinner.jpg b/examples/snowpack/public/img/JSAwardWinner.jpg deleted file mode 100644 index 791708cc0c..0000000000 Binary files a/examples/snowpack/public/img/JSAwardWinner.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/JSAwardWinner.png b/examples/snowpack/public/img/JSAwardWinner.png deleted file mode 100644 index 5b5b0f0309..0000000000 Binary files a/examples/snowpack/public/img/JSAwardWinner.png and /dev/null differ diff --git a/examples/snowpack/public/img/ReactGuide.jpg b/examples/snowpack/public/img/ReactGuide.jpg deleted file mode 100644 index c03335756e..0000000000 Binary files a/examples/snowpack/public/img/ReactGuide.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/SvelteGuide.jpg b/examples/snowpack/public/img/SvelteGuide.jpg deleted file mode 100644 index ef73a2d579..0000000000 Binary files a/examples/snowpack/public/img/SvelteGuide.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/backpack.svg b/examples/snowpack/public/img/backpack.svg deleted file mode 100644 index e65d196900..0000000000 --- a/examples/snowpack/public/img/backpack.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/examples/snowpack/public/img/banner-2.jpg b/examples/snowpack/public/img/banner-2.jpg deleted file mode 100644 index 4e1bf04f07..0000000000 Binary files a/examples/snowpack/public/img/banner-2.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/browser-logos-all.png b/examples/snowpack/public/img/browser-logos-all.png deleted file mode 100644 index e347c71468..0000000000 Binary files a/examples/snowpack/public/img/browser-logos-all.png and /dev/null differ diff --git a/examples/snowpack/public/img/extra-space-3.jpg b/examples/snowpack/public/img/extra-space-3.jpg deleted file mode 100644 index fbeff1212f..0000000000 Binary files a/examples/snowpack/public/img/extra-space-3.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/extra-space-4.jpg b/examples/snowpack/public/img/extra-space-4.jpg deleted file mode 100644 index b881707ce3..0000000000 Binary files a/examples/snowpack/public/img/extra-space-4.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/extra-space-4.mp4 b/examples/snowpack/public/img/extra-space-4.mp4 deleted file mode 100644 index 41568364c7..0000000000 Binary files a/examples/snowpack/public/img/extra-space-4.mp4 and /dev/null differ diff --git a/examples/snowpack/public/img/guides/folder-structure.png b/examples/snowpack/public/img/guides/folder-structure.png deleted file mode 100644 index 97a5058f1a..0000000000 Binary files a/examples/snowpack/public/img/guides/folder-structure.png and /dev/null differ diff --git a/examples/snowpack/public/img/guides/getting-started/hello-world.gif b/examples/snowpack/public/img/guides/getting-started/hello-world.gif deleted file mode 100644 index c5eb2fb62a..0000000000 Binary files a/examples/snowpack/public/img/guides/getting-started/hello-world.gif and /dev/null differ diff --git a/examples/snowpack/public/img/guides/getting-started/npm-snowpack-confetti.gif b/examples/snowpack/public/img/guides/getting-started/npm-snowpack-confetti.gif deleted file mode 100644 index d525fee25c..0000000000 Binary files a/examples/snowpack/public/img/guides/getting-started/npm-snowpack-confetti.gif and /dev/null differ diff --git a/examples/snowpack/public/img/guides/getting-started/run-snowpack.jpg b/examples/snowpack/public/img/guides/getting-started/run-snowpack.jpg deleted file mode 100644 index 5f4dcd1337..0000000000 Binary files a/examples/snowpack/public/img/guides/getting-started/run-snowpack.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/guides/getting-started/snowpack-build.gif b/examples/snowpack/public/img/guides/getting-started/snowpack-build.gif deleted file mode 100644 index 6ed6cfc539..0000000000 Binary files a/examples/snowpack/public/img/guides/getting-started/snowpack-build.gif and /dev/null differ diff --git a/examples/snowpack/public/img/guides/getting-started/snowpack-font-css.jpg b/examples/snowpack/public/img/guides/getting-started/snowpack-font-css.jpg deleted file mode 100644 index 92895870ef..0000000000 Binary files a/examples/snowpack/public/img/guides/getting-started/snowpack-font-css.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/guides/react/buttons.svg b/examples/snowpack/public/img/guides/react/buttons.svg deleted file mode 100644 index 92870bee84..0000000000 --- a/examples/snowpack/public/img/guides/react/buttons.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - buttons - - - - - - - - - - \ No newline at end of file diff --git a/examples/snowpack/public/img/guides/react/folderstructure.png b/examples/snowpack/public/img/guides/react/folderstructure.png deleted file mode 100644 index 0df194c825..0000000000 Binary files a/examples/snowpack/public/img/guides/react/folderstructure.png and /dev/null differ diff --git a/examples/snowpack/public/img/guides/react/hmr.gif b/examples/snowpack/public/img/guides/react/hmr.gif deleted file mode 100644 index e0f74590fe..0000000000 Binary files a/examples/snowpack/public/img/guides/react/hmr.gif and /dev/null differ diff --git a/examples/snowpack/public/img/guides/react/minimalist-hello-world-react-logo.png b/examples/snowpack/public/img/guides/react/minimalist-hello-world-react-logo.png deleted file mode 100644 index 636b981472..0000000000 Binary files a/examples/snowpack/public/img/guides/react/minimalist-hello-world-react-logo.png and /dev/null differ diff --git a/examples/snowpack/public/img/guides/react/minimalist-hello-world-react-timer.png b/examples/snowpack/public/img/guides/react/minimalist-hello-world-react-timer.png deleted file mode 100644 index b396d408a9..0000000000 Binary files a/examples/snowpack/public/img/guides/react/minimalist-hello-world-react-timer.png and /dev/null differ diff --git a/examples/snowpack/public/img/guides/react/minimalist-hello-world-react.png b/examples/snowpack/public/img/guides/react/minimalist-hello-world-react.png deleted file mode 100644 index 300b07a4a2..0000000000 Binary files a/examples/snowpack/public/img/guides/react/minimalist-hello-world-react.png and /dev/null differ diff --git a/examples/snowpack/public/img/guides/react/minimalist-hello-world.png b/examples/snowpack/public/img/guides/react/minimalist-hello-world.png deleted file mode 100644 index 374067b7b6..0000000000 Binary files a/examples/snowpack/public/img/guides/react/minimalist-hello-world.png and /dev/null differ diff --git a/examples/snowpack/public/img/guides/react/react-fast-refresh.gif b/examples/snowpack/public/img/guides/react/react-fast-refresh.gif deleted file mode 100644 index 307884718a..0000000000 Binary files a/examples/snowpack/public/img/guides/react/react-fast-refresh.gif and /dev/null differ diff --git a/examples/snowpack/public/img/guides/react/react.gif b/examples/snowpack/public/img/guides/react/react.gif deleted file mode 100644 index eac29701d9..0000000000 Binary files a/examples/snowpack/public/img/guides/react/react.gif and /dev/null differ diff --git a/examples/snowpack/public/img/guides/react/snowpack-logo-tiny.svg b/examples/snowpack/public/img/guides/react/snowpack-logo-tiny.svg deleted file mode 100644 index beb073d9ac..0000000000 --- a/examples/snowpack/public/img/guides/react/snowpack-logo-tiny.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - snowpack-logo-black - - - - - - - - \ No newline at end of file diff --git a/examples/snowpack/public/img/guides/svelte/svelte-component-snowpack.gif b/examples/snowpack/public/img/guides/svelte/svelte-component-snowpack.gif deleted file mode 100644 index 21c817abc3..0000000000 Binary files a/examples/snowpack/public/img/guides/svelte/svelte-component-snowpack.gif and /dev/null differ diff --git a/examples/snowpack/public/img/guides/svelte/svelte-logo-snowpack.jpg b/examples/snowpack/public/img/guides/svelte/svelte-logo-snowpack.jpg deleted file mode 100644 index add7ef259d..0000000000 Binary files a/examples/snowpack/public/img/guides/svelte/svelte-logo-snowpack.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/guides/svelte/svelte-logo-style-snowpack.gif b/examples/snowpack/public/img/guides/svelte/svelte-logo-style-snowpack.gif deleted file mode 100644 index eb36e7a493..0000000000 Binary files a/examples/snowpack/public/img/guides/svelte/svelte-logo-style-snowpack.gif and /dev/null differ diff --git a/examples/snowpack/public/img/guides/svelte/svelte-snowpack-counter-1.gif b/examples/snowpack/public/img/guides/svelte/svelte-snowpack-counter-1.gif deleted file mode 100644 index 009a300ffe..0000000000 Binary files a/examples/snowpack/public/img/guides/svelte/svelte-snowpack-counter-1.gif and /dev/null differ diff --git a/examples/snowpack/public/img/how-does-it-work.jpg b/examples/snowpack/public/img/how-does-it-work.jpg deleted file mode 100644 index 8a9536f10b..0000000000 Binary files a/examples/snowpack/public/img/how-does-it-work.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/logo.png b/examples/snowpack/public/img/logo.png deleted file mode 100644 index d23fe090ee..0000000000 Binary files a/examples/snowpack/public/img/logo.png and /dev/null differ diff --git a/examples/snowpack/public/img/logos/babel.svg b/examples/snowpack/public/img/logos/babel.svg deleted file mode 100644 index 5cad6ccb00..0000000000 --- a/examples/snowpack/public/img/logos/babel.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/examples/snowpack/public/img/logos/jest.svg b/examples/snowpack/public/img/logos/jest.svg deleted file mode 100644 index 52aebab83f..0000000000 --- a/examples/snowpack/public/img/logos/jest.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/examples/snowpack/public/img/logos/modern-web.svg b/examples/snowpack/public/img/logos/modern-web.svg deleted file mode 100644 index 2d2a546ef0..0000000000 --- a/examples/snowpack/public/img/logos/modern-web.svg +++ /dev/null @@ -1,105 +0,0 @@ - - - Tilted sphere with longitudinal stripes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/snowpack/public/img/logos/postcss.svg b/examples/snowpack/public/img/logos/postcss.svg deleted file mode 100644 index baf9b1e760..0000000000 --- a/examples/snowpack/public/img/logos/postcss.svg +++ /dev/null @@ -1 +0,0 @@ -postcss-logo-symbol diff --git a/examples/snowpack/public/img/logos/preact.svg b/examples/snowpack/public/img/logos/preact.svg deleted file mode 100644 index f86c6ff633..0000000000 --- a/examples/snowpack/public/img/logos/preact.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/examples/snowpack/public/img/logos/react.svg b/examples/snowpack/public/img/logos/react.svg deleted file mode 100644 index ea77a618d9..0000000000 --- a/examples/snowpack/public/img/logos/react.svg +++ /dev/null @@ -1,9 +0,0 @@ - - React Logo - - - - - - - diff --git a/examples/snowpack/public/img/logos/sass.svg b/examples/snowpack/public/img/logos/sass.svg deleted file mode 100644 index a984437264..0000000000 --- a/examples/snowpack/public/img/logos/sass.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/examples/snowpack/public/img/logos/svelte.svg b/examples/snowpack/public/img/logos/svelte.svg deleted file mode 100644 index c051f1a34d..0000000000 --- a/examples/snowpack/public/img/logos/svelte.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/examples/snowpack/public/img/logos/tailwind.svg b/examples/snowpack/public/img/logos/tailwind.svg deleted file mode 100644 index 39e7e21726..0000000000 --- a/examples/snowpack/public/img/logos/tailwind.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/examples/snowpack/public/img/logos/vue.png b/examples/snowpack/public/img/logos/vue.png deleted file mode 100644 index 60e17006ad..0000000000 Binary files a/examples/snowpack/public/img/logos/vue.png and /dev/null differ diff --git a/examples/snowpack/public/img/logos/wasm.svg b/examples/snowpack/public/img/logos/wasm.svg deleted file mode 100644 index f2d67d77a3..0000000000 --- a/examples/snowpack/public/img/logos/wasm.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/examples/snowpack/public/img/logos/workbox.svg b/examples/snowpack/public/img/logos/workbox.svg deleted file mode 100644 index 7f56dbb03f..0000000000 --- a/examples/snowpack/public/img/logos/workbox.svg +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/snowpack/public/img/news/3d-product.jpeg b/examples/snowpack/public/img/news/3d-product.jpeg deleted file mode 100644 index 5a47b0b322..0000000000 Binary files a/examples/snowpack/public/img/news/3d-product.jpeg and /dev/null differ diff --git a/examples/snowpack/public/img/news/learn-snow-youtube.jpg b/examples/snowpack/public/img/news/learn-snow-youtube.jpg deleted file mode 100644 index 48db8bf5c9..0000000000 Binary files a/examples/snowpack/public/img/news/learn-snow-youtube.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/nomodule.png b/examples/snowpack/public/img/nomodule.png deleted file mode 100644 index 6d4c87b437..0000000000 Binary files a/examples/snowpack/public/img/nomodule.png and /dev/null differ diff --git a/examples/snowpack/public/img/plug-light.svg b/examples/snowpack/public/img/plug-light.svg deleted file mode 100644 index 371e561eab..0000000000 --- a/examples/snowpack/public/img/plug-light.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/examples/snowpack/public/img/plug-regular.svg b/examples/snowpack/public/img/plug-regular.svg deleted file mode 100644 index b3b29c0e5c..0000000000 --- a/examples/snowpack/public/img/plug-regular.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/examples/snowpack/public/img/post-snowpackv3-esbuild.png b/examples/snowpack/public/img/post-snowpackv3-esbuild.png deleted file mode 100644 index 873c75e529..0000000000 Binary files a/examples/snowpack/public/img/post-snowpackv3-esbuild.png and /dev/null differ diff --git a/examples/snowpack/public/img/post-snowpackv3-jsapi.png b/examples/snowpack/public/img/post-snowpackv3-jsapi.png deleted file mode 100644 index 02db17fd56..0000000000 Binary files a/examples/snowpack/public/img/post-snowpackv3-jsapi.png and /dev/null differ diff --git a/examples/snowpack/public/img/post-snowpackv3-routes.png b/examples/snowpack/public/img/post-snowpackv3-routes.png deleted file mode 100644 index f920964efc..0000000000 Binary files a/examples/snowpack/public/img/post-snowpackv3-routes.png and /dev/null differ diff --git a/examples/snowpack/public/img/post-snowpackv3-runtime.png b/examples/snowpack/public/img/post-snowpackv3-runtime.png deleted file mode 100644 index 816722ee2a..0000000000 Binary files a/examples/snowpack/public/img/post-snowpackv3-runtime.png and /dev/null differ diff --git a/examples/snowpack/public/img/react-guide.png b/examples/snowpack/public/img/react-guide.png deleted file mode 100644 index 0a0e82a245..0000000000 Binary files a/examples/snowpack/public/img/react-guide.png and /dev/null differ diff --git a/examples/snowpack/public/img/react-snarky-tweet-2.png b/examples/snowpack/public/img/react-snarky-tweet-2.png deleted file mode 100644 index 491d9937a1..0000000000 Binary files a/examples/snowpack/public/img/react-snarky-tweet-2.png and /dev/null differ diff --git a/examples/snowpack/public/img/react-snarky-tweet.png b/examples/snowpack/public/img/react-snarky-tweet.png deleted file mode 100644 index 841ead38d0..0000000000 Binary files a/examples/snowpack/public/img/react-snarky-tweet.png and /dev/null differ diff --git a/examples/snowpack/public/img/rocket-solid.svg b/examples/snowpack/public/img/rocket-solid.svg deleted file mode 100644 index 9d930e7a70..0000000000 --- a/examples/snowpack/public/img/rocket-solid.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/examples/snowpack/public/img/snowpack-27-screenshot-1.png b/examples/snowpack/public/img/snowpack-27-screenshot-1.png deleted file mode 100644 index a8b5b7a554..0000000000 Binary files a/examples/snowpack/public/img/snowpack-27-screenshot-1.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-27-screenshot-2.png b/examples/snowpack/public/img/snowpack-27-screenshot-2.png deleted file mode 100644 index d17f168a89..0000000000 Binary files a/examples/snowpack/public/img/snowpack-27-screenshot-2.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-27-screenshot-3.png b/examples/snowpack/public/img/snowpack-27-screenshot-3.png deleted file mode 100644 index b9de0a2e26..0000000000 Binary files a/examples/snowpack/public/img/snowpack-27-screenshot-3.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-build-example.png b/examples/snowpack/public/img/snowpack-build-example.png deleted file mode 100644 index 8f957e2acd..0000000000 Binary files a/examples/snowpack/public/img/snowpack-build-example.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-build-mov.mov b/examples/snowpack/public/img/snowpack-build-mov.mov deleted file mode 100644 index 0e0ae498ce..0000000000 Binary files a/examples/snowpack/public/img/snowpack-build-mov.mov and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-dev-example.png b/examples/snowpack/public/img/snowpack-dev-example.png deleted file mode 100644 index fa04b5018b..0000000000 Binary files a/examples/snowpack/public/img/snowpack-dev-example.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-dev-startup-2.png b/examples/snowpack/public/img/snowpack-dev-startup-2.png deleted file mode 100644 index ed1fb7cf4c..0000000000 Binary files a/examples/snowpack/public/img/snowpack-dev-startup-2.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-dev-startup.png b/examples/snowpack/public/img/snowpack-dev-startup.png deleted file mode 100644 index 38f30a1f45..0000000000 Binary files a/examples/snowpack/public/img/snowpack-dev-startup.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-logo-black.png b/examples/snowpack/public/img/snowpack-logo-black.png deleted file mode 100644 index 1a09e8181f..0000000000 Binary files a/examples/snowpack/public/img/snowpack-logo-black.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-logo-dark.png b/examples/snowpack/public/img/snowpack-logo-dark.png deleted file mode 100644 index f59f54d56f..0000000000 Binary files a/examples/snowpack/public/img/snowpack-logo-dark.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-logo-white.png b/examples/snowpack/public/img/snowpack-logo-white.png deleted file mode 100644 index 91437be368..0000000000 Binary files a/examples/snowpack/public/img/snowpack-logo-white.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-unbundled-example-2.png b/examples/snowpack/public/img/snowpack-unbundled-example-2.png deleted file mode 100644 index 72f6fa984f..0000000000 Binary files a/examples/snowpack/public/img/snowpack-unbundled-example-2.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-unbundled-example-3.png b/examples/snowpack/public/img/snowpack-unbundled-example-3.png deleted file mode 100644 index 8b96637c68..0000000000 Binary files a/examples/snowpack/public/img/snowpack-unbundled-example-3.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-unbundled-example.png b/examples/snowpack/public/img/snowpack-unbundled-example.png deleted file mode 100644 index 6624f910d4..0000000000 Binary files a/examples/snowpack/public/img/snowpack-unbundled-example.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-wordmark-black.png b/examples/snowpack/public/img/snowpack-wordmark-black.png deleted file mode 100644 index 61955b2f18..0000000000 Binary files a/examples/snowpack/public/img/snowpack-wordmark-black.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpack-wordmark-white.png b/examples/snowpack/public/img/snowpack-wordmark-white.png deleted file mode 100644 index 59ba2f893c..0000000000 Binary files a/examples/snowpack/public/img/snowpack-wordmark-white.png and /dev/null differ diff --git a/examples/snowpack/public/img/snowpackskypack.mp4 b/examples/snowpack/public/img/snowpackskypack.mp4 deleted file mode 100644 index b25736c0e1..0000000000 Binary files a/examples/snowpack/public/img/snowpackskypack.mp4 and /dev/null differ diff --git a/examples/snowpack/public/img/snowpackskypack.webm b/examples/snowpack/public/img/snowpackskypack.webm deleted file mode 100644 index abb941ccd8..0000000000 Binary files a/examples/snowpack/public/img/snowpackskypack.webm and /dev/null differ diff --git a/examples/snowpack/public/img/social-2.jpg b/examples/snowpack/public/img/social-2.jpg deleted file mode 100644 index fc88f97129..0000000000 Binary files a/examples/snowpack/public/img/social-2.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/social-2.png b/examples/snowpack/public/img/social-2.png deleted file mode 100644 index 5934af38e9..0000000000 Binary files a/examples/snowpack/public/img/social-2.png and /dev/null differ diff --git a/examples/snowpack/public/img/social-3.jpg b/examples/snowpack/public/img/social-3.jpg deleted file mode 100644 index 286ada8f79..0000000000 Binary files a/examples/snowpack/public/img/social-3.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/social-4.jpg b/examples/snowpack/public/img/social-4.jpg deleted file mode 100644 index 2b7ec7fad1..0000000000 Binary files a/examples/snowpack/public/img/social-4.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/social-4.png b/examples/snowpack/public/img/social-4.png deleted file mode 100644 index f90ad2561d..0000000000 Binary files a/examples/snowpack/public/img/social-4.png and /dev/null differ diff --git a/examples/snowpack/public/img/social-snowpackv3.jpg b/examples/snowpack/public/img/social-snowpackv3.jpg deleted file mode 100644 index 49f577597f..0000000000 Binary files a/examples/snowpack/public/img/social-snowpackv3.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/social.jpg b/examples/snowpack/public/img/social.jpg deleted file mode 100644 index 22c4b748c3..0000000000 Binary files a/examples/snowpack/public/img/social.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/stat.jpg b/examples/snowpack/public/img/stat.jpg deleted file mode 100644 index d72b16ad8b..0000000000 Binary files a/examples/snowpack/public/img/stat.jpg and /dev/null differ diff --git a/examples/snowpack/public/img/streaming-imports-demo.mp4 b/examples/snowpack/public/img/streaming-imports-demo.mp4 deleted file mode 100644 index 235d06629b..0000000000 Binary files a/examples/snowpack/public/img/streaming-imports-demo.mp4 and /dev/null differ diff --git a/examples/snowpack/public/img/streaming-imports-demo.webm b/examples/snowpack/public/img/streaming-imports-demo.webm deleted file mode 100644 index 76610328b0..0000000000 Binary files a/examples/snowpack/public/img/streaming-imports-demo.webm and /dev/null differ diff --git a/examples/snowpack/public/img/svelte-ts.png b/examples/snowpack/public/img/svelte-ts.png deleted file mode 100644 index 9cc0a3bb3f..0000000000 Binary files a/examples/snowpack/public/img/svelte-ts.png and /dev/null differ diff --git a/examples/snowpack/public/img/treeshaking.jpg b/examples/snowpack/public/img/treeshaking.jpg deleted file mode 100644 index 93c69a10ca..0000000000 Binary files a/examples/snowpack/public/img/treeshaking.jpg and /dev/null differ diff --git a/examples/snowpack/public/js/index.js b/examples/snowpack/public/js/index.js deleted file mode 100644 index 71e2496d43..0000000000 --- a/examples/snowpack/public/js/index.js +++ /dev/null @@ -1,115 +0,0 @@ -/** - * Debounce functions for better performance - * (c) 2018 Chris Ferdinandi, MIT License, https://gomakethings.com - * @param {Function} fn The function to debounce - */ -function debounce(fn) { - // Setup a timer - var timeout; - // Return a function to run debounced - return function () { - // Setup the arguments - var context = this; - var args = arguments; - // If there's a timer, cancel it - if (timeout) { - window.cancelAnimationFrame(timeout); - } - // Setup the new requestAnimationFrame() - timeout = window.requestAnimationFrame(function () { - fn.apply(context, args); - }); - }; -} - -function isScrolledIntoView(el) { - const { top } = el.getBoundingClientRect(); - const halfHeight = window.innerHeight / 2; - const isVisible = top <= halfHeight; - return isVisible; -} - -function setActiveToc() { - if (window.innerWidth < 1240) { - return; - } - if (!tableOfContentsEl) { - return; - } - - const headings = [ - ...document.querySelectorAll( - '.content-body h1, .content-body h2, .content-body h3, .content-body h4', - ), - ].filter((el) => !!el.id); - const scrolledToBeginning = window.scrollY === 0; - const scrolledToEnd = - Math.ceil(window.innerHeight + window.scrollY) >= - Math.ceil(document.body.getBoundingClientRect().height); - - let el; - if (scrolledToBeginning) { - el = headings[0]; // if weβ€˜re at the top of the page, highlight the first item - } else if (scrolledToEnd) { - el = headings[headings.length - 1]; // if we’re at the end of the page, highlight the last item - } else { - el = headings.reverse().find(isScrolledIntoView); // otherwise highlight the one that’s at least halfway up the page - } - - if (!el) return; - - const elId = el.id; - const href = `#${elId}`; - const tocEl = tableOfContentsEl.querySelector(`a[href="${href}"]`); - // only add the active class once, which will also prevent scroll from re-triggering while scrolling to the same element - if (!tocEl || tocEl.classList.contains('active')) { - return; - } - - tableOfContentsEl.querySelectorAll(`a.active`).forEach((aEl) => { - if (aEl.getAttribute('href') !== href) aEl.classList.remove('active'); - }); - - tocEl.classList.add('active'); - - // // update nav on desktop - // if (window.innerWidth >= 860) { - // tocEl.scrollIntoView({behavior: 'smooth'}); - // } - // { - // top: - // tocEl.getBoundingClientRect().top + gridTocEl.scrollTop - PADDING_TOP, - // behavior: 'smooth', - // }); -} - -const tableOfContentsEl = document.querySelector('.toc'); -window.addEventListener('scroll', debounce(setActiveToc)); -/* May not be needed: - window.addEventListener('DOMContentLoaded', (event) => { - if (!window.location.hash) { - return; - } - const elNeedingScroll = document.getElementById(window.location.hash.substring(1)); - if (!elNeedingScroll) { - return; - } - elNeedingScroll.scrollIntoView(); - elNeedingScroll.classList.add('highlighted'); - }); - */ - -window.addEventListener('DOMContentLoaded', (event) => { - if (!tableOfContentsEl) { - return; - } - document.querySelectorAll('.content h3, .content h4').forEach((headerEl) => { - const linkEl = document.createElement('a'); - // linkEl.setAttribute('target', "_blank"); - linkEl.setAttribute('href', '#' + headerEl.id); - linkEl.classList.add('header-link'); - linkEl.innerText = '#'; - headerEl.appendChild(linkEl); - }); - setActiveToc(); -}); diff --git a/examples/snowpack/public/robots.txt b/examples/snowpack/public/robots.txt deleted file mode 100644 index e9e57dc4d4..0000000000 --- a/examples/snowpack/public/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: diff --git a/examples/snowpack/public/styles/_animations.scss b/examples/snowpack/public/styles/_animations.scss deleted file mode 100644 index f3b03abafd..0000000000 --- a/examples/snowpack/public/styles/_animations.scss +++ /dev/null @@ -1,44 +0,0 @@ -@use './var' as *; - -$easeOutSine: cubic-bezier(0.61, 1, 0.88, 1); -$easeInExpo: cubic-bezier(0.7, 0, 0.84, 0); -$easeInOutSine: cubic-bezier(0.37, 0, 0.63, 1); -$easeInOutCubic: cubic-bezier(0.65, 0, 0.35, 1); -$easeInOutBack: cubic-bezier(0.68, -0.6, 0.32, 1.6); -$easeInCirc: cubic-bezier(0.55, 0, 1, 0.45); -$easeOutExpo: cubic-bezier(0.16, 1, 0.3, 1); -$easeInQuad: cubic-bezier(0.11, 0, 0.5, 0); -$quintic: cubic-bezier(0.76, 0.05, 0.86, 0.06); -$transition-fast: 40ms; -$transition-medium: 500ms; -$transition-slow: 1s; - -@keyframes pulse { - 0% { - color: #2a85ca; - border-color: #2a85ca; - } - - 100% { - } -} - -@mixin animation-copy-button { - transition: transform $transition-fast $easeInExpo, - border-color $transition-fast linear, box-shadow $transition-fast linear; - - svg, - span { - transition: color $transition-fast linear; - } - - &:hover { - box-shadow: 0 2px 2px 0 #2e5e8266; - transform: translateY(-1px); - border-color: #2a85ca; - svg, - span { - color: #2a85ca; - } - } -} diff --git a/examples/snowpack/public/styles/_github-markdown.scss b/examples/snowpack/public/styles/_github-markdown.scss deleted file mode 100644 index a5d45be5b9..0000000000 --- a/examples/snowpack/public/styles/_github-markdown.scss +++ /dev/null @@ -1,616 +0,0 @@ -.markdown-body .anchor { - float: left; - margin-left: -20px; - padding-right: 4px; - line-height: 1; -} - -.markdown-body .anchor:focus { - outline: none; -} - -.markdown-body h1:hover .anchor, -.markdown-body h2:hover .anchor, -.markdown-body h3:hover .anchor, -.markdown-body h4:hover .anchor, -.markdown-body h5:hover .anchor, -.markdown-body h6:hover .anchor { - text-decoration: none; -} - -.markdown-body { - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; - color: #24292e; - line-height: 1.6; - word-wrap: break-word; -} - -.markdown-body .pl-c { - color: #6a737d; -} - -.markdown-body .pl-c1, -.markdown-body .pl-s .pl-v { - color: #005cc5; -} - -.markdown-body .pl-e, -.markdown-body .pl-en { - color: #6f42c1; -} - -.markdown-body .pl-s .pl-s1, -.markdown-body .pl-smi { - color: #24292e; -} - -.markdown-body .pl-ent { - color: #22863a; -} - -.markdown-body .pl-k { - color: #d73a49; -} - -.markdown-body .pl-pds, -.markdown-body .pl-s, -.markdown-body .pl-s .pl-pse .pl-s1, -.markdown-body .pl-sr, -.markdown-body .pl-sr .pl-cce, -.markdown-body .pl-sr .pl-sra, -.markdown-body .pl-sr .pl-sre { - color: #032f62; -} - -.markdown-body .pl-smw, -.markdown-body .pl-v { - color: #e36209; -} - -.markdown-body .pl-bu { - color: #b31d28; -} - -.markdown-body .pl-ii { - color: #fafbfc; - background-color: #b31d28; -} - -.markdown-body .pl-c2 { - color: #fafbfc; - background-color: #d73a49; -} - -.markdown-body .pl-c2::before { - content: '^M'; -} - -.markdown-body .pl-sr .pl-cce { - color: #22863a; - font-weight: 700; -} - -.markdown-body .pl-ml { - color: #735c0f; -} - -.markdown-body .pl-mh, -.markdown-body .pl-mh .pl-en, -.markdown-body .pl-ms { - color: #005cc5; - font-weight: 700; -} - -.markdown-body .pl-mi { - color: #24292e; - font-style: italic; -} - -.markdown-body .pl-mb { - color: #24292e; - font-weight: 700; -} - -.markdown-body .pl-md { - color: #b31d28; - background-color: #ffeef0; -} - -.markdown-body .pl-mi1 { - color: #22863a; - background-color: #f0fff4; -} - -.markdown-body .pl-mc { - color: #e36209; - background-color: #ffebda; -} - -.markdown-body .pl-mi2 { - color: #f6f8fa; - background-color: #005cc5; -} - -.markdown-body .pl-mdr { - color: #6f42c1; - font-weight: 700; -} - -.markdown-body .pl-ba { - color: #586069; -} - -.markdown-body .pl-sg { - color: #959da5; -} - -.markdown-body .pl-corl { - color: #032f62; - text-decoration: underline; -} - -.markdown-body details { - display: block; -} - -.markdown-body summary { - display: list-item; -} - -.markdown-body a { - background-color: transparent; -} - -.markdown-body a:active, -.markdown-body a:hover { - outline-width: 0; -} - -.markdown-body strong { - font-weight: inherit; - font-weight: bolder; -} - -.markdown-body h1 { - margin: 0.67em 0; - font-size: 2em; -} - -.markdown-body img { - border-style: none; -} - -.markdown-body hr { - box-sizing: content-box; - height: 0; - overflow: visible; -} - -.markdown-body input { - margin: 0; - font: inherit; -} - -.markdown-body input { - overflow: visible; -} - -.markdown-body [type='checkbox'] { - box-sizing: border-box; - padding: 0; -} - -.markdown-body * { - box-sizing: border-box; -} - -.markdown-body input { - font-size: inherit; - font-family: inherit; - line-height: inherit; -} - -.markdown-body a { - color: #0366d6; - text-decoration: none; -} - -.markdown-body a:hover { - text-decoration: underline; -} - -.markdown-body strong { - font-weight: 600; -} - -.markdown-body hr { - height: 0; - margin: 15px 0; - overflow: hidden; - background: transparent; - border: 0; - border-bottom: 1px solid #dfe2e5; -} - -.markdown-body hr::before { - display: table; - content: ''; -} - -.markdown-body hr::after { - display: table; - clear: both; - content: ''; -} - -.markdown-body table { - border-collapse: collapse; - border-spacing: 0; -} - -.markdown-body table { - display: block; - width: 100%; - overflow: auto; -} - -.markdown-body table td, -.markdown-body table th { - padding: 6px 13px; -} - -.markdown-body table tr { - background-color: #fff; -} - -.markdown-body table tr:nth-child(2n) { - background-color: #f6f8fa; -} - -.markdown-body details summary { - cursor: pointer; -} - -.markdown-body h1, -.markdown-body h2, -.markdown-body h3, -.markdown-body h4, -.markdown-body h5, -.markdown-body h6 { - margin-top: 0; - margin-bottom: 0; -} - -.markdown-body h1 { - font-size: 32px; -} - -.markdown-body h1, -.markdown-body h2 { - font-weight: 600; -} - -.markdown-body h2 { - font-size: 24px; -} - -.markdown-body h3 { - font-size: 20px; -} - -.markdown-body h3, -.markdown-body h4 { - font-weight: 600; -} - -.markdown-body h4 { - font-size: 16px; -} - -.markdown-body h5 { - font-size: 14px; -} - -.markdown-body h5, -.markdown-body h6 { - font-weight: 600; -} - -.markdown-body h6 { - font-size: 12px; -} - -.markdown-body p { - margin-top: 0; - margin-bottom: 10px; -} - -.markdown-body blockquote { - margin: 0; -} - -.markdown-body ol, -.markdown-body ul { - margin-top: 0; - margin-bottom: 0; - padding-left: 0; -} - -.markdown-body ol ol, -.markdown-body ul ol { - list-style-type: lower-roman; -} - -.markdown-body ol ol ol, -.markdown-body ol ul ol, -.markdown-body ul ol ol, -.markdown-body ul ul ol { - list-style-type: lower-alpha; -} - -.markdown-body dd { - margin-left: 0; -} - -.markdown-body input::-webkit-inner-spin-button, -.markdown-body input::-webkit-outer-spin-button { - margin: 0; - -webkit-appearance: none; - appearance: none; -} - -.markdown-body .border { - border: 1px solid #e1e4e8 !important; -} - -.markdown-body .border-0 { - border: 0 !important; -} - -.markdown-body .border-bottom { - border-bottom: 1px solid #e1e4e8 !important; -} - -.markdown-body .rounded-1 { - border-radius: 3px !important; -} - -.markdown-body .bg-white { - background-color: #fff !important; -} - -.markdown-body .bg-gray-light { - background-color: #fafbfc !important; -} - -.markdown-body .text-gray-light { - color: #6a737d !important; -} - -.markdown-body .mb-0 { - margin-bottom: 0 !important; -} - -.markdown-body .my-2 { - margin-top: 8px !important; - margin-bottom: 8px !important; -} - -.markdown-body .pl-0 { - padding-left: 0 !important; -} - -.markdown-body .py-0 { - padding-top: 0 !important; - padding-bottom: 0 !important; -} - -.markdown-body .pl-1 { - padding-left: 4px !important; -} - -.markdown-body .pl-2 { - padding-left: 8px !important; -} - -.markdown-body .py-2 { - padding-top: 8px !important; - padding-bottom: 8px !important; -} - -.markdown-body .pl-3, -.markdown-body .px-3 { - padding-left: 16px !important; -} - -.markdown-body .px-3 { - padding-right: 16px !important; -} - -.markdown-body .pl-4 { - padding-left: 24px !important; -} - -.markdown-body .pl-5 { - padding-left: 32px !important; -} - -.markdown-body .pl-6 { - padding-left: 40px !important; -} - -.markdown-body .f6 { - font-size: 12px !important; -} - -.markdown-body .lh-condensed { - line-height: 1.25 !important; -} - -.markdown-body .text-bold { - font-weight: 600 !important; -} - -.markdown-body::before { - display: table; - content: ''; -} - -.markdown-body::after { - display: table; - clear: both; - content: ''; -} - -.markdown-body > :first-child { - margin-top: 0 !important; -} - -.markdown-body > :last-child { - margin-bottom: 0 !important; -} - -.markdown-body a:not([href]) { - color: inherit; - text-decoration: none; -} - -.markdown-body blockquote, -.markdown-body dl, -.markdown-body ol, -.markdown-body p, -.markdown-body table, -.markdown-body ul { - margin-top: 0; - margin-bottom: 16px; -} - -.markdown-body hr { - height: 0.25em; - margin: 24px 0; - padding: 0; - background-color: #e1e4e8; - border: 0; -} - -.markdown-body blockquote { - padding: 0 1em; - color: #6a737d; - border-left: 0.25em solid #dfe2e5; -} - -.markdown-body blockquote > :first-child { - margin-top: 0; -} - -.markdown-body blockquote > :last-child { - margin-bottom: 0; -} - -.markdown-body kbd { - display: inline-block; - padding: 3px 5px; - color: #444d56; - font-size: 11px; - line-height: 10px; - vertical-align: middle; - background-color: #fafbfc; - border: 1px solid #c6cbd1; - border-bottom-color: #959da5; - border-radius: 3px; - box-shadow: inset 0 -1px 0 #959da5; -} - -.markdown-body h1, -.markdown-body h2, -.markdown-body h3, -.markdown-body h4, -.markdown-body h5, -.markdown-body h6 { - margin-top: 42px; - margin-bottom: 16px; - font-weight: 600; - line-height: 1.25; -} - -.markdown-body h1 { - font-size: 2em; -} - -.markdown-body h1, -.markdown-body h2 { - /* border-bottom: 1px solid #eaecef; */ - - /* padding-bottom: 0.3em; */ -} - -.markdown-body h1 { - margin-bottom: 0; - padding-bottom: 0; - font-size: 4em; -} - -.markdown-body h2 { - font-size: 2.6em; -} - -.markdown-body h3 { - font-size: 1.8em; -} - -.markdown-body h4 { - font-size: 1.12em; -} - -.markdown-body h5 { - font-size: 0.875em; -} - -.markdown-body h6 { - color: #6a737d; - font-size: 0.85em; -} - -.markdown-body ol, -.markdown-body ul { - padding-left: 2em; -} - -.markdown-body ol ol, -.markdown-body ol ul, -.markdown-body ul ol, -.markdown-body ul ul { - margin-top: 0; - margin-bottom: 0; -} - -.markdown-body li { - word-wrap: break-all; -} - -.markdown-body li > p { - margin-top: 16px; -} - -.markdown-body li + li { - margin-top: 0.25em; -} - -.markdown-body img { - box-sizing: content-box; - max-width: 100%; - background-color: #fff; -} - -.markdown-body img[align='right'] { - padding-left: 20px; -} - -.markdown-body img[align='left'] { - padding-right: 20px; -} - -.markdown-body iframe { - max-width: 100%; -} diff --git a/examples/snowpack/public/styles/_globals.scss b/examples/snowpack/public/styles/_globals.scss deleted file mode 100644 index 2f9482a931..0000000000 --- a/examples/snowpack/public/styles/_globals.scss +++ /dev/null @@ -1,40 +0,0 @@ -@use './var' as *; - -body { - min-height: 100vh; -} - -html, -body { - margin: 0; - font-family: $body; -} - -* { - box-sizing: border-box; -} - -img, -video { - max-width: 100%; - height: auto; -} - -p { - line-height: 1.3; -} - -pre { - max-width: calc(100vw - 4rem); -} - -.pretty-font, -.version-number { - font-weight: 600; - font-family: $heading; -} - -body.is-nav-open { - height: 100%; - overflow: hidden; -} diff --git a/examples/snowpack/public/styles/_prism.scss b/examples/snowpack/public/styles/_prism.scss deleted file mode 100644 index 29a3cf5d83..0000000000 --- a/examples/snowpack/public/styles/_prism.scss +++ /dev/null @@ -1,228 +0,0 @@ -pre, -code { - color: #d4d4d4; - font-size: 14px; - font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; - line-height: 1.5; - direction: ltr; - white-space: pre; - text-align: left; - text-shadow: none; - word-break: normal; - word-spacing: normal; - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; -} - -pre::selection, -code::selection { - text-shadow: none; - background: #b3d4fc; -} - -@media print { - pre, - code { - text-shadow: none; - } -} - -pre { - margin: 0.5rem 0 16px; - padding: 0.8rem 1rem 0.9rem; - overflow: auto; - background: #282a36; - border-radius: 4px; -} - -:not(pre) > code { - padding: 0.1em 0.3em; - color: #db4c69; - background: #f9f2f4; - border-radius: 0.3em; - white-space: pre-wrap; -} - -/********************************************************* -* Tokens -*/ -.namespace { - opacity: 0.7; -} - -.token.comment, -.token.prolog, -.token.doctype, -.token.cdata { - color: #6a9955; -} - -.token.punctuation { - color: #d4d4d4; -} - -.token.property, -.token.tag, -.token.boolean, -.token.number, -.token.constant, -.token.symbol, -.token.deleted { - color: #b5cea8; -} - -.token.selector, -.token.attr-name, -.token.string, -.token.char, -.token.builtin, -.token.inserted { - color: #ce9178; -} - -.token.operator, -.token.entity, -.token.url, -.language-css .token.string, -.style .token.string { - color: #d4d4d4; - background: rgb(45, 55, 72); -} - -.token.atrule, -.token.attr-value, -.token.keyword { - color: #c586c0; -} - -.token.function { - color: #dcdcaa; -} - -.token.regex, -.token.important, -.token.variable { - color: #d16969; -} - -.token.important, -.token.bold { - font-weight: bold; -} - -.token.italic { - font-style: italic; -} - -.token.constant { - color: #9cdcfe; -} - -.token.class-name { - color: #4ec9b0; -} - -.token.parameter { - color: #9cdcfe; -} - -.token.interpolation { - color: #9cdcfe; -} - -.token.punctuation.interpolation-punctuation { - color: #569cd6; -} - -.token.boolean { - color: #569cd6; -} - -.token.property { - color: #9cdcfe; -} - -.token.selector { - color: #d7ba7d; -} - -.token.tag { - color: #569cd6; -} - -.token.attr-name { - color: #9cdcfe; -} - -.token.attr-value { - color: #ce9178; -} - -.token.entity { - color: #4ec9b0; - cursor: unset; -} - -.token.namespace { - color: #4ec9b0; -} - -/********************************************************* -* Language Specific -*/ -pre[class*='language-javascript'], -code[class*='language-javascript'] { - color: #4ec9b0; -} - -pre[class*='language-css'], -code[class*='language-css'] { - color: #ce9178; -} - -pre[class*='language-html'], -code[class*='language-html'] { - color: #d4d4d4; -} - -.language-html .token.punctuation { - color: #808080; -} - -/********************************************************* -* Line highlighting -*/ -pre[data-line] { - position: relative; -} - -pre > code { - position: relative; - z-index: 1; -} - -.line-highlight { - position: absolute; - right: 0; - left: 0; - z-index: 0; - margin-top: 1em; - padding: inherit 0; - line-height: inherit; - white-space: pre; - background: #f7ebc6; - box-shadow: inset 5px 0 0 #f7d87c; - pointer-events: none; -} - -pre[class*='language-bash'] .token.function { - color: #d4d4d4; -} -.token.comment { - color: #fff7; -} diff --git a/examples/snowpack/public/styles/_typography.scss b/examples/snowpack/public/styles/_typography.scss deleted file mode 100644 index 5874b6fdd9..0000000000 --- a/examples/snowpack/public/styles/_typography.scss +++ /dev/null @@ -1,89 +0,0 @@ -@use './var' as *; - -a { - color: #0366d6; - text-decoration: none; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - font-weight: 600; - font-family: $heading; - line-height: 1.2; -} - -h1 { - font-size: 3em; - letter-spacing: -0.025em; - - @media (min-width: 600px) { - font-size: 3.25em; - } -} - -h2 { - font-size: 2.75em; - letter-spacing: -0.02em; - - @media (min-width: 600px) { - font-size: 3em; - } -} - -h3 { - font-size: 2em; - letter-spacing: -0.0125em; - - @media (min-width: 600px) { - font-size: 2.25em; - } -} - -h4 { - font-size: 1em; - letter-spacing: -0.0125em; - - @media (min-width: 600px) { - font-size: 1.2em; - } -} - -ul li, -ol li { - margin-top: 0.5em; - margin-bottom: 0.5em; - line-height: 1.6; -} - -p { - margin-top: 1.5em; - margin-bottom: 1.5em; - line-height: 1.7; -} - -blockquote { - margin: 0; - padding: 1rem 2rem; - color: #2e5e82; - font-weight: 300; - font-size: 1.1em; - background: linear-gradient(-30deg, #c9efd8, #f9ddff); - border-left: none; - - @media (min-width: $breakpoint-m) { - border-radius: 0.5rem; - box-shadow: 0 1px 2px rgba(50, 127, 177, 0.1), - 0 1.5rem 3rem rgba(50, 125, 177, 0.1); - } - - & *:first-child { - margin-top: 0; - } - & *:last-child { - margin-bottom: 0; - } -} diff --git a/examples/snowpack/public/styles/_utils.scss b/examples/snowpack/public/styles/_utils.scss deleted file mode 100644 index ace88d71d9..0000000000 --- a/examples/snowpack/public/styles/_utils.scss +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Utils - */ - -// margin & padding -@for $i from 0 through 36 { - .ma#{$i} { - margin: #{0.5 * $i}rem; - } - .mt#{$i} { - margin-top: #{0.5 * $i}rem; - } - .mr#{$i} { - margin-right: #{0.5 * $i}rem; - } - .mb#{$i} { - margin-bottom: #{0.5 * $i}rem; - } - .ml#{$i} { - margin-left: #{0.5 * $i}rem; - } - .pa#{$i} { - padding: #{0.5 * $i}rem; - } - .pt#{$i} { - padding-top: #{0.5 * $i}rem; - } - .pr#{$i} { - padding-right: #{0.5 * $i}rem; - } - .pb#{$i} { - padding-bottom: #{0.5 * $i}rem; - } - .pl#{$i} { - padding-left: #{0.5 * $i}rem; - } -} - -// text align -.tac { - text-align: center; -} -.tal { - text-align: left; -} -.tar { - text-align: right; -} - -// wrapper -.wrapper { - max-width: 80em; - margin-left: auto; - margin-right: auto; - padding-left: 2rem; - padding-right: 2rem; -} - -.wrapper__readable { - max-width: 55em; -} diff --git a/examples/snowpack/public/styles/_var.scss b/examples/snowpack/public/styles/_var.scss deleted file mode 100644 index a73083bf19..0000000000 --- a/examples/snowpack/public/styles/_var.scss +++ /dev/null @@ -1,42 +0,0 @@ -// typography -$body: -apple-system, 'BlinkMacSystemFont', 'Helvetica Neue', 'Segoe UI', - 'Oxygen', 'Ubuntu', 'Cantarell', 'Open Sans', sans-serif; -$heading: 'Overpass', $body; -$code: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace; - -// breakpoints -$breakpoint-m: 800px; -$breakpoint-l: 1240px; - -// nav bar height mobile -$nav-height: 3.5rem; -$algolia-height: 4rem; - -// colors -$blue: #0a5e9d; -$dark-blue: #2e5e82; -$lightest-blue: #cfe2f2; -$orange: #fa6400; - -$color-primary: $dark-blue; -$color-secondary: $blue; -$color-light: $lightest-blue; -$color-strong-contrast: $orange; -$grey: #717171; -$dark-grey: #393939; -$light-grey: #c1c1c1; -$darkest-grey: #333; -$white: #fff; - -$light-rainbow-blue: #c9efd8; -$light-rainbow-pink: #f9ddff; -$rainbow-purple: #b224d0; -$rainbow-blue: #267dd6; -$rainbow-green: #24bf62; -$rainbow-yellow: #f0db4f; - -$layers: ( - 'base': 1, - 'nav-view': 9, - 'nav': 10, -); diff --git a/examples/snowpack/public/styles/global.scss b/examples/snowpack/public/styles/global.scss deleted file mode 100644 index 350460f52a..0000000000 --- a/examples/snowpack/public/styles/global.scss +++ /dev/null @@ -1,5 +0,0 @@ -@use './_github-markdown'; -@use './_prism'; -@use './_globals'; -@use './_typography'; -@use './utils'; diff --git a/examples/snowpack/src/components/Banner.astro b/examples/snowpack/src/components/Banner.astro deleted file mode 100644 index 3b08c117fc..0000000000 --- a/examples/snowpack/src/components/Banner.astro +++ /dev/null @@ -1,24 +0,0 @@ - - -
-
-
- Snowpack 3.0 is out now! - - Read the announcement post β†’ - -
-
-
diff --git a/examples/snowpack/src/components/BaseHead.astro b/examples/snowpack/src/components/BaseHead.astro deleted file mode 100644 index 3b07add097..0000000000 --- a/examples/snowpack/src/components/BaseHead.astro +++ /dev/null @@ -1,41 +0,0 @@ ---- -import Banner from './Banner.astro'; -import Nav from './Nav.astro'; - -export interface Props { - title: string; - description: string; - permalink: string; -} -const { title, description, permalink } = Astro.props as Props; ---- - - - - - - - - - -{title} - - - - - - - - - - - - - - - - - - - - diff --git a/examples/snowpack/src/components/BaseLayout.astro b/examples/snowpack/src/components/BaseLayout.astro deleted file mode 100644 index c108597897..0000000000 --- a/examples/snowpack/src/components/BaseLayout.astro +++ /dev/null @@ -1,19 +0,0 @@ ---- -import Banner from './Banner.astro'; -import Nav from './Nav.astro'; ---- - -