diff --git a/.changeset/config.json b/.changeset/config.json index f7733c92b..dfff63249 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -6,5 +6,5 @@ "access": "public", "baseBranch": "main", "updateInternalDependencies": "patch", - "ignore": ["@example/*", "www"] + "ignore": ["@example/*"] } diff --git a/.github/labeler.yml b/.github/labeler.yml index 44e446735..93519be57 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -9,9 +9,6 @@ example: docs: - docs/** -www: -- www/** - test: - packages/**/*.test.js diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5081e1b6f..bf508d631 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,6 @@ on: - '.vscode/**' - 'docs/**' - 'examples/**' - - 'www/**' # Automatically cancel in-progress actions on the same branch concurrency: diff --git a/.prettierignore b/.prettierignore index a69dc58cf..5bd4edb7b 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,7 +5,6 @@ **/.vercel examples/docs/**/*.md examples/blog/**/*.md -www/**/*.md .github .changeset README.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 26bbab20c..bc3ae03db 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,7 +17,7 @@ yarn: "^1.22.10" ### Setting up your local repo -Astro uses yarn workspaces, so you should **always run `yarn install` from the top-level project directory.** running `yarn install` in the top-level project root will install dependencies for `astro`, `www`, `docs`, and every package in the repo. +Astro uses yarn workspaces, so you should **always run `yarn install` from the top-level project directory.** running `yarn install` in the top-level project root will install dependencies for `astro`, `docs`, and every package in the repo. ```shell git clone && cd ... @@ -75,7 +75,7 @@ yarn lint ### Making a Pull Request -When making a pull request, be sure to add a changeset when something has changed with Astro. Non-packages (`examples/*`, `docs/*`, and `www/*`) do not need changesets. +When making a pull request, be sure to add a changeset when something has changed with Astro. Non-packages (`examples/*`, `docs/*`) do not need changesets. ```shell yarn changeset @@ -144,7 +144,7 @@ To release a snapshot, run the following locally: # 1: yarn changeset version --snapshot XXX # 2: (Manual) review the diff, and make sure that you're not releasing more than you need to. -git checkout -- examples/ docs/ www/ +git checkout -- examples/ docs/ # 3: yarn release --tag next--XXX # 4: (Manual) review the publish, and if you're happy then you can throw out all local changes @@ -191,7 +191,7 @@ When in prerelease mode, the automatic PR release process will no longer release 1. Run `yarn changeset version` to create your new release. 1. Run `yarn release` to publish your new release. 1. Run `git push && git push --tags` to push your new release to GitHub. -1. Run `git push release/0.X:latest` to push your release branch to `latest`. This will trigger an update to the docs site, the www site, etc. +1. Run `git push release/0.X:latest` to push your release branch to `latest`. This will trigger an update to the docs site, etc. 1. Go to https://github.com/withastro/astro/releases/new and create a new release. Copy the new changelog entry from https://github.com/withastro/astro/blob/latest/packages/astro/CHANGELOG.md. 1. Post in Discord #announcements channel, if needed! diff --git a/netlify.toml b/netlify.toml index fd6fa2029..47f65bce1 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,2 +1,2 @@ [build] - ignore = "git diff --quiet $COMMIT_REF $CACHED_COMMIT_REF -- packages/astro/src docs/ www/" + ignore = "git diff --quiet $COMMIT_REF $CACHED_COMMIT_REF -- packages/astro/src docs/" diff --git a/package.json b/package.json index 398a8523d..fd47a031c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "release": "yarn build && changeset publish", "build": "turbo run build --no-deps --scope=astro --scope=create-astro --scope=\"@astrojs/*\"", - "build:examples": "turbo run build --scope=docs --scope=www --scope=\"@example/*\"", + "build:examples": "turbo run build --scope=docs --scope=\"@example/*\"", "dev": "turbo run dev --no-deps --no-cache --parallel --scope=astro --scope=create-astro --scope=\"@astrojs/*\"", "test": "turbo run test --scope=astro", "test:templates": "turbo run test --scope=create-astro", @@ -58,7 +58,6 @@ "examples/component/demo", "examples/component/packages/*", "scripts", - "www", "docs", "packages/astro/test/fixtures/builtins/packages/*", "packages/astro/test/fixtures/builtins-polyfillnode", diff --git a/scripts/smoke/index.js b/scripts/smoke/index.js index d5412adc0..823e9edfa 100644 --- a/scripts/smoke/index.js +++ b/scripts/smoke/index.js @@ -12,7 +12,7 @@ export default async function run() { .readdirSync(examplesUrl) .map((filename) => new URL(filename, examplesUrl)) .filter((fileUrl) => fs.statSync(fileUrl).isDirectory()); - const allProjectsToTest = [...examplesToTest, new URL('../../www', import.meta.url), new URL('../../docs', import.meta.url)]; + const allProjectsToTest = [...examplesToTest, new URL('../../docs', import.meta.url)]; console.log(''); for (const projectToTest of allProjectsToTest) { diff --git a/www/.gitignore b/www/.gitignore deleted file mode 100644 index e985853ed..000000000 --- a/www/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.vercel diff --git a/www/README.md b/www/README.md new file mode 100644 index 000000000..1a08ac8b1 --- /dev/null +++ b/www/README.md @@ -0,0 +1,3 @@ +# We've moved! + +The Astro website source can now be found at [`withastro/astro.build`](https://github.com/withastro/astro.build) diff --git a/www/astro.config.mjs b/www/astro.config.mjs deleted file mode 100644 index 1ee290d12..000000000 --- a/www/astro.config.mjs +++ /dev/null @@ -1,15 +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} */ ({ - buildOptions: { - sitemap: true, - site: 'https://astro.build/', - }, -}); diff --git a/www/package.json b/www/package.json deleted file mode 100644 index f87944a39..000000000 --- a/www/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "www", - "version": "1.1.0", - "private": true, - "scripts": { - "dev": "astro dev", - "start": "astro dev", - "build": "astro build", - "preview": "astro preview" - }, - "devDependencies": { - "astro": "^0.22.9" - } -} diff --git a/www/public/_redirects b/www/public/_redirects deleted file mode 100644 index 2478caf5a..000000000 --- a/www/public/_redirects +++ /dev/null @@ -1,4 +0,0 @@ -# Netlify Redirects -/chat https://discord.gg/grF4GTXXYm -/play/* https://play.astro.build/play/:splat 200 -/v0.21 /blog/astro-021-release/ 301 diff --git a/www/public/assets/blog/astro-018/lit-element.jpeg b/www/public/assets/blog/astro-018/lit-element.jpeg deleted file mode 100644 index adcfac6bd..000000000 Binary files a/www/public/assets/blog/astro-018/lit-element.jpeg and /dev/null differ diff --git a/www/public/assets/blog/astro-018/lit-logo.svg b/www/public/assets/blog/astro-018/lit-logo.svg deleted file mode 100644 index a09b15cdf..000000000 --- a/www/public/assets/blog/astro-018/lit-logo.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/www/public/assets/blog/astro-018/named-slots.png b/www/public/assets/blog/astro-018/named-slots.png deleted file mode 100644 index 01c805261..000000000 Binary files a/www/public/assets/blog/astro-018/named-slots.png and /dev/null differ diff --git a/www/public/assets/blog/astro-018/responsive-hydration.jpg b/www/public/assets/blog/astro-018/responsive-hydration.jpg deleted file mode 100644 index ee98e769c..000000000 Binary files a/www/public/assets/blog/astro-018/responsive-hydration.jpg and /dev/null differ diff --git a/www/public/assets/blog/astro-018/solid-logo-dark.svg b/www/public/assets/blog/astro-018/solid-logo-dark.svg deleted file mode 100644 index 5917b2292..000000000 --- a/www/public/assets/blog/astro-018/solid-logo-dark.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/www/public/assets/blog/astro-021-preview/hero.png b/www/public/assets/blog/astro-021-preview/hero.png deleted file mode 100644 index ca9067ecf..000000000 Binary files a/www/public/assets/blog/astro-021-preview/hero.png and /dev/null differ diff --git a/www/public/assets/blog/astro-021-preview/social.png b/www/public/assets/blog/astro-021-preview/social.png deleted file mode 100644 index b1cf7b1d8..000000000 Binary files a/www/public/assets/blog/astro-021-preview/social.png and /dev/null differ diff --git a/www/public/assets/blog/astro-021-release/hero.png b/www/public/assets/blog/astro-021-release/hero.png deleted file mode 100644 index 290928c4a..000000000 Binary files a/www/public/assets/blog/astro-021-release/hero.png and /dev/null differ diff --git a/www/public/assets/blog/astro-021-release/social.png b/www/public/assets/blog/astro-021-release/social.png deleted file mode 100644 index 15957b8f1..000000000 Binary files a/www/public/assets/blog/astro-021-release/social.png and /dev/null differ diff --git a/www/public/assets/blog/astro-netlify-social.jpg b/www/public/assets/blog/astro-netlify-social.jpg deleted file mode 100644 index 4a926cc57..000000000 Binary files a/www/public/assets/blog/astro-netlify-social.jpg and /dev/null differ diff --git a/www/public/assets/blog/astro-repl/astro-repl-hero.jpg b/www/public/assets/blog/astro-repl/astro-repl-hero.jpg deleted file mode 100644 index 175d51f69..000000000 Binary files a/www/public/assets/blog/astro-repl/astro-repl-hero.jpg and /dev/null differ diff --git a/www/public/assets/blog/astro-repl/astro-repl-screenshot.jpg b/www/public/assets/blog/astro-repl/astro-repl-screenshot.jpg deleted file mode 100644 index 03bfb3634..000000000 Binary files a/www/public/assets/blog/astro-repl/astro-repl-screenshot.jpg and /dev/null differ diff --git a/www/public/assets/blog/astro-repl/astro-repl-social.jpg b/www/public/assets/blog/astro-repl/astro-repl-social.jpg deleted file mode 100644 index c7ea9e97d..000000000 Binary files a/www/public/assets/blog/astro-repl/astro-repl-social.jpg and /dev/null differ diff --git a/www/public/assets/blog/demo-day-2021-09/discord-chat.jpg b/www/public/assets/blog/demo-day-2021-09/discord-chat.jpg deleted file mode 100644 index 3a0fb3615..000000000 Binary files a/www/public/assets/blog/demo-day-2021-09/discord-chat.jpg and /dev/null differ diff --git a/www/public/assets/blog/demo-day-2021-09/hero.png b/www/public/assets/blog/demo-day-2021-09/hero.png deleted file mode 100644 index ca9067ecf..000000000 Binary files a/www/public/assets/blog/demo-day-2021-09/hero.png and /dev/null differ diff --git a/www/public/assets/blog/demo-day-2021-09/social.png b/www/public/assets/blog/demo-day-2021-09/social.png deleted file mode 100644 index cb390cc6e..000000000 Binary files a/www/public/assets/blog/demo-day-2021-09/social.png and /dev/null differ diff --git a/www/public/assets/blog/introducing-astro.jpg b/www/public/assets/blog/introducing-astro.jpg deleted file mode 100644 index 08f686cbb..000000000 Binary files a/www/public/assets/blog/introducing-astro.jpg and /dev/null differ diff --git a/www/public/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-700.woff2 b/www/public/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-700.woff2 deleted file mode 100644 index 0e7fd7312..000000000 Binary files a/www/public/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-700.woff2 and /dev/null differ diff --git a/www/public/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-regular.woff2 b/www/public/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-regular.woff2 deleted file mode 100644 index a447d3a73..000000000 Binary files a/www/public/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-regular.woff2 and /dev/null differ diff --git a/www/public/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-600.woff2 b/www/public/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-600.woff2 deleted file mode 100644 index 72f092e23..000000000 Binary files a/www/public/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-600.woff2 and /dev/null differ diff --git a/www/public/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-700.woff2 b/www/public/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-700.woff2 deleted file mode 100644 index 23bc0e16d..000000000 Binary files a/www/public/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-700.woff2 and /dev/null differ diff --git a/www/public/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-regular.woff2 b/www/public/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-regular.woff2 deleted file mode 100644 index 295c22fea..000000000 Binary files a/www/public/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-regular.woff2 and /dev/null differ diff --git a/www/public/assets/netlify.svg b/www/public/assets/netlify.svg deleted file mode 100644 index 4abbdcecf..000000000 --- a/www/public/assets/netlify.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/www/public/assets/vercel.svg b/www/public/assets/vercel.svg deleted file mode 100644 index 108d33f5d..000000000 --- a/www/public/assets/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/www/public/favicon.ico b/www/public/favicon.ico deleted file mode 100644 index 578ad458b..000000000 Binary files a/www/public/favicon.ico and /dev/null differ diff --git a/www/public/favicon.svg b/www/public/favicon.svg deleted file mode 100644 index 542f90aec..000000000 --- a/www/public/favicon.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - diff --git a/www/public/social.jpg b/www/public/social.jpg deleted file mode 100644 index 906c76144..000000000 Binary files a/www/public/social.jpg and /dev/null differ diff --git a/www/public/social.png b/www/public/social.png deleted file mode 100644 index 1399856f1..000000000 Binary files a/www/public/social.png and /dev/null differ diff --git a/www/src/components/Article.astro b/www/src/components/Article.astro deleted file mode 100644 index 4b2d814ac..000000000 --- a/www/src/components/Article.astro +++ /dev/null @@ -1,69 +0,0 @@ -
- -
- - diff --git a/www/src/components/ArticleFooter.astro b/www/src/components/ArticleFooter.astro deleted file mode 100644 index 809556020..000000000 --- a/www/src/components/ArticleFooter.astro +++ /dev/null @@ -1,15 +0,0 @@ ---- -import AvatarList from './AvatarList.astro'; ---- - - - - diff --git a/www/src/components/Author.astro b/www/src/components/Author.astro deleted file mode 100644 index c042c7ab0..000000000 --- a/www/src/components/Author.astro +++ /dev/null @@ -1,14 +0,0 @@ ---- -import authorData from '../data/authors.json'; - -export interface Props { - authorId: string; -} - -const { authorId } = Astro.props; -const author = authorData[authorId]; ---- - -
-

by {author.name}{' '}@{author.twitter}

-
diff --git a/www/src/components/AvatarList.astro b/www/src/components/AvatarList.astro deleted file mode 100644 index 1ee68a222..000000000 --- a/www/src/components/AvatarList.astro +++ /dev/null @@ -1,92 +0,0 @@ - - - - - diff --git a/www/src/components/BackArrow.astro b/www/src/components/BackArrow.astro deleted file mode 100644 index 5ee1a331c..000000000 --- a/www/src/components/BackArrow.astro +++ /dev/null @@ -1,18 +0,0 @@ ---- -interface Props { - url: string; - title: string; -} -const { url, title } = Astro.props; ---- - - - ← {title} - - - diff --git a/www/src/components/BaseHead.astro b/www/src/components/BaseHead.astro deleted file mode 100644 index 53b52ce77..000000000 --- a/www/src/components/BaseHead.astro +++ /dev/null @@ -1,38 +0,0 @@ ---- -export interface Props { - title: string; - description: string; - canonicalURL: URL | string; - image?: string; -} -const { title, description, image = 'https://astro.build/social.jpg?v=1', canonicalURL } = Astro.props; ---- - - - - - - - - - - - -{title} - - - - - - - - - - - - - - - - - diff --git a/www/src/components/BlockQuote.astro b/www/src/components/BlockQuote.astro deleted file mode 100644 index 94a081ee5..000000000 --- a/www/src/components/BlockQuote.astro +++ /dev/null @@ -1,42 +0,0 @@ ---- -export interface Props { - author: string; - source: string; - sourceHref: string; -} -const { author, source, sourceHref } = Astro.props; ---- - -
- -
-

{author}

- {source} -
-
- - diff --git a/www/src/components/BlogHead.astro b/www/src/components/BlogHead.astro deleted file mode 100644 index 50e9ed69e..000000000 --- a/www/src/components/BlogHead.astro +++ /dev/null @@ -1,8 +0,0 @@ ---- -import BaseHead from './BaseHead.astro'; - -const { title, description, image, canonicalURL } = Astro.props; ---- - - - diff --git a/www/src/components/BlogHeader.astro b/www/src/components/BlogHeader.astro deleted file mode 100644 index 0899d15ec..000000000 --- a/www/src/components/BlogHeader.astro +++ /dev/null @@ -1,129 +0,0 @@ -
- -
- - diff --git a/www/src/components/BlogPost.astro b/www/src/components/BlogPost.astro deleted file mode 100644 index 580179c42..000000000 --- a/www/src/components/BlogPost.astro +++ /dev/null @@ -1,110 +0,0 @@ ---- -import Author from './Author.astro'; -import GithubStarButton from './GithubStarButton.astro'; -import GoogleAnalytics from './GoogleAnalytics.astro'; -import BackArrow from './BackArrow.astro'; - -export interface Props { - title: string; - author?: string; - publishDate: string; - heroImage?: string; - heroImageAlt?: string; -} - -const { title, author, publishDate, heroImage, heroImageAlt } = Astro.props; ---- - -
-
-
- {heroImageAlt -

{publishDate}

-

{title}

- {author && } - -
-
- - -
-
- -
- - diff --git a/www/src/components/BlogPostPreview.astro b/www/src/components/BlogPostPreview.astro deleted file mode 100644 index aa1e8731b..000000000 --- a/www/src/components/BlogPostPreview.astro +++ /dev/null @@ -1,57 +0,0 @@ ---- -import Author from './Author.astro'; - -export interface Props { - title: string; - publishDate: string; - href: string; -} - -const { title, publishDate, href } = Astro.props; ---- - -
-
-

{publishDate}

-

{title}

-
- {' '}Read more → -
- - diff --git a/www/src/components/GithubStarButton.astro b/www/src/components/GithubStarButton.astro deleted file mode 100644 index 59d50d5e3..000000000 --- a/www/src/components/GithubStarButton.astro +++ /dev/null @@ -1,8 +0,0 @@ - -
- Star -
- - diff --git a/www/src/components/GoogleAnalytics.astro b/www/src/components/GoogleAnalytics.astro deleted file mode 100644 index 7b98ab43a..000000000 --- a/www/src/components/GoogleAnalytics.astro +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/www/src/components/Logo.astro b/www/src/components/Logo.astro deleted file mode 100644 index a92927536..000000000 --- a/www/src/components/Logo.astro +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/www/src/components/Main.astro b/www/src/components/Main.astro deleted file mode 100644 index 6b18024f9..000000000 --- a/www/src/components/Main.astro +++ /dev/null @@ -1,18 +0,0 @@ -
- -
- - diff --git a/www/src/components/MainHeader.astro b/www/src/components/MainHeader.astro deleted file mode 100644 index cbeb3547f..000000000 --- a/www/src/components/MainHeader.astro +++ /dev/null @@ -1,153 +0,0 @@ -
- -
- - diff --git a/www/src/components/Note.astro b/www/src/components/Note.astro deleted file mode 100644 index 657da5708..000000000 --- a/www/src/components/Note.astro +++ /dev/null @@ -1,48 +0,0 @@ ---- -export interface Props { - title?: string; - type?: 'tip' | 'warning' | 'error'; -} -const { type = 'tip', title } = Astro.props; ---- - - - - diff --git a/www/src/components/Planets.astro b/www/src/components/Planets.astro deleted file mode 100644 index a22565ead..000000000 --- a/www/src/components/Planets.astro +++ /dev/null @@ -1,97 +0,0 @@ -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - diff --git a/www/src/components/Shell.astro b/www/src/components/Shell.astro deleted file mode 100644 index 09d4e0aeb..000000000 --- a/www/src/components/Shell.astro +++ /dev/null @@ -1,28 +0,0 @@ ---- -export interface Props { - code: string; -} -const { code } = Astro.props; ---- - -
{String(code).trim().split('\n').map(
-  line => {
-    line.startsWith('#') ? {line} : line
-  })
-}
- - diff --git a/www/src/components/Space.astro b/www/src/components/Space.astro deleted file mode 100644 index 66e9e2702..000000000 --- a/www/src/components/Space.astro +++ /dev/null @@ -1,26 +0,0 @@ ---- -import Planets from './Planets.astro'; -import Stars from './Stars.astro'; ---- - -
- - -
- - diff --git a/www/src/components/Sponsors.astro b/www/src/components/Sponsors.astro deleted file mode 100644 index 81d9edbcf..000000000 --- a/www/src/components/Sponsors.astro +++ /dev/null @@ -1,43 +0,0 @@ -
-

Sponsored by

-
- Netlify - Vercel -
- -
- - diff --git a/www/src/components/Stars.astro b/www/src/components/Stars.astro deleted file mode 100644 index bb6c91633..000000000 --- a/www/src/components/Stars.astro +++ /dev/null @@ -1,140 +0,0 @@ -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - diff --git a/www/src/components/Tagline.astro b/www/src/components/Tagline.astro deleted file mode 100644 index ad8bce0bd..000000000 --- a/www/src/components/Tagline.astro +++ /dev/null @@ -1,19 +0,0 @@ -

Build faster websites with less client-side Javascript

- - diff --git a/www/src/components/YouTube.astro b/www/src/components/YouTube.astro deleted file mode 100644 index 875f90f60..000000000 --- a/www/src/components/YouTube.astro +++ /dev/null @@ -1,52 +0,0 @@ ---- -const onload = ` -const link = (rel, href) => { - document.querySelector(\`[rel='\${rel}'][href='\${href}']\`) || document.head.append( - Object.assign( - document.createElement('link'), - { - rel, - href: href - } - ) - ) -}; -const preconnect = () => { - link('preconnect', 'https://googleads.g.doubleclick.net'); - link('preconnect', 'https://static.doubleclick.net'); - link('preconnect', 'https://www.google.com'); - link('preconnect', 'https://www.youtube-nocookie.com'); -}; -const host = this.parentNode; -const v = host.getAttribute('v'); -const iframe = Object.assign( - document.createElement('iframe'), - { - src: \`https://www.youtube-nocookie.com/embed/\${v}?autoplay=1\`, - allow: 'accelerometer;autoplay;encrypted-media;gyroscope;picture-in-picture', - allowFullscreen: true, - } -); -const button = Object.assign( - document.createElement('button'), - { - style: \`background-image:url('https://i.ytimg.com/vi/\${v}/hqdefault.jpg')\`, - onpointerenter: preconnect, - onfocus: preconnect, - onclick(event) { - event.currentTarget.replaceWith(iframe) - }, - } -); - -button.setAttribute('aria-label', host.getAttribute('alt')); - -host.replaceChildren(button); -`.replace(/[\n\r\t]+/g, ''); ---- - - - - {Astro.props.alt} - - diff --git a/www/src/components/YouTube.css b/www/src/components/YouTube.css deleted file mode 100644 index 9ee000ea5..000000000 --- a/www/src/components/YouTube.css +++ /dev/null @@ -1,82 +0,0 @@ -lite-youtube { - background: #000; - contain: content; - display: block; - max-width: 720px; - position: relative; -} - -/* responsive iframe with a 16:9 aspect ratio (thanks https://css-tricks.com/responsive-iframes/) */ - -lite-youtube::after { - content: ''; - display: block; - padding-bottom: calc(100% / (16 / 9)); -} - -lite-youtube > iframe { - border: 0; - height: 100%; - inset: 0; - position: absolute; - width: 100%; -} - -/* YT's actual play button svg */ - -lite-youtube > a, -lite-youtube > button { - cursor: pointer; - display: block; - height: 100%; - inset: 0; - position: absolute; - width: 100%; -} - -lite-youtube > a > img { - display: block; - height: 100%; - object-fit: cover; - width: 100%; -} - -lite-youtube > a::after, -lite-youtube > button::after { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath fill='red' fill-opacity='.8' d='M66.5 7.7c-.8-2.9-2.5-5.4-5.4-6.2C55.8.1 34 0 34 0S12.2.1 6.9 1.6c-3 .7-4.6 3.2-5.4 6.1a89.6 89.6 0 000 32.5c.8 3 2.5 5.5 5.4 6.3C12.2 47.9 34 48 34 48s21.8-.1 27.1-1.6c3-.7 4.6-3.2 5.4-6.1C68 35 68 24 68 24s0-11-1.5-16.3z'/%3E%3Cpath fill='%23fff' d='M45 24L27 14v20'/%3E%3C/svg%3E"); - display: block; - width: 68px; - height: 48px; - position: absolute; - inset: calc(50% - 68px / 2) calc(50% - 48px / 2) auto auto; - transition: filter 0.1s cubic-bezier(0, 0, 0.2, 1); -} - -lite-youtube > button { - background: #000 50% 50% / cover; - border: none; -} - -/* gradient */ - -lite-youtube button::before { - background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAQAAAC58SIOAAAAaklEQVR42nWOUQrAMAhD1e7+B9kZ1zqYKAk6yMfLa8Ca3CbbxL+cTJgNNeDhTZmdQXb24/KAPNNFjDf2CQSMJGCVViveAKuy1AZYFaCqcrVkA4NgGeTKYlg/Jvhio/w6LuvQNV1U3sS31wvH7lU36biAMgAAAABJRU5ErkJggg==') - top repeat-x; - content: ''; - display: block; - height: 60px; - padding-bottom: 50px; - position: absolute; - top: 0; - transition: all 0.2s cubic-bezier(0, 0, 0.2, 1); - width: 100%; -} - -lite-youtube > button::after { - filter: grayscale(100%); -} - -lite-youtube:hover > button::after, -lite-youtube button:focus::after { - filter: none; -} diff --git a/www/src/config.ts b/www/src/config.ts deleted file mode 100644 index c9f57838d..000000000 --- a/www/src/config.ts +++ /dev/null @@ -1,14 +0,0 @@ -export const sidebar = [ - { - text: 'Introduction', - children: [ - { text: 'Welcome', link: '/' }, - { text: 'Example', link: '/example' }, - ], - }, -]; - -export const mediaQueries = { - mobile: '(max-width: 600px)', - desktop: '(min-width: 601px)', -}; diff --git a/www/src/data/authors.json b/www/src/data/authors.json deleted file mode 100644 index 18c8ce09b..000000000 --- a/www/src/data/authors.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "drew": { - "name": "Drew Powers", - "twitter": "drwpow" - }, - "fred": { - "name": "Fred K. Schott", - "twitter": "FredKSchott" - }, - "matthew": { - "name": "Matthew Phillips", - "twitter": "matthewcp" - }, - "nate": { - "name": "Nate Moore", - "twitter": "n_moore" - } -} diff --git a/www/src/data/blog-posts/astro-018.md b/www/src/data/blog-posts/astro-018.md deleted file mode 100644 index 1f5d05b60..000000000 --- a/www/src/data/blog-posts/astro-018.md +++ /dev/null @@ -1,73 +0,0 @@ ---- -title: 'Astro 0.18 Release' -description: 'Introducing: Responsive partial hydration • Solid.js support • Lit SSR support • Named slots • Global style support • and more!' -publishDate: 'July 27, 2021' -author: 'matthew' -lang: 'en' ---- - -A little over a month ago, the first public beta for Astro was released to the world. Since then, we have been fixing bugs and gathering your feedback on what to tackle next. Today, we are excited to announce the release of some of our most requested features. - -We are excited to introduce Astro v0.18, featuring: - -* __[Responsive partial hydration:](#responsive-component-hydration)__ Hydrate components with CSS media queries. -* __[Named slots:](#named-slots)__ Support multiple content entrypoints inside of Astro components. -* __[Solid.js support:](#solid-support)__ Use [Solid.js](https://www.solidjs.com/) components in Astro. -* __[Lit support:](#solid-support)__ Use [Lit SSR](https://lit.dev/) to get server-side rendering for web components. -* [` - - - -
- -
- -
-
-
-
- -
-
-
-
- - diff --git a/www/src/pages/404.astro b/www/src/pages/404.astro deleted file mode 100644 index e05c2e28b..000000000 --- a/www/src/pages/404.astro +++ /dev/null @@ -1,14 +0,0 @@ - - - Astro | Page Not Found - - - -
-

404 | error

-

Lost in space there, Astronaut?

-

Let's see if we can guide you back

- Back to homepage -
- - diff --git a/www/src/pages/blog/[slug].astro b/www/src/pages/blog/[slug].astro deleted file mode 100644 index 93260f90e..000000000 --- a/www/src/pages/blog/[slug].astro +++ /dev/null @@ -1,46 +0,0 @@ ---- -import BaseHead from '../../components/BaseHead.astro'; -import BlogHeader from '../../components/BlogHeader.astro'; -import BlogPost from '../../components/BlogPost.astro'; -import GoogleAnalytics from '../../components/GoogleAnalytics.astro'; - -export function getPostSlug(post) { - return post.file.pathname.split('/').pop().split('.').shift(); -} - -export function getStaticPaths({rss}) { - const posts = Astro.fetchContent('../../data/blog-posts/*.md').sort((a, b) => new Date(b.publishDate) - new Date(a.publishDate)); - - rss({ - title: 'Astro Blog', - description: 'Everything you need to know about Astro, direct from mission control.', - items: posts.map(p => ({ - title: p.title, - description: p.description, - link: `blog/${getPostSlug(p)}`, - pubDate: p.publishDate, - })) - }); - - return posts.map((p) => ({ - params: { slug: getPostSlug(p) }, - props: { post: p }, - })); -} - -const { Content, title, author, description, publishDate, heroImage, heroImageAlt, socialImage, permalink, lang } = Astro.props.post; ---- - - - - - - - - - - - - - - diff --git a/www/src/pages/blog/index.astro b/www/src/pages/blog/index.astro deleted file mode 100644 index be8201cd7..000000000 --- a/www/src/pages/blog/index.astro +++ /dev/null @@ -1,84 +0,0 @@ ---- -import BaseHead from '../../components/BaseHead.astro'; -import BlogHeader from '../../components/BlogHeader.astro'; -import BlogPostPreview from '../../components/BlogPostPreview.astro'; - -let title = 'Astro Blog'; -let description = 'Everything you need to know about Astro, direct from mission control.'; -let permalink = 'https://astro.build/blog'; -let lang = 'en'; - -const posts = Astro.fetchContent('../../data/blog-posts/*.md').sort((a, b) => new Date(b.publishDate) - new Date(a.publishDate)); ---- - - - - - - - - - - - -
-
-
-

The Astro Blog

-

{description}

-
-
- {posts.map((p) => { - const href = `/blog/${p.file.pathname.split('/').pop().split('.').shift()}`; - return ( - - {p.description} - - ); - })} -
-
-
- - diff --git a/www/src/pages/index.astro b/www/src/pages/index.astro deleted file mode 100644 index 7a24a5c24..000000000 --- a/www/src/pages/index.astro +++ /dev/null @@ -1,110 +0,0 @@ ---- -import BaseHead from '../components/BaseHead.astro'; -import Space from '../components/Space.astro'; -import Main from '../components/Main.astro'; -import Article from '../components/Article.astro'; -import Tagline from '../components/Tagline.astro'; -import MainHeader from '../components/MainHeader.astro'; -import Sponsors from '../components/Sponsors.astro'; -import GoogleAnalytics from '../components/GoogleAnalytics.astro'; -import YouTube from '../components/YouTube.astro'; -import '../components/YouTube.css'; - -let title = 'Astro'; -let description = 'Build faster websites with less client-side JavaScript'; -let permalink = 'https://astro.build/'; -let lang = 'en'; ---- - - - - - - - - - - -
- -
- - - - -

- For a technology built on top of three different languages, the modern web seems to focus an awful lot on JavaScript. We don’t think it has to—and - that’s certainly not a revolutionary concept. -

- -

- We’ll eagerly jump at the chance to sing JavaScript’s praises, but HTML and CSS are pretty great too. There aren’t enough modern tools which reflect - that, which is why we're building Astro. -

- -

- While we’re at it, it’s time to accept that the framework wars won’t have a winner—that’s why Astro lets you use any framework you want (or - none at all). And if most sites only have islands of interactivity, shouldn’t our tools optimize for that? - We’re not the first to ask the question, but we might be the first with an answer for every framework. -

- -

We're hard at work on Astro! Keep your eyes to the skies, astronauts.

- -
- - - New Blog Post - Astro 0.21 - - - -
-

Psst... get early access to new features by joining our Discord community.

-
-
- -
- - - - - - - diff --git a/www/src/scss/blog.scss b/www/src/scss/blog.scss deleted file mode 100644 index d58401999..000000000 --- a/www/src/scss/blog.scss +++ /dev/null @@ -1,274 +0,0 @@ -@use './fonts.scss'; -@use './code.scss'; - -:root { - --font-fallback: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji; - --font-body: 'IBM Plex Sans', var(--font-fallback); - --font-mono: 'IBM Plex Mono', Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', - 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace; - - --color-white: #fff; - --color-black: #000014; - - --color-gray-50: #f9fafb; - --color-gray-100: #f3f4f6; - --color-gray-200: #e5e7eb; - --color-gray-300: #d1d5db; - --color-gray-400: #9ca3af; - --color-gray-500: #6b7280; - --color-gray-600: #4b5563; - --color-gray-700: #374151; - --color-gray-800: #1f2937; - --color-gray-900: #111827; - - --color-blue: #3894ff; - --color-blue-rgb: 56, 148, 255; - --color-green: #17c083; - --color-green-rgb: 23, 192, 131; - --color-orange: #ff5d01; - --color-orange-rgb: 255, 93, 1; - --color-purple: #882de7; - --color-purple-rgb: 136, 45, 231; - --color-red: #ff1639; - --color-red-rgb: 255, 22, 57; - --color-yellow: #ffbe2d; - --color-yellow-rgb: 255, 190, 45; -} - -:root { - color-scheme: light; - --theme-accent: var(--color-orange); - --theme-accent-rgb: var(--color-orange-rgb); - --theme-accent-opacity: 0.1; - --theme-divider: var(--color-gray-100); - --theme-text: var(--color-gray-800); - --theme-text-light: var(--color-gray-600); - --theme-text-lighter: var(--color-gray-400); - --theme-bg: var(--color-white); - --theme-bg-offset: var(--color-gray-100); - --theme-bg-accent: rgba(var(--theme-accent-rgb), var(--theme-accent-opacity)); - --theme-code-inline-bg: var(--color-gray-100); - --theme-code-text: var(--color-gray-100); - --theme-code-bg: var(--color-gray-700); -} - -body { - background: var(--theme-bg); - color: var(--theme-text); -} - -:root.theme-dark { - color-scheme: dark; - --theme-accent-opacity: 0.3; - --theme-divider: var(--color-gray-900); - --theme-text: var(--color-gray-200); - --theme-text-light: var(--color-gray-400); - --theme-text-lighter: var(--color-gray-600); - --theme-bg: var(--color-black); - --theme-bg-offset: var(--color-gray-900); - --theme-code-inline-bg: var(--color-gray-800); - --theme-code-text: var(--color-gray-200); - --theme-code-bg: var(--color-gray-900); -} - -::selection { - color: var(--theme-accent); - background-color: rgba(var(--theme-accent-rgb), var(--theme-accent-opacity)); -} - -* { - box-sizing: border-box; - margin: 0; -} - -:root { - --user-font-scale: 1rem - 16px; - --max-width: calc(100% - 2rem); -} - -@media (min-width: 50em) { - :root { - --max-width: 40em; - } -} - -body { - display: flex; - flex-direction: column; - min-height: 100vh; - font-family: var(--font-body); - font-size: 1rem; - font-size: clamp(0.875rem, 0.4626rem + 1.0309vw + var(--user-font-scale), 1.125rem); - line-height: 1.625; -} - -body { - width: 100%; - display: grid; - --gutter: 0.5rem; - --doc-padding: 2rem; -} - -.layout { - display: grid; - grid-auto-flow: column; - grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, var(--max-width)) minmax(var(--gutter), 1fr); - gap: 1em; -} - -.layout > :is(main, article) { - grid-column: 2; -} - -nav ul { - list-style: none; - padding: 0; -} - -/* Typography */ -:is(h1, h2, h3, h4, h5, h6) { - margin-bottom: 1.38rem; - font-weight: 400; - line-height: 1.3; -} - -:is(h1, h2) { - max-width: 40ch; -} - -:is(h2, h3):not(:first-child) { - margin-top: 3rem; -} - -h1 { - font-size: clamp(2.488rem, 1.924rem + 1.41vw, 3.052rem); -} - -h2 { - font-size: clamp(2.074rem, 1.707rem + 0.9175vw, 2.441rem); -} - -h3 { - font-size: clamp(1.728rem, 1.503rem + 0.5625vw, 1.953rem); -} - -h4 { - font-size: clamp(1.44rem, 1.317rem + 0.3075vw, 1.563rem); -} - -h5 { - font-size: clamp(1.2rem, 1.15rem + 0.125vw, 1.25rem); -} - -p { - color: var(--theme-text-light); -} - -small, -.text_small { - font-size: 0.833rem; -} - -a { - color: var(--theme-accent); - text-underline-offset: 0.08em; - text-decoration: none; - align-items: center; - gap: 0.5rem; -} - -a > code:not([class*='language']) { - position: relative; - color: var(--theme-accent); - background: transparent; - text-underline-offset: var(--padding-block); -} - -a > code:not([class*='language'])::before { - content: ''; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - display: block; - background: var(--theme-accent); - opacity: var(--theme-accent-opacity); - border-radius: var(--border-radius); -} - -a:hover, -a:focus { - text-decoration: underline; -} - -a:focus { - outline: 2px solid currentColor; - outline-offset: 0.25em; -} - -strong { - font-weight: 600; - color: inherit; -} - -/* Supporting Content */ - -code:not([class*='language']) { - --border-radius: 3px; - --padding-block: 0.2rem; - --padding-inline: 0.33rem; - - font-family: var(--font-mono); - font-size: 0.85em; - color: inherit; - background-color: var(--theme-code-inline-bg); - padding: var(--padding-block) var(--padding-inline); - margin: calc(var(--padding-block) * -1) -0.125em; - border-radius: var(--border-radius); - word-break: break-word; -} - -pre > code:not([class*='language']) { - background-color: transparent; - padding: 0; - margin: 0; - border-radius: 0; - color: inherit; -} - -pre { - position: relative; - background-color: var(--theme-code-bg); - color: var(--theme-code-text); - --padding-block: 1rem; - --padding-inline: 2rem; - padding: var(--padding-block) var(--padding-inline); - padding-right: calc(var(--padding-inline) * 2); - margin-left: calc(50vw - var(--padding-inline)); - transform: translateX(-50vw); - - line-height: 1.414; - width: calc(100vw + (var(--padding-inline) * 2)); - max-width: calc(100% + (var(--padding-inline) * 2)); - overflow-y: hidden; - overflow-x: auto; -} - -@media (min-width: 37.75em) { - pre { - --padding-inline: 1.25rem; - border-radius: 8px; - } -} - -.flex { - display: flex; - align-items: center; -} - -img.cover { - width: 100%; - max-height: 50vh; - object-fit: cover; -} diff --git a/www/src/scss/code.scss b/www/src/scss/code.scss deleted file mode 100644 index 835df74f6..000000000 --- a/www/src/scss/code.scss +++ /dev/null @@ -1,155 +0,0 @@ -.language-css > code, -.language-sass > code, -.language-scss > code { - color: #fd9170; -} - -[class*='language-'] .namespace { - opacity: 0.7; -} - -.token.atrule { - color: #c792ea; -} - -.token.attr-name { - color: #ffcb6b; -} - -.token.attr-value { - color: #a5e844; -} - -.token.attribute { - color: #a5e844; -} - -.token.boolean { - color: #c792ea; -} - -.token.builtin { - color: #ffcb6b; -} - -.token.cdata { - color: #80cbc4; -} - -.token.char { - color: #80cbc4; -} - -.token.class { - color: #ffcb6b; -} - -.token.class-name { - color: #f2ff00; -} - -.token.comment { - color: #888888; -} - -.token.constant { - color: #f2ff00; -} - -.token.deleted { - color: #ff6666; -} - -.token.doctype { - color: #616161; -} - -.token.entity { - color: #ff6666; -} - -.token.function { - color: #c792ea; -} - -.token.hexcode { - color: #f2ff00; -} - -.token.id { - color: #c792ea; - font-weight: bold; -} - -.token.important { - color: #c792ea; - font-weight: bold; -} - -.token.inserted { - color: #80cbc4; -} - -.token.keyword { - color: #c792ea; -} - -.token.number { - color: #fd9170; -} - -.token.operator { - color: #89ddff; -} - -.token.prolog { - color: #616161; -} - -.token.property { - color: #80cbc4; -} - -.token.pseudo-class { - color: #a5e844; -} - -.token.pseudo-element { - color: #a5e844; -} - -.token.punctuation { - color: #89ddff; -} - -.token.regex { - color: #f2ff00; -} - -.token.selector { - color: #ff6666; -} - -.token.string { - color: #a5e844; -} - -.token.symbol { - color: #c792ea; -} - -.token.tag { - color: #ff6666; -} - -.token.unit { - color: #fd9170; -} - -.token.url { - color: #ff6666; -} - -.token.variable { - color: #ff6666; -} diff --git a/www/src/scss/error.scss b/www/src/scss/error.scss deleted file mode 100644 index d03ecb876..000000000 --- a/www/src/scss/error.scss +++ /dev/null @@ -1,107 +0,0 @@ -@use './fonts.scss'; - -:root { - --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; - --font-mono: 'IBM Plex Mono', Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', - 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace; - --color-accent: #ff5d01; -} - -* { - box-sizing: border-box; - margin: 0; -} -html { - background-color: #000014; -} -html, -body { - padding: 0; - font-size: clamp(14px, calc(1rem + (3vw - 1.2rem)), 20px); - font-family: var(--font-sans); - font-weight: 400; - background-repeat: no-repeat; - color: #f3f4f6; -} -.visually-hidden { - clip: rect(0 0 0 0); - clip-path: inset(50%); - height: 1px; - overflow: hidden; - position: absolute; - white-space: nowrap; - width: 1px; -} -a { - position: relative; - text-decoration: none; - color: var(--color-accent); - padding: 0.05em 0.125em; - margin: -0.05em -0.125em; - transition: color 120ms cubic-bezier(0.23, 1, 0.32, 1); - z-index: 0; - display: inline-block; - - &:hover, - &:focus { - color: rgba(0, 0, 0, 1); - - &::before { - transform: scaleY(1); - background: var(--color-accent); - } - } - - &:visited { - // color: var(--color-accent); - color: var(--color-accent); - &:hover, - &:focus { - color: rgba(0, 0, 0, 1); - } - } - - &::before { - transform-origin: bottom center; - content: ''; - display: block; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - inset: 0; - background: var(--color-accent); - pointer-events: none; - transform: scaleY(0.05); - transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background 120ms cubic-bezier(0.23, 1, 0.32, 1); - z-index: -1; - } -} - -a + a { - margin-left: 2px; -} - -section.error-content { - height: 100vh; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - p.error-code { - color: #ff5d01; - text-transform: uppercase; - } - h1 { - margin-top: -0.5rem; - margin-bottom: 1rem; - font-size: 2rem; - } - p { - margin: 1rem 0; - } - a { - margin: 1rem 0; - } -} diff --git a/www/src/scss/fonts.scss b/www/src/scss/fonts.scss deleted file mode 100644 index 3909773b1..000000000 --- a/www/src/scss/fonts.scss +++ /dev/null @@ -1,39 +0,0 @@ -/* ibm-plex-sans-regular - latin */ -@font-face { - font-family: 'IBM Plex Sans'; - font-style: normal; - font-weight: 400; - src: local('IBM Plex Sans'), url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-regular.woff2') format('woff2'); -} - -/* ibm-plex-sans-600 - latin */ -@font-face { - font-family: 'IBM Plex Sans'; - font-style: normal; - font-weight: 600; - src: local('IBM Plex Sans Medium'), url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-600.woff2') format('woff2'); -} - -/* ibm-plex-sans-700 - latin */ -@font-face { - font-family: 'IBM Plex Sans'; - font-style: normal; - font-weight: 700; - src: local('IBM Plex Sans Bold'), url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-700.woff2') format('woff2'); -} - -/* ibm-plex-mono-regular - latin */ -@font-face { - font-family: 'IBM Plex Mono'; - font-style: normal; - font-weight: 400; - src: local('IBM Plex Mono Regular'), url('/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-regular.woff2') format('woff2'); -} - -/* ibm-plex-mono-700 - latin */ -@font-face { - font-family: 'IBM Plex Mono'; - font-style: normal; - font-weight: 700; - src: local('IBM Plex Mono Bold'), url('/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-700.woff2') format('woff2'); -} diff --git a/www/src/scss/global.scss b/www/src/scss/global.scss deleted file mode 100644 index 7a1e804c6..000000000 --- a/www/src/scss/global.scss +++ /dev/null @@ -1,103 +0,0 @@ -@use './fonts.scss'; - -:root { - --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; - --font-mono: 'IBM Plex Mono', Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', - 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace; - --color-accent: #ff5d01; -} - -* { - box-sizing: border-box; - margin: 0; -} -html { - background-color: #000014; -} -html, -body { - padding: 0; - font-size: clamp(14px, calc(1rem + (3vw - 1.2rem)), 20px); - font-family: var(--font-sans); - font-weight: 400; - background-repeat: no-repeat; - color: #f3f4f6; -} -.visually-hidden { - clip: rect(0 0 0 0); - clip-path: inset(50%); - height: 1px; - overflow: hidden; - position: absolute; - white-space: nowrap; - width: 1px; -} -a { - position: relative; - text-decoration: none; - color: var(--color-accent); - padding: 0.05em 0.125em; - margin: -0.05em -0.125em; - transition: color 120ms cubic-bezier(0.23, 1, 0.32, 1); - z-index: 0; - display: inline-block; - - &:hover, - &:focus { - color: rgba(0, 0, 0, 1); - - &::before { - transform: scaleY(1); - background: var(--color-accent); - } - } - - &:visited { - // color: var(--color-accent); - color: var(--color-accent); - &:hover, - &:focus { - color: rgba(0, 0, 0, 1); - } - } - - &::before { - transform-origin: bottom center; - content: ''; - display: block; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - inset: 0; - background: var(--color-accent); - pointer-events: none; - transform: scaleY(0.05); - transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background 120ms cubic-bezier(0.23, 1, 0.32, 1); - z-index: -1; - } -} - -a + a { - margin-left: 2px; -} - -header { - text-align: center; -} -header a { - color: var(--theme-text-lighter) !important; - font-weight: bold; -} -header a::before, -header a:hover::before { - background: none; -} - -header a:hover { - background: rgba(255, 255, 255, 0.1); - text-decoration: underline; -} -header h1 a:hover { -} diff --git a/www/vercel.json b/www/vercel.json deleted file mode 100644 index 39581473d..000000000 --- a/www/vercel.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "cleanUrls": true, - "trailingSlash": false, - "redirects": [ - { - "source": "/docs/:match*", - "destination": "https://docs.astro.build/:match*", - "permanent": false - }, - { - "source": "/posts/:match*", - "destination": "blog/:match*", - "permanent": false - }, - { - "source": "/chat", - "destination": "https://discord.gg/grF4GTXXYm" - } - ], - "rewrites": [ - { - "source": "/play/:match*", - "destination": "https://play.astro.build/play/:match*" - } - ] -}