-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a217c66
commit 696193a
Showing
331 changed files
with
32,912 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
.pnpm-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Snowpack dependency directory (https://snowpack.dev/) | ||
web_modules/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional stylelint cache | ||
.stylelintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variable files | ||
.env | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env.local | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
.parcel-cache | ||
|
||
# Next.js build output | ||
.next | ||
out | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and not Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# vuepress v2.x temp and cache directory | ||
.temp | ||
.cache | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# Stores VSCode versions used for testing VSCode extensions | ||
.vscode-test | ||
|
||
# yarn v2 | ||
.yarn/cache | ||
.yarn/unplugged | ||
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
# macOS-specific files | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[](https://app.netlify.com/sites/astro-build/deploys) | ||
|
||
# [astro.build](https://astro.build) | ||
|
||
The source code for [astro.build](https://astro.build), built with [Astro](https://github.com/withastro/astro). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import type { AstroUserConfig } from "astro"; | ||
|
||
const config: AstroUserConfig = { | ||
buildOptions: { | ||
site: "https://astro.build", | ||
sitemap: true, | ||
}, | ||
renderers: [], | ||
markdownOptions: { | ||
render: [ | ||
"@astrojs/markdown-remark", | ||
{ | ||
remarkPlugins: [ | ||
"remark-smartypants", | ||
["remark-autolink-headings", { behavior: "wrap" }], | ||
], | ||
rehypePlugins: [ | ||
"rehype-slug", | ||
["rehype-autolink-headings", { behavior: "wrap" }], | ||
], | ||
syntaxHighlight: 'shiki', | ||
}, | ||
], | ||
}, | ||
vite: { | ||
ssr: { | ||
noExternal: ['smartypants'], | ||
external: ["svgo"], | ||
}, | ||
}, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "astro.build", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"start": "astro dev --experimental-static-build", | ||
"dev": "astro dev", | ||
"build": "astro build --experimental-static-build", | ||
"preview": "astro preview", | ||
"update-contributors": "node ./update-contributors.mjs" | ||
}, | ||
"devDependencies": { | ||
"astro": "0.23.0-next.10", | ||
"astro-icon": "^0.6.0" | ||
}, | ||
"volta": { | ||
"node": "14.18.3" | ||
}, | ||
"dependencies": { | ||
"date-fns": "^2.28.0", | ||
"quicklink": "^2.2.0", | ||
"rehype-autolink-headings": "^6.1.0", | ||
"remark-autolink-headings": "^7.0.1", | ||
"remark-smartypants": "^2.0.0", | ||
"smartypants": "^0.1.6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Netlify Redirects | ||
/chat https://discord.gg/grF4GTXXYm | ||
/play/* https://play.astro.build/play/:splat 200 | ||
/v0.21 /blog/astro-021-release/ 301 |
18 changes: 18 additions & 0 deletions
18
smoke/astro.build-main/public/assets/blog/astro-018/lit-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.2 KB
smoke/astro.build-main/public/assets/blog/astro-018/responsive-hydration.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
smoke/astro.build-main/public/assets/blog/astro-018/solid-logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+479 KB
smoke/astro.build-main/public/assets/blog/astro-021-preview/social.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+697 KB
smoke/astro.build-main/public/assets/blog/astro-021-release/social.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+144 KB
smoke/astro.build-main/public/assets/blog/astro-repl/astro-repl-hero.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.5 KB
smoke/astro.build-main/public/assets/blog/astro-repl/astro-repl-screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+67.3 KB
smoke/astro.build-main/public/assets/blog/astro-repl/astro-repl-social.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+41 KB
smoke/astro.build-main/public/assets/blog/demo-day-2021-09/discord-chat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+48.5 KB
smoke/astro.build-main/public/fonts/RTAliasMedium-RegularOblique.woff2
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// @ts-nocheck | ||
class Pixel { | ||
static get inputProperties() { | ||
return ['--border-radius', '--border-color', '--pixel-size', '--variant']; | ||
} | ||
paint(ctx, size, styleMap) { | ||
ctx.fillStyle = "black"; | ||
const variant = styleMap.get("--variant").toString().trim(); | ||
const corner = styleMap.get("--border-radius").toString(); | ||
const px = styleMap.get("--pixel-size").toString(); | ||
const w = size.width; | ||
const h = size.height; | ||
|
||
switch (variant) { | ||
case 'primary': { | ||
ctx.fillRect(corner, 0, w - corner * 2, h); | ||
|
||
for (let i = 0; i < Math.round(corner / px); i++) { | ||
let v = px * i; | ||
let x = v; | ||
let y = corner - v; | ||
ctx.fillRect(x, y, px, h - corner * 2 + (v * 2)); | ||
} | ||
for (let i = 0; i < Math.round(corner / px); i++) { | ||
let v = px * i; | ||
let x = w - (px * (i + 1)); | ||
let y = corner - v; | ||
ctx.fillRect(x, y, px, h - corner * 2 + (v * 2)); | ||
} | ||
return; | ||
} | ||
case 'outline': { | ||
// top + right + bottom + left border | ||
ctx.fillRect(corner, 0, w - corner * 2, px); | ||
ctx.fillRect(w - px, corner, px, h - (corner * 2)); | ||
ctx.fillRect(corner, h - px, w - corner * 2, px); | ||
ctx.fillRect(0, corner, px, h - (corner * 2)); | ||
|
||
for (let i = 0; i < Math.round(corner / px) + 1; i++) { | ||
let v = px * i; | ||
let x = v; | ||
let y = corner - v; | ||
ctx.fillRect(x, y, px, px * 2); | ||
ctx.fillRect(x, h - y - (px * 2), px, px * 2); | ||
} | ||
for (let i = 0; i < Math.round(corner / px) + 1; i++) { | ||
let v = px * i; | ||
let x = w - (px * (i + 1)); | ||
let y = corner - v; | ||
ctx.fillRect(x, y, px, px * 2); | ||
ctx.fillRect(x, h - y - (px * 2), px, px * 2); | ||
} | ||
return; | ||
} | ||
} | ||
} | ||
} | ||
|
||
registerPaint("pixel", Pixel); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# I, for one, welcome our new robotic overlords | ||
|
||
User-agent: * | ||
Allow: / | ||
|
||
Sitemap: https://astro.build/sitemap.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
if (window.matchMedia('(hover: hover)').matches) { | ||
import('/scripts/konami.js').then(mod => mod.init()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// Aha! These are not analytics at all! | ||
class KonamiCode { | ||
enabled = false; | ||
keys = ["ArrowUp", "ArrowUp", "ArrowDown", "ArrowDown", "ArrowLeft", "ArrowRight", "ArrowLeft", "ArrowRight", "b", "a"]; | ||
accepted = [...new Set(this.keys)]; | ||
inputs = []; | ||
|
||
constructor({ enable, disable }) { | ||
this.enable = enable; | ||
this.disable = disable; | ||
this.handleKey = this.handleKey.bind(this); | ||
document.addEventListener('keydown', this.handleKey); | ||
} | ||
|
||
handleKey({ key }) { | ||
if (this.enabled) { | ||
this.reset(); | ||
return; | ||
} | ||
if (!this.accepted.includes(key)) return; | ||
|
||
if (this.keys[this.inputs.length] === key) { | ||
this.handleInput(key) | ||
} else { | ||
this.reset(); | ||
} | ||
} | ||
|
||
handleInput(key) { | ||
this.inputs.push(key); | ||
|
||
if (this.inputs.length === 10) { | ||
this.handleMatch(); | ||
} | ||
} | ||
|
||
handleMatch() { | ||
this.enabled = true; | ||
this.enable(); | ||
this.inputs = []; | ||
} | ||
|
||
reset() { | ||
if (this.enabled) { | ||
this.enabled = false; | ||
this.disable(); | ||
} | ||
if (this.inputs.length) { | ||
this.inputs = []; | ||
} | ||
} | ||
} | ||
|
||
export function init() { | ||
new KonamiCode({ | ||
enable: () => document.body.classList.add('🥚'), | ||
disable: () => document.body.classList.remove('🥚'), | ||
}); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.