Update www site (#1775)

* Remove snowpack.config.js

* Update reference to global.scss

* Add support for local fonts, otherwise load only woff2 fonts

* Update reference to error.scss

* Update reference to blog.scss

* Change `config.js` to `config.ts` with Vite change

Co-authored-by: jasikpark <calebjasik@jasik.xyz>
This commit is contained in:
Jonathan Neal 2021-11-10 14:46:18 -05:00 committed by GitHub
parent 8d7ddeaa1b
commit 48bad7bdc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 16 additions and 24 deletions

View file

@ -1,3 +0,0 @@
module.exports = {
workspaceRoot: '../',
};

View file

@ -4,4 +4,4 @@ import BaseHead from './BaseHead.astro';
const { title, description, image, canonicalURL } = Astro.props;
---
<BaseHead title={title} description={description} image={image} canonicalURL={canonicalURL} />
<link rel="stylesheet" href={Astro.resolve('../scss/blog.css')} />
<link rel="stylesheet" href={Astro.resolve('../scss/blog.scss')} />

View file

@ -1,7 +1,7 @@
<html lang="en">
<head>
<title>Astro | Page Not Found</title>
<link rel="stylesheet" href={Astro.resolve('../scss/error.css')} />
<link rel="stylesheet" href={Astro.resolve('../scss/error.scss')} />
</head>
<body>
<section class="error-content">

View file

@ -7,7 +7,7 @@ import BlockQuote from '../../components/BlockQuote.astro';
import GoogleAnalytics from '../../components/GoogleAnalytics.astro';
import Note from '../../components/Note.astro';
import Shell from '../../components/Shell.astro';
import { mediaQueries } from '../../config.js';
import { mediaQueries } from '../../config.ts';
let title = 'Astro 0.18 Release';
let description = `Introducing: Responsive partial hydration • Solid.js support • Lit SSR support • Named slots • Global style support • and more!`;

View file

@ -7,7 +7,7 @@ import BlockQuote from '../../components/BlockQuote.astro';
import GoogleAnalytics from '../../components/GoogleAnalytics.astro';
import Note from '../../components/Note.astro';
import Shell from '../../components/Shell.astro';
import { mediaQueries } from '../../config.js';
import { mediaQueries } from '../../config.ts';
let title = 'Astro 0.19';
let description = `Introducing: Next.js-inspired dynamic routing • Astro.resolve() • client:only components • translations • and more!`;

View file

@ -15,7 +15,7 @@ let lang = 'en';
<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} canonicalURL={permalink} image="https://astro.build/assets/blog/astro-021-preview/social.png" />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.css')} />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.scss')} />
<style>
.chat-messages {

View file

@ -14,7 +14,7 @@ let lang = 'en';
<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} canonicalURL={permalink} image="https://astro.build/assets/blog/astro-repl/astro-repl-social.jpg" />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.css')} />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.scss')} />
</head>
<body>

View file

@ -14,7 +14,7 @@ let lang = 'en';
<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} canonicalURL={permalink} image="https://astro.build/assets/blog/demo-day-2021-09/social.png" />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.css')} />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.scss')} />
<style>
.chat-messages {

View file

@ -12,7 +12,7 @@ let lang = 'en';
<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} canonicalURL={permalink} />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.css')} />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.scss')} />
<style>
body {

View file

@ -19,7 +19,7 @@ let lang = 'en';
<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} canonicalURL={permalink} />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.css')} />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.scss')} />
</head>
<body>

View file

@ -7,7 +7,7 @@ import BlockQuote from '../../components/BlockQuote.astro';
import GoogleAnalytics from '../../components/GoogleAnalytics.astro';
import Note from '../../components/Note.astro';
import Shell from '../../components/Shell.astro';
import { mediaQueries } from '../../config.js';
import { mediaQueries } from '../../config.ts';
let title = "Netlify Becomes Astro's Official Hosting Partner";
let description = `We are happy to announce that Netlify has become Astros first corporate sponsor and exclusive hosting partner, donating $2,500 each month towards the ongoing open source maintenance and development of Astro.`;

View file

@ -19,7 +19,7 @@ let lang = 'en';
<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} canonicalURL={permalink} />
<link rel="stylesheet" href={Astro.resolve('../scss/global.css')} />
<link rel="stylesheet" href={Astro.resolve('../scss/global.scss')} />
</head>
<body>

View file

@ -3,8 +3,7 @@
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 400;
src: local(''), url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-regular.woff2') format('woff2'),
/* Chrome 26+, Opera 23+, Firefox 39+ */ url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
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 */
@ -12,8 +11,7 @@
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 600;
src: local(''), url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-600.woff2') format('woff2'),
/* Chrome 26+, Opera 23+, Firefox 39+ */ url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
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 */
@ -21,8 +19,7 @@
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 700;
src: local(''), url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-700.woff2') format('woff2'),
/* Chrome 26+, Opera 23+, Firefox 39+ */ url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
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 */
@ -30,8 +27,7 @@
font-family: 'IBM Plex Mono';
font-style: normal;
font-weight: 400;
src: local(''), url('/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-regular.woff2') format('woff2'),
/* Chrome 26+, Opera 23+, Firefox 39+ */ url('/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
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 */
@ -39,6 +35,5 @@
font-family: 'IBM Plex Mono';
font-style: normal;
font-weight: 700;
src: local(''), url('/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-700.woff2') format('woff2'),
/* Chrome 26+, Opera 23+, Firefox 39+ */ url('/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
src: local('IBM Plex Mono Bold'), url('/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-700.woff2') format('woff2');
}