diff --git a/.eslintrc.js b/.eslintrc.js
deleted file mode 100644
index 03401e0c1..000000000
--- a/.eslintrc.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// basic .eslintrc.js compatible with react prettier and typescript
-module.exports = {
- // Specifies the ESLint parser for TypeScript
- parser: "@typescript-eslint/parser",
- extends: [
- "plugin:react/recommended",
- "plugin:@typescript-eslint/recommended",
- "prettier/@typescript-eslint",
- "plugin:prettier/recommended",
- ],
- settings: {
- react: {
- version: "detect",
- },
- },
- env: {
- browser: true,
- node: true,
- es6: true,
- },
- plugins: ["@typescript-eslint", "react", "prettier"],
- parserOptions: {
- ecmaFeatures: {
- jsx: true,
- },
- // Allows for the parsing of modern ECMAScript features
- ecmaVersion: 2018,
- // Allows for the use of imports
- sourceType: "module",
- },
- rules: {
- // Disable prop-types as we use TypeScript for type checking
- "react/prop-types": "off",
- "@typescript-eslint/explicit-function-return-type": "off",
- "@typescript-eslint/explicit-module-boundary-types": "off",
- // Enable prettier rules
- "prettier/prettier": "error",
- // interface start with capital I
- "@typescript-eslint/interface-name-prefix": "off",
- // allow "any" as type
- "@typescript-eslint/no-explicit-any": "off",
- // allow @ts-ignore for testing purposes
- "@typescript-eslint/ban-ts-ignore": "off",
- },
-}
diff --git a/.gitignore b/.gitignore
index aa59480a2..16d54bb13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,69 +1,24 @@
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-
-# 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
-
-# nyc test coverage
-.nyc_output
-
-# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
-.grunt
-
-# Bower dependency directory (https://bower.io/)
-bower_components
+# build output
+dist/
+# generated types
+.astro/
-# node-waf configuration
-.lock-wscript
-
-# Compiled binary addons (http://nodejs.org/api/addons.html)
-build/Release
-
-# Dependency directories
+# dependencies
node_modules/
-jspm_packages/
-
-# Typescript v1 declaration files
-typings/
-
-# Optional npm cache directory
-.npm
-# Optional eslint cache
-.eslintcache
-
-# Optional REPL history
-.node_repl_history
+# logs
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
-# Output of 'npm pack'
-*.tgz
-# dotenv environment variable files
-.env*
-.env.development
-# gatsby files
-.cache/
-public
+# environment variables
+.env
+.env.production
-# Mac files
+# macOS-specific files
.DS_Store
-# Yarn
-yarn-error.log
-.pnp/
-.pnp.js
-# Yarn Integrity file
-.yarn-integrity
+# jetbrains setting folder
+.idea/
diff --git a/.prettierignore b/.prettierignore
deleted file mode 100644
index 58d06c368..000000000
--- a/.prettierignore
+++ /dev/null
@@ -1,4 +0,0 @@
-.cache
-package.json
-package-lock.json
-public
diff --git a/.prettierrc b/.prettierrc
deleted file mode 100644
index 48e90e8d4..000000000
--- a/.prettierrc
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "endOfLine": "lf",
- "semi": false,
- "singleQuote": false,
- "tabWidth": 2,
- "trailingComma": "es5"
-}
diff --git a/.stylelintrc.json b/.stylelintrc.json
deleted file mode 100644
index 40db42c66..000000000
--- a/.stylelintrc.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "extends": "stylelint-config-standard"
-}
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
new file mode 100644
index 000000000..22a15055d
--- /dev/null
+++ b/.vscode/extensions.json
@@ -0,0 +1,4 @@
+{
+ "recommendations": ["astro-build.astro-vscode"],
+ "unwantedRecommendations": []
+}
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 000000000..d64220976
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,11 @@
+{
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "command": "./node_modules/.bin/astro dev",
+ "name": "Development server",
+ "request": "launch",
+ "type": "node-terminal"
+ }
+ ]
+}
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 1180a1cf3..000000000
--- a/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015 Gatsbyjs
-
-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/README.md b/README.md
index be1e2b131..87b813ae7 100644
--- a/README.md
+++ b/README.md
@@ -1,99 +1,43 @@
-
-
-
-
-
-
-
- Gatsby's blog starter
-
+# Astro Starter Kit: Minimal
-Kick off your project with this blog boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React.
+```sh
+npm create astro@latest -- --template minimal
+```
-_Have another more specific idea? You may want to check out our vibrant collection of [official and community-created starters](https://www.gatsbyjs.org/docs/gatsby-starters/)._
+> π§βπ **Seasoned astronaut?** Delete this file. Have fun!
-## π Quick start
+## π Project Structure
-1. **Create a Gatsby site.**
+Inside of your Astro project, you'll see the following folders and files:
- Use the Gatsby CLI to create a new site, specifying the blog starter.
+```text
+/
+βββ public/
+βββ src/
+β βββ pages/
+β βββ index.astro
+βββ package.json
+```
- ```shell
- # create a new Gatsby site using the blog starter
- gatsby new my-blog-starter https://github.com/gatsbyjs/gatsby-starter-blog
- ```
+Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
-1. **Start developing.**
+There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
- Navigate into your new siteβs directory and start it up.
+Any static assets, like images, can be placed in the `public/` directory.
- ```shell
- cd my-blog-starter/
- gatsby develop
- ```
+## π§ Commands
-1. **Open the source code and start editing!**
+All commands are run from the root of the project, from a terminal:
- Your site is now running at `http://localhost:8000`!
+| Command | Action |
+| :------------------------ | :----------------------------------------------- |
+| `npm install` | Installs dependencies |
+| `npm run dev` | Starts local dev server at `localhost:4321` |
+| `npm run build` | Build your production site to `./dist/` |
+| `npm run preview` | Preview your build locally, before deploying |
+| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
+| `npm run astro -- --help` | Get help using the Astro CLI |
- _Note: You'll also see a second link: _`http://localhost:8000/___graphql`_. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the [Gatsby tutorial](https://www.gatsbyjs.org/tutorial/part-five/#introducing-graphiql)._
+## π Want to learn more?
- Open the `my-blog-starter` directory in your code editor of choice and edit `src/pages/index.js`. Save your changes and the browser will update in real time!
-
-## π§ What's inside?
-
-A quick look at the top-level files and directories you'll see in a Gatsby project.
-
- .
- βββ node_modules
- βββ src
- βββ .gitignore
- βββ .prettierrc
- βββ gatsby-browser.js
- βββ gatsby-config.js
- βββ gatsby-node.js
- βββ gatsby-ssr.js
- βββ LICENSE
- βββ package-lock.json
- βββ package.json
- βββ README.md
-
-1. **`/node_modules`**: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.
-
-2. **`/src`**: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. `src` is a convention for βsource codeβ.
-
-3. **`.gitignore`**: This file tells git which files it should not track / not maintain a version history for.
-
-4. **`.prettierrc`**: This is a configuration file for [Prettier](https://prettier.io/). Prettier is a tool to help keep the formatting of your code consistent.
-
-5. **`gatsby-browser.js`**: This file is where Gatsby expects to find any usage of the [Gatsby browser APIs](https://www.gatsbyjs.org/docs/browser-apis/) (if any). These allow customization/extension of default Gatsby settings affecting the browser.
-
-6. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins youβd like to include, etc. (Check out the [config docs](https://www.gatsbyjs.org/docs/gatsby-config/) for more detail).
-
-7. **`gatsby-node.js`**: This file is where Gatsby expects to find any usage of the [Gatsby Node APIs](https://www.gatsbyjs.org/docs/node-apis/) (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process.
-
-8. **`gatsby-ssr.js`**: This file is where Gatsby expects to find any usage of the [Gatsby server-side rendering APIs](https://www.gatsbyjs.org/docs/ssr-apis/) (if any). These allow customization of default Gatsby settings affecting server-side rendering.
-
-9. **`LICENSE`**: Gatsby is licensed under the MIT license.
-
-10. **`package-lock.json`** (See `package.json` below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(You wonβt change this file directly).**
-
-11. **`package.json`**: A manifest file for Node.js projects, which includes things like metadata (the projectβs name, author, etc). This manifest is how npm knows which packages to install for your project.
-
-12. **`README.md`**: A text file containing useful reference information about your project.
-
-## π Learning Gatsby
-
-Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.org/). Here are some places to start:
-
-- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.org/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.
-
-- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.org/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar.
-
-## π« Deploy
-
-[](https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-blog)
-
-[](https://vercel.com/import/project?template=https://github.com/gatsbyjs/gatsby-starter-blog)
-
-
+Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
diff --git a/astro.config.mjs b/astro.config.mjs
new file mode 100644
index 000000000..e762ba5cf
--- /dev/null
+++ b/astro.config.mjs
@@ -0,0 +1,5 @@
+// @ts-check
+import { defineConfig } from 'astro/config';
+
+// https://astro.build/config
+export default defineConfig({});
diff --git a/gatsby-browser.js b/gatsby-browser.js
deleted file mode 100644
index 8b843acc9..000000000
--- a/gatsby-browser.js
+++ /dev/null
@@ -1 +0,0 @@
-import "./src/styles/global.css"
diff --git a/gatsby-config.js b/gatsby-config.js
deleted file mode 100644
index c9294d8ff..000000000
--- a/gatsby-config.js
+++ /dev/null
@@ -1,82 +0,0 @@
-require("dotenv").config({
- path: `.env.${process.env.NODE_ENV}`,
-})
-
-module.exports = {
- siteMetadata: {
- siteUrl: `https://www.jessebox.net/`,
- },
- plugins: [
- {
- resolve: `gatsby-plugin-typescript`,
- options: {
- isTSX: true, // defaults to false
- jsxPragma: `React`, // defaults to "React"
- allExtensions: true, // defaults to false
- },
- },
- {
- resolve: "gatsby-plugin-eslint",
- options: {
- test: /\.js$|\.jsx$|\.ts$|\.tsx$/,
- exclude: /(node_modules|.cache|public)/,
- stages: ["develop"],
- options: {
- emitWarning: true,
- failOnError: false,
- },
- },
- },
- {
- resolve: `gatsby-transformer-remark`,
- options: {
- plugins: [
- {
- resolve: "gatsby-remark-embed-video",
- options: {
- width: 800,
- ratio: 1.77, // Optional: Defaults to 16/9 = 1.77
- height: 400, // Optional: Overrides optional.ratio
- related: false, //Optional: Will remove related videos from the end of an embedded YouTube video.
- noIframeBorder: true, //Optional: Disable insertion of
+
diff --git a/src/components/Bio.tsx b/src/components/Bio.tsx
deleted file mode 100644
index 940f0eff1..000000000
--- a/src/components/Bio.tsx
+++ /dev/null
@@ -1,48 +0,0 @@
-import React from "react"
-import { Link } from "gatsby"
-import { useStaticQuery, graphql } from "gatsby"
-
-interface Data {
- datoCmsAbout: {
- header: string
- subheaderNode: {
- childMarkdownRemark: {
- html: "string"
- }
- }
- linkTo: string
- linkLabel: string
- }
-}
-
-export default function Bio() {
- const data: Data = useStaticQuery(graphql`
- query BioQuery {
- datoCmsAbout {
- header
- subheaderNode {
- childMarkdownRemark {
- html
- }
- }
- linkTo
- linkLabel
- }
- }
- `)
-
- return (
-
- {data.datoCmsAbout.header}
-
-
- {data.datoCmsAbout.linkLabel}
-
-
- )
-}
diff --git a/src/components/CardPost.tsx b/src/components/CardPost.tsx
deleted file mode 100644
index 39f99bdcf..000000000
--- a/src/components/CardPost.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import React from "react"
-import { Link } from "gatsby"
-import Image, { FluidObject } from "gatsby-image"
-
-interface Props {
- key: string
- date: string
- title: string
- to: string
- description: string
- alt: string
- fluid: FluidObject
-}
-
-export default function CardPost(props: Props) {
- const { key, date, title, to, description, alt, fluid } = props
-
- return (
-
-
-
-
-
-
-
- {title}
-
-
- {description}
- {date}
-
-
- )
-}
diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx
deleted file mode 100644
index 1d10b4be8..000000000
--- a/src/components/Footer.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import React from "react"
-
-export default function Footer() {
- return (
-
- )
-}
diff --git a/src/components/HeaderPage.tsx b/src/components/HeaderPage.tsx
deleted file mode 100644
index 5dd4d34fb..000000000
--- a/src/components/HeaderPage.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import React from "react"
-import { Link } from "gatsby"
-import Image, { FluidObject } from "gatsby-image"
-
-interface Props {
- hero?: FluidObject
- alt?: string
- caption?: string
- header: string
- subheader: string
- linkTo?: string
- linkLabel?: string
-}
-
-export default function HeaderPage(props: Props) {
- const { hero, alt, caption, header, subheader, linkTo, linkLabel } = props
- return (
-
- {hero ? (
-
-
- {caption}
-
- ) : null}
- {header}
-
- {linkTo ? (
-
- {linkLabel}
-
- ) : null}
-
- )
-}
diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx
deleted file mode 100644
index 37332cf6d..000000000
--- a/src/components/Layout.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-import React from "react"
-import { useStaticQuery, graphql } from "gatsby"
-import { HelmetDatoCms } from "gatsby-source-datocms"
-
-import "../styles/global.css"
-import Navigation from "./Navigation"
-import Footer from "./Footer"
-
-interface Data {
- datoCmsSite: {
- locale: string
- faviconMetaTags: any
- }
- datoCmsSeoMetaTags: {
- tags: []
- }
-}
-
-interface Props {
- children: React.ReactNode
-}
-
-export default function Layout(props: Props) {
- const { children } = props
-
- const data: Data = useStaticQuery(graphql`
- query seoQuery {
- datoCmsSite {
- locale
- faviconMetaTags {
- ...GatsbyDatoCmsFaviconMetaTags
- }
- }
- datoCmsSeoMetaTags {
- ...GatsbyDatoCmsSeoMetaTags
- }
- }
- `)
-
- return (
- <>
-
-
-
-
- {children}
-
- >
- )
-}
diff --git a/src/components/LinkNav.tsx b/src/components/LinkNav.tsx
deleted file mode 100644
index d5ce9cc86..000000000
--- a/src/components/LinkNav.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import React from "react"
-import { Link } from "gatsby"
-
-interface Props {
- id?: string
- title: string
- ariaLabel?: string
- children: React.ReactNode
- to: string
- activeClassName?: string
-}
-
-export default function LinkNav(props: Props) {
- const { id, title, ariaLabel, children, to, activeClassName } = props
- return (
-
- {children}
-
- )
-}
-
-LinkNav.defaultProps = {
- activeClassName: "active",
-}
diff --git a/src/components/ListPost.tsx b/src/components/ListPost.tsx
deleted file mode 100644
index c81c478bd..000000000
--- a/src/components/ListPost.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import React from "react"
-import { Link } from "gatsby"
-
-interface Props {
- to: string
- rel: string
- title: string
-}
-
-export default function ListPost(props: Props) {
- const { to, rel, title } = props
- return (
-
-
{rel === "next" ? `${rel} β` : `β ${rel}`}
-
- {title}
-
-
- )
-}
-
-ListPost.defaultProps = {
- title: "title",
-}
diff --git a/src/components/Navigation.tsx b/src/components/Navigation.tsx
deleted file mode 100644
index 0309771c1..000000000
--- a/src/components/Navigation.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-import React from "react"
-import LinkNav from "./LinkNav"
-
-export default function Navigation() {
- return (
-
-
-
-
-
- Home
-
-
-
-
- About
-
-
-
-
-
- )
-}
diff --git a/src/pages/404.tsx b/src/pages/404.tsx
deleted file mode 100644
index 6d910a56f..000000000
--- a/src/pages/404.tsx
+++ /dev/null
@@ -1,107 +0,0 @@
-import React from "react"
-import { PageProps, graphql } from "gatsby"
-import { FluidObject } from "gatsby-image"
-import { HelmetDatoCms } from "gatsby-source-datocms"
-
-import Layout from "../components/Layout"
-import HeaderPage from "../components/HeaderPage"
-import CardPost from "../components/CardPost"
-
-interface Data {
- datoCmsNotFound: {
- seoMetaTags: {
- tags: []
- }
- header: string
- subheaderNode: {
- childMarkdownRemark: {
- html: string
- }
- }
- linkTo: string
- linkLabel: string
- }
- allDatoCmsPost: {
- edges: {
- node: {
- slug: string
- title: string
- date: string
- hero: {
- alt: string
- fluid: FluidObject
- }
- }
- }
- }
-}
-
-export default function NotFoundPage(props: PageProps) {
- const { data } = props
-
- return (
-
-
-
-
- Recent Posts
-
- {data.allDatoCmsPost.edges.map(({ node }) => {
- return (
-
- )
- })}
-
-
-
- )
-}
-
-export const pageQuery = graphql`
- query {
- datoCmsNotFound {
- seoMetaTags {
- ...GatsbyDatoCmsSeoMetaTags
- }
- header
- subheaderNode {
- childMarkdownRemark {
- html
- }
- }
- linkTo
- linkLabel
- }
- allDatoCmsPost(sort: { fields: date, order: DESC }) {
- edges {
- node {
- slug
- title
- date(formatString: "MMMM DD, YYYY")
- seo {
- description
- }
- hero {
- alt
- fluid(maxWidth: 800) {
- ...GatsbyDatoCmsFluid
- }
- }
- }
- }
- }
- }
-`
diff --git a/src/pages/about.tsx b/src/pages/about.tsx
deleted file mode 100644
index d31b3b210..000000000
--- a/src/pages/about.tsx
+++ /dev/null
@@ -1,135 +0,0 @@
-import React from "react"
-import { PageProps, graphql } from "gatsby"
-import { HelmetDatoCms } from "gatsby-source-datocms"
-import Image, { FluidObject } from "gatsby-image"
-
-import Layout from "../components/Layout"
-import HeaderPage from "../components/HeaderPage"
-
-interface Data {
- datoCmsAbout: {
- seoMetaTags: {
- tags: []
- }
- hero: {
- alt: string
- title: string
- fluid: FluidObject
- }
- header: string
- subheaderNode: {
- childMarkdownRemark: {
- html: string
- }
- }
- body: {
- id: string
- model: {
- apiKey: string
- id: string
- }
- textNode: {
- childMarkdownRemark: {
- html: string
- }
- }
- media: {
- alt: string
- fluid: FluidObject
- title: string
- }
- }[]
- }
-}
-
-export default function About(props: PageProps) {
- const { data } = props
-
- return (
-
-
-
-
-
- {data.datoCmsAbout.body.map((block) => (
-
- {block.model.apiKey === "text" && (
-
- )}
- {block.model.apiKey === "visual" && (
-
-
- {block.media.title}
-
- )}
-
- ))}
-
-
-
- )
-}
-
-export const pageQuery = graphql`
- query {
- datoCmsAbout {
- seoMetaTags {
- ...GatsbyDatoCmsSeoMetaTags
- }
- hero {
- alt
- fluid(maxWidth: 1200) {
- ...GatsbyDatoCmsFluid
- }
- title
- }
- header
- subheaderNode {
- childMarkdownRemark {
- html
- }
- }
- body {
- ... on DatoCmsText {
- id
- model {
- apiKey
- }
- textNode {
- childMarkdownRemark {
- html
- }
- }
- }
- ... on DatoCmsVisual {
- id
- model {
- apiKey
- }
- media {
- fluid(maxWidth: 1200) {
- ...GatsbyDatoCmsFluid
- }
- title
- alt
- }
- }
- }
- }
- }
-`
diff --git a/src/pages/index.astro b/src/pages/index.astro
new file mode 100644
index 000000000..789a3246e
--- /dev/null
+++ b/src/pages/index.astro
@@ -0,0 +1,17 @@
+---
+
+---
+
+
+
+
+
+
+
+
+ Astro
+
+
+ Redesigning. Check back soon.
+
+
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
deleted file mode 100644
index bf51ba19d..000000000
--- a/src/pages/index.tsx
+++ /dev/null
@@ -1,107 +0,0 @@
-import React from "react"
-import { PageProps, graphql } from "gatsby"
-import { FluidObject } from "gatsby-image"
-import { HelmetDatoCms } from "gatsby-source-datocms"
-
-import Layout from "../components/Layout"
-import HeaderPage from "../components/HeaderPage"
-import CardPost from "../components/CardPost"
-
-interface Data {
- datoCmsHome: {
- seoMetaTags: {
- tags: []
- }
- header: string
- subheaderNode: {
- childMarkdownRemark: {
- html: string
- }
- }
- linkTo: string
- linkLabel: string
- }
- allDatoCmsPost: {
- edges: {
- node: {
- slug: string
- title: string
- date: string
- hero: {
- alt: string
- fluid: FluidObject
- }
- }
- }
- }
-}
-
-export default function BlogIndex(props: PageProps) {
- const { data } = props
-
- return (
-
-
-
-
- Recent Posts
-
- {data.allDatoCmsPost.edges.map(({ node }) => {
- return (
-
- )
- })}
-
-
-
- )
-}
-
-export const pageQuery = graphql`
- query {
- datoCmsHome {
- seoMetaTags {
- ...GatsbyDatoCmsSeoMetaTags
- }
- header
- subheaderNode {
- childMarkdownRemark {
- html
- }
- }
- linkTo
- linkLabel
- }
- allDatoCmsPost(sort: { fields: date, order: DESC }) {
- edges {
- node {
- slug
- title
- date(formatString: "MMMM DD, YYYY")
- seo {
- description
- }
- hero {
- alt
- fluid(maxWidth: 800) {
- ...GatsbyDatoCmsFluid
- }
- }
- }
- }
- }
- }
-`
diff --git a/src/styles/global.css b/src/styles/global.css
deleted file mode 100644
index 994bdf388..000000000
--- a/src/styles/global.css
+++ /dev/null
@@ -1,342 +0,0 @@
-@import "./normalize.css";
-@import "./tokens.css";
-
-/* Custom Fonts
- ========================================================================== */
-
-@font-face {
- font-family: "GT-Flexa-Expanded-Bold";
- src: url("../../static/fonts/GT-Flexa-Expanded-Bold.woff2"),
- url("../../static/fonts/GT-Flexa-Expanded-Bold.woff");
-}
-
-@font-face {
- font-family: "GT-Flexa-Standard-Regular";
- src: url("../../static/fonts/GT-Flexa-Standard-Regular.woff2"),
- url("../../static/fonts/GT-Flexa-Standard-Regular.woff");
-}
-
-@font-face {
- font-family: "GT-Alpina-Standard-Regular";
- src: url("../../static/fonts/GT-Alpina-Standard-Regular.woff2"),
- url("../../static/fonts/GT-Alpina-Standard-Regular.woff");
-}
-
-/* Tag Selectors
- ========================================================================== */
-
-/* Containers */
-
-body {
- background-color: var(--color-background);
- font-size: 1.0625rem;
- line-height: var(--lineHeight-2);
- font-family: var(--fontFamily-text-sans);
- font-weight: var(--fontWeight-400);
- font-feature-settings: "onum" 1, "pnum" 1, "kern" 1, "ss01" 1;
- font-kerning: normal;
- color: var(--color-primary);
-}
-
-main {
- margin: 0 var(--space-3);
-}
-
-@media (min-width: 600px) {
- body {
- font-size: 1.3125rem;
- }
-
- main {
- margin: 0 var(--space-4);
- }
-}
-
-@media (min-width: 1000px) {
- body {
- font-size: 1.5625rem;
- }
-
- main {
- margin: 0 var(--space-5);
- }
-}
-
-@media (min-width: 1500px) {
- body {
- font-size: 1.7058rem;
- }
-
- main {
- margin: 0 var(--space-6);
- }
-}
-
-@media (min-width: 2100px) {
- body {
- font-size: 1.9411rem;
- }
-
- main {
- margin: 0 var(--space-7);
- }
-}
-
-/* Link */
-
-a {
- color: var(--color-accent-default);
- transition: all 80ms ease-in;
- outline: none;
- border-radius: var(--borderRadius-1);
- text-decoration: none;
-}
-
-a:hover,
-a:active {
- text-decoration: underline;
- text-underline-position: under;
-}
-
-a:focus {
- box-shadow: 0 0 0 2px var(--color-focus);
-}
-
-/* Text */
-
-h1 {
- font-size: var(--fontSize-6);
-}
-
-h2 {
- font-size: var(--fontSize-5);
-}
-
-h3 {
- font-size: var(--fontSize-4);
-}
-
-h4 {
- font-size: var(--fontSize-3);
-}
-
-h1,
-h2,
-h3,
-h4 {
- font-weight: var(--fontWeight-400);
- font-family: var(--fontFamily-header);
- line-height: var(--lineHeight-0);
- letter-spacing: -0.015em;
- margin-top: var(--space-0);
- margin-bottom: var(--space-1);
-}
-
-h5 {
- font-size: var(--fontSize-2);
- margin-bottom: var(--space-2);
- line-height: var(--lineHeight-1);
-}
-
-h6 {
- font-size: var(--fontSize-0);
- color: var(--color-secondary);
-}
-
-p {
- font-family: var(--fontFamily-text-serif);
- font-size: var(--fontSize-1);
-}
-
-h5,
-p {
- font-family: var(--fontFamily-text-serif);
-}
-
-h6,
-p {
- margin-bottom: var(--space-3);
- line-height: var(--lineHeight-2);
-}
-
-h5,
-h6,
-p {
- font-weight: var(--fontWeight-400);
- margin-top: var(--space-0);
-}
-
-ul,
-ol {
- margin-top: var(--space-0);
- margin-bottom: var(--space-3);
- padding: 0 var(--space-3);
-}
-
-li {
- padding: 0 var(--space-2);
-}
-
-/* Visual */
-
-figure {
- margin: var(--space-0);
-}
-
-figcaption {
- font-family: var(--fontFamily-text-sans);
- font-size: var(--fontSize-0);
- color: var(--color-secondary);
- margin-bottom: var(--space-3);
-}
-
-img {
- border-radius: var(--borderRadius-4);
-}
-
-/* Class Selectors
- ========================================================================== */
-
-.nav {
- --m: var(--space-3);
-
- display: grid;
- grid-template-columns: calc(var(--m) - var(--space-3)) 1fr calc(
- var(--m) - var(--space-3)
- );
-}
-
-.list {
- padding: var(--spacing-0);
- margin: var(--spacing-0);
- list-style: none;
-}
-
-.list_nav {
- grid-column: 2/3;
- display: flex;
- flex-flow: row wrap;
-}
-
-.list__item {
- padding: var(--spacing-0);
- margin: var(--spacing-0);
-}
-
-.link-button {
- padding: var(--space-2) var(--space-3);
- border-radius: var(--borderRadius-6);
-}
-
-.header {
- /*Deprecated*/
- padding-bottom: var(--space-4);
-}
-
-.container {
- padding-bottom: var(--space-4);
-}
-
-.container_nav {
- padding-top: var(--space-4);
-}
-
-.intro {
- display: grid;
- grid-template-columns: min(55ch, 100%) 1fr;
-}
-
-.intro__hero {
- grid-column: 1/3;
-}
-
-.intro__hero_post {
- margin-bottom: var(--space-3);
-}
-
-.intro__title {
- grid-column: 1/3;
-}
-
-.intro__description {
- grid-column: 1/2;
-}
-
-.post-item {
- --display: block;
-
- display: var(--display);
- grid-template-columns: 1fr 2fr;
- grid-gap: var(--space-3);
- padding: var(--space-0) var(--space-0) var(--space-3);
-}
-
-.post-item__thumb {
- padding-bottom: var(--space-2);
-}
-
-.post-item__description {
- margin-bottom: var(--space-2);
-}
-
-.post {
- display: grid;
- grid-template-columns: 1fr min(55ch, 100%) 1fr;
- margin-bottom: var(--space-3);
- font-family: var(--fontFamily-text-serif);
-}
-
-.post__visual {
- grid-column: 1/4;
- padding: var(--space-3) 0;
-}
-
-.post__visual__media {
- margin-bottom: var(--space-2);
-}
-
-.post__text {
- grid-column: 2/3;
-}
-
-.pagination {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- grid-column-gap: var(--space-3);
-}
-
-.pagination__item_prev {
- grid-column: 1/2;
-}
-
-.pagination__item_next {
- grid-column: 2/3;
-}
-
-@media (min-width: 600px) {
- .nav {
- --m: var(--space-4);
- }
-
- .post-item {
- --display: grid;
- }
-}
-
-@media (min-width: 1000px) {
- .nav {
- --m: var(--space-5);
- }
-}
-
-@media (min-width: 1500px) {
- .nav {
- --m: var(--space-6);
- }
-}
-
-@media (min-width: 2100px) {
- .nav {
- --m: var(--space-7);
- }
-}
diff --git a/src/styles/normalize.css b/src/styles/normalize.css
deleted file mode 100644
index 192eb9ce4..000000000
--- a/src/styles/normalize.css
+++ /dev/null
@@ -1,349 +0,0 @@
-/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
-
-/* Document
- ========================================================================== */
-
-/**
- * 1. Correct the line height in all browsers.
- * 2. Prevent adjustments of font size after orientation changes in iOS.
- */
-
-html {
- line-height: 1.15; /* 1 */
- -webkit-text-size-adjust: 100%; /* 2 */
-}
-
-/* Sections
- ========================================================================== */
-
-/**
- * Remove the margin in all browsers.
- */
-
-body {
- margin: 0;
-}
-
-/**
- * Render the `main` element consistently in IE.
- */
-
-main {
- display: block;
-}
-
-/**
- * Correct the font size and margin on `h1` elements within `section` and
- * `article` contexts in Chrome, Firefox, and Safari.
- */
-
-h1 {
- font-size: 2em;
- margin: 0.67em 0;
-}
-
-/* Grouping content
- ========================================================================== */
-
-/**
- * 1. Add the correct box sizing in Firefox.
- * 2. Show the overflow in Edge and IE.
- */
-
-hr {
- box-sizing: content-box; /* 1 */
- height: 0; /* 1 */
- overflow: visible; /* 2 */
-}
-
-/**
- * 1. Correct the inheritance and scaling of font size in all browsers.
- * 2. Correct the odd `em` font sizing in all browsers.
- */
-
-pre {
- font-family: monospace, monospace; /* 1 */
- font-size: 1em; /* 2 */
-}
-
-/* Text-level semantics
- ========================================================================== */
-
-/**
- * Remove the gray background on active links in IE 10.
- */
-
-a {
- background-color: transparent;
-}
-
-/**
- * 1. Remove the bottom border in Chrome 57-
- * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
- */
-
-abbr[title] {
- border-bottom: none; /* 1 */
- text-decoration: underline; /* 2 */
- text-decoration: underline dotted; /* 2 */
-}
-
-/**
- * Add the correct font weight in Chrome, Edge, and Safari.
- */
-
-b,
-strong {
- font-weight: bolder;
-}
-
-/**
- * 1. Correct the inheritance and scaling of font size in all browsers.
- * 2. Correct the odd `em` font sizing in all browsers.
- */
-
-code,
-kbd,
-samp {
- font-family: monospace, monospace; /* 1 */
- font-size: 1em; /* 2 */
-}
-
-/**
- * Add the correct font size in all browsers.
- */
-
-small {
- font-size: 80%;
-}
-
-/**
- * Prevent `sub` and `sup` elements from affecting the line height in
- * all browsers.
- */
-
-sub,
-sup {
- font-size: 75%;
- line-height: 0;
- position: relative;
- vertical-align: baseline;
-}
-
-sub {
- bottom: -0.25em;
-}
-
-sup {
- top: -0.5em;
-}
-
-/* Embedded content
- ========================================================================== */
-
-/**
- * Remove the border on images inside links in IE 10.
- */
-
-img {
- border-style: none;
-}
-
-/* Forms
- ========================================================================== */
-
-/**
- * 1. Change the font styles in all browsers.
- * 2. Remove the margin in Firefox and Safari.
- */
-
-button,
-input,
-optgroup,
-select,
-textarea {
- font-family: inherit; /* 1 */
- font-size: 100%; /* 1 */
- line-height: 1.15; /* 1 */
- margin: 0; /* 2 */
-}
-
-/**
- * Show the overflow in IE.
- * 1. Show the overflow in Edge.
- */
-
-button,
-input { /* 1 */
- overflow: visible;
-}
-
-/**
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
- * 1. Remove the inheritance of text transform in Firefox.
- */
-
-button,
-select { /* 1 */
- text-transform: none;
-}
-
-/**
- * Correct the inability to style clickable types in iOS and Safari.
- */
-
-button,
-[type="button"],
-[type="reset"],
-[type="submit"] {
- -webkit-appearance: button;
-}
-
-/**
- * Remove the inner border and padding in Firefox.
- */
-
-button::-moz-focus-inner,
-[type="button"]::-moz-focus-inner,
-[type="reset"]::-moz-focus-inner,
-[type="submit"]::-moz-focus-inner {
- border-style: none;
- padding: 0;
-}
-
-/**
- * Restore the focus styles unset by the previous rule.
- */
-
-button:-moz-focusring,
-[type="button"]:-moz-focusring,
-[type="reset"]:-moz-focusring,
-[type="submit"]:-moz-focusring {
- outline: 1px dotted ButtonText;
-}
-
-/**
- * Correct the padding in Firefox.
- */
-
-fieldset {
- padding: 0.35em 0.75em 0.625em;
-}
-
-/**
- * 1. Correct the text wrapping in Edge and IE.
- * 2. Correct the color inheritance from `fieldset` elements in IE.
- * 3. Remove the padding so developers are not caught out when they zero out
- * `fieldset` elements in all browsers.
- */
-
-legend {
- box-sizing: border-box; /* 1 */
- color: inherit; /* 2 */
- display: table; /* 1 */
- max-width: 100%; /* 1 */
- padding: 0; /* 3 */
- white-space: normal; /* 1 */
-}
-
-/**
- * Add the correct vertical alignment in Chrome, Firefox, and Opera.
- */
-
-progress {
- vertical-align: baseline;
-}
-
-/**
- * Remove the default vertical scrollbar in IE 10+.
- */
-
-textarea {
- overflow: auto;
-}
-
-/**
- * 1. Add the correct box sizing in IE 10.
- * 2. Remove the padding in IE 10.
- */
-
-[type="checkbox"],
-[type="radio"] {
- box-sizing: border-box; /* 1 */
- padding: 0; /* 2 */
-}
-
-/**
- * Correct the cursor style of increment and decrement buttons in Chrome.
- */
-
-[type="number"]::-webkit-inner-spin-button,
-[type="number"]::-webkit-outer-spin-button {
- height: auto;
-}
-
-/**
- * 1. Correct the odd appearance in Chrome and Safari.
- * 2. Correct the outline style in Safari.
- */
-
-[type="search"] {
- -webkit-appearance: textfield; /* 1 */
- outline-offset: -2px; /* 2 */
-}
-
-/**
- * Remove the inner padding in Chrome and Safari on macOS.
- */
-
-[type="search"]::-webkit-search-decoration {
- -webkit-appearance: none;
-}
-
-/**
- * 1. Correct the inability to style clickable types in iOS and Safari.
- * 2. Change font properties to `inherit` in Safari.
- */
-
-::-webkit-file-upload-button {
- -webkit-appearance: button; /* 1 */
- font: inherit; /* 2 */
-}
-
-/* Interactive
- ========================================================================== */
-
-/*
- * Add the correct display in Edge, IE 10+, and Firefox.
- */
-
-details {
- display: block;
-}
-
-/*
- * Add the correct display in all browsers.
- */
-
-summary {
- display: list-item;
-}
-
-/* Misc
- ========================================================================== */
-
-/**
- * Add the correct display in IE 10+.
- */
-
-template {
- display: none;
-}
-
-/**
- * Add the correct display in IE 10.
- */
-
-[hidden] {
- display: none;
-}
diff --git a/src/styles/tokens.css b/src/styles/tokens.css
deleted file mode 100644
index 28ba0fe5f..000000000
--- a/src/styles/tokens.css
+++ /dev/null
@@ -1,74 +0,0 @@
-:root {
- /* Color */
- --color-primary: #1a1f23;
- --color-secondary: #5f7181;
- --color-accent-light: #8870ff;
- --color-accent-default: #6047ff;
- --color-accent-dark: #4332d9;
- --color-focus: #cf1726;
- --color-background: #f9fafb;
- --color-border: #e7ebee;
-
- /* Space */
- --space-0: 0;
- --space-1: 0.25em;
- --space-2: 0.5em;
- --space-3: 1em;
- --space-4: 2em;
- --space-5: 4em;
- --space-6: 8em;
- --space-7: 16em;
-
- /* Break Point */
- --breakpoint-0: 40rem;
- --breakpoint-1: 56rem;
- --breakpoint-2: 64rem;
-
- /* Border Radius */
- --borderRadius-0: 0;
- --borderRadius-1: 2px;
- --borderRadius-2: 4px;
- --borderRadius-3: 8px;
- --borderRadius-4: 16px;
- --borderRadius-5: 32px;
- --borderRadius-6: 99px;
-
- /* Font Family */
- --fontFamily-header: "GT-Flexa-Expanded-Bold", system-ui, -apple-system,
- blinkmacsystemfont, segoe ui, roboto, helvetica neue, sans-serif;
- --fontFamily-text-sans: "GT-Flexa-Standard-Regular", system-ui, -apple-system,
- blinkmacsystemfont, segoe ui, roboto, helvetica neue, sans-serif;
- --fontFamily-text-serif: "GT-Alpina-Standard-Regular", georgia, times,
- times new roman, serif;
-
- /* Font Size */
- --fontSize-0: 0.833em;
- --fontSize-1: 1em;
- --fontSize-2: 1.2em;
- --fontSize-3: 1.44em;
- --fontSize-4: 1.728em;
- --fontSize-5: 2.074em;
- --fontSize-6: 2.488em;
-
- /* Line Height */
- --lineHeight-0: 1;
- --lineHeight-1: 1.35;
- --lineHeight-2: 1.5;
-
- /* Font Weight */
- --fontWeight-400: 400;
- --fontWeight-600: 600;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-primary: #f9fafb;
- --color-secondary: #adb9c2;
- --color-accent-light: #ff7e70;
- --color-accent-default: #ff5447;
- --color-accent-dark: #d93732;
- --color-focus: #47a6ff;
- --color-background: #101010;
- --color-border: #292929;
- }
-}
diff --git a/src/templates/blog-post.tsx b/src/templates/blog-post.tsx
deleted file mode 100644
index f9b2f2d70..000000000
--- a/src/templates/blog-post.tsx
+++ /dev/null
@@ -1,187 +0,0 @@
-import React from "react"
-import { graphql, PageProps } from "gatsby"
-import Image, { FluidObject, FixedObject } from "gatsby-image"
-import { HelmetDatoCms } from "gatsby-source-datocms"
-
-import Bio from "../components/Bio"
-import Layout from "../components/Layout"
-import ListPost from "../components/ListPost"
-
-type Data = {
- datoCmsSite: {
- globalSeo: {
- siteName: string
- }
- }
- datoCmsPost: {
- seo: {
- image: {
- fixed: FixedObject
- }
- title: string
- description: string
- }
- seoMetaTags: {
- tags: []
- }
- title: string
- date: string
- hero: {
- alt: string
- fluid: FluidObject
- }
- body: {
- id: string
- model: {
- apiKey: string
- id: string
- }
- textNode: {
- childMarkdownRemark: {
- html: string
- }
- }
- media: {
- alt: string
- fluid: FluidObject
- title: string
- }
- }[]
-
- pageContext: {
- next: {
- slug: string
- title: string
- }
- previous: {
- slug: string
- title: string
- }
- slug: string
- }
- }
-}
-
-export default function BlogPostTemplate(props: PageProps) {
- const { data, pageContext } = props
-
- const { previous, next } = pageContext
-
- return (
-
-
-
-
-
-
-
- {data.datoCmsPost.title}
-
- {data.datoCmsPost.seo.description}
-
- {data.datoCmsPost.date}
-
-
- {data.datoCmsPost.body.map((block) => (
-
- {block.model.apiKey === "text" && (
-
- )}
- {block.model.apiKey === "visual" && (
-
-
- {block.media.title}
-
- )}
-
- ))}
-
-
- {previous || next ? (
-
-
-
- {previous && (
-
- )}
-
-
- {next && (
-
- )}
-
-
-
- ) : null}
-
-
- )
-}
-
-export const pageQuery = graphql`
- query BlogPostBySlug($slug: String!) {
- datoCmsPost(slug: { eq: $slug }) {
- seo {
- description
- }
- seoMetaTags {
- ...GatsbyDatoCmsSeoMetaTags
- }
- slug
- title
- date(formatString: "MMMM DD, YYYY")
- hero {
- alt
- fluid(maxWidth: 1200) {
- ...GatsbyDatoCmsFluid
- }
- }
- body {
- ... on DatoCmsText {
- id
- model {
- apiKey
- }
- textNode {
- childMarkdownRemark {
- html
- }
- }
- }
- ... on DatoCmsVisual {
- id
- model {
- apiKey
- }
- media {
- fluid(maxWidth: 1200) {
- ...GatsbyDatoCmsFluid
- }
- title
- alt
- }
- }
- }
- }
- }
-`
diff --git a/static/favicon_16x16.ico b/static/favicon_16x16.ico
deleted file mode 100644
index c94683503..000000000
Binary files a/static/favicon_16x16.ico and /dev/null differ
diff --git a/static/fonts/GT-Alpina-Standard-Regular.woff b/static/fonts/GT-Alpina-Standard-Regular.woff
deleted file mode 100644
index 758d0ad06..000000000
Binary files a/static/fonts/GT-Alpina-Standard-Regular.woff and /dev/null differ
diff --git a/static/fonts/GT-Alpina-Standard-Regular.woff2 b/static/fonts/GT-Alpina-Standard-Regular.woff2
deleted file mode 100644
index 67830c305..000000000
Binary files a/static/fonts/GT-Alpina-Standard-Regular.woff2 and /dev/null differ
diff --git a/static/fonts/GT-Flexa-Expanded-Bold.woff b/static/fonts/GT-Flexa-Expanded-Bold.woff
deleted file mode 100644
index 90c248b33..000000000
Binary files a/static/fonts/GT-Flexa-Expanded-Bold.woff and /dev/null differ
diff --git a/static/fonts/GT-Flexa-Expanded-Bold.woff2 b/static/fonts/GT-Flexa-Expanded-Bold.woff2
deleted file mode 100644
index da53ad6b6..000000000
Binary files a/static/fonts/GT-Flexa-Expanded-Bold.woff2 and /dev/null differ
diff --git a/static/fonts/GT-Flexa-Standard-Regular.woff b/static/fonts/GT-Flexa-Standard-Regular.woff
deleted file mode 100644
index 0ce6e2526..000000000
Binary files a/static/fonts/GT-Flexa-Standard-Regular.woff and /dev/null differ
diff --git a/static/fonts/GT-Flexa-Standard-Regular.woff2 b/static/fonts/GT-Flexa-Standard-Regular.woff2
deleted file mode 100644
index 080dda5ed..000000000
Binary files a/static/fonts/GT-Flexa-Standard-Regular.woff2 and /dev/null differ
diff --git a/static/robots.txt b/static/robots.txt
deleted file mode 100644
index eb0536286..000000000
--- a/static/robots.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-User-agent: *
-Disallow:
diff --git a/tsconfig.json b/tsconfig.json
index c8b60fbb5..8bf91d3bb 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,14 +1,5 @@
{
- "compilerOptions": {
- "module": "commonjs",
- "target": "esnext",
- "jsx": "preserve",
- "lib": ["dom", "esnext"],
- "strict": true,
- "noEmit": true,
- "isolatedModules": true,
- "esModuleInterop": true,
- "noUnusedLocals": false
- },
- "exclude": ["node_modules", "public", ".cache"]
+ "extends": "astro/tsconfigs/strict",
+ "include": [".astro/types.d.ts", "**/*"],
+ "exclude": ["dist"]
}