diff --git a/.eslintrc.js b/.eslintrc.js index b3a15d6f..b81cc2d3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,7 +3,6 @@ module.exports = { browser: true, commonjs: true, es2021: true, - ecmaVersion: true, }, extends: 'eslint:recommended', parserOptions: { diff --git a/.gitignore b/.gitignore index a95f2cf0..f80537ed 100644 --- a/.gitignore +++ b/.gitignore @@ -35,5 +35,4 @@ yarn-error.log* .vercel # gatsby -.cache -public \ No newline at end of file +.cache \ No newline at end of file diff --git a/gatsby-browser.js b/gatsby-browser.js deleted file mode 100644 index 112ffaf9..00000000 --- a/gatsby-browser.js +++ /dev/null @@ -1,2 +0,0 @@ -import './src/assets/fonts/Inter/Inter.css' -import './src/assets/fonts/RobotoMono/RobotoMono.css' diff --git a/gatsby-config.js b/gatsby-config.js deleted file mode 100644 index 0d168d1c..00000000 --- a/gatsby-config.js +++ /dev/null @@ -1,56 +0,0 @@ -const path = require('path') -const colours = require('./src/constants/ui/colours') - -const title = 'Dev Resources API' - -module.exports = { - siteMetadata: { - title, - description: `The Dev Resources API.`, - author: 'Marcel Cruz', - }, - plugins: [ - `gatsby-plugin-react-helmet`, - `gatsby-transformer-sharp`, - `gatsby-plugin-sharp`, - `gatsby-transformer-remark`, - { - resolve: `gatsby-source-filesystem`, - options: { - path: `${__dirname}/src/markdown-pages`, - name: `markdown-pages`, - }, - }, - { - resolve: 'gatsby-plugin-root-import', - options: { - src: path.join(__dirname, 'src'), - fonts: path.join(__dirname, 'src/assets/fonts'), - images: path.join(__dirname, 'src/assets/images'), - components: path.join(__dirname, 'src/components'), - constants: path.join(__dirname, 'src/constants'), - pages: path.join(__dirname, 'src/pages'), - styles: path.join(__dirname, 'src/styles'), - utils: path.join(__dirname, 'src/utils'), - }, - }, - { - resolve: `gatsby-plugin-layout`, - options: { - component: require.resolve(`./src/components/layout.js`), - }, - }, - { - resolve: `gatsby-plugin-manifest`, - options: { - name: title, - short_name: title, - start_url: `/`, - background_color: colours.black, - theme_color: colours.black, - display: `standalone`, - icon: 'src/assets/images/favicon.png', - }, - }, - ], -} diff --git a/gatsby-node.js b/gatsby-node.js deleted file mode 100644 index e5e7ec82..00000000 --- a/gatsby-node.js +++ /dev/null @@ -1,34 +0,0 @@ -exports.createPages = async ({ actions, graphql, reporter }) => { - const { createPage } = actions - - const markdownTemplate = require.resolve(`./src/templates/markdown.js`) - - const result = await graphql(` - { - allMarkdownRemark { - edges { - node { - frontmatter { - slug - } - } - } - } - } - `) - - if (result.errors) { - reporter.panicOnBuild(`Error while running GraphQL query.`) - return - } - - result.data.allMarkdownRemark.edges.forEach(({ node }) => { - createPage({ - path: node.frontmatter.slug, - component: markdownTemplate, - context: { - slug: node.frontmatter.slug, - }, - }) - }) -} diff --git a/gatsby-ssr.js b/gatsby-ssr.js deleted file mode 100644 index 01d83255..00000000 --- a/gatsby-ssr.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Implement Gatsby's SSR (Server Side Rendering) APIs in this file. - * - * See: https://www.gatsbyjs.com/docs/ssr-apis/ - */ - -// You can delete this file if you're not using it diff --git a/src/assets/images/favicon.png b/public/assets/images/favicon.png similarity index 100% rename from src/assets/images/favicon.png rename to public/assets/images/favicon.png diff --git a/src/assets/images/logo.svg b/public/assets/images/logo.svg similarity index 100% rename from src/assets/images/logo.svg rename to public/assets/images/logo.svg diff --git a/public/index.html b/public/index.html new file mode 100644 index 00000000..857dbb59 --- /dev/null +++ b/public/index.html @@ -0,0 +1,19 @@ + + +
+ + + + + + + + +Visit our GitHub repository for instructions on how to use it and how to collaborate.
+ + \ No newline at end of file diff --git a/public/style.css b/public/style.css new file mode 100644 index 00000000..38cf3cba --- /dev/null +++ b/public/style.css @@ -0,0 +1,44 @@ +* { + margin: 0; + padding: 0; +} + +body { + align-items: center; + background-color: #0A0B0D; + box-sizing: border-box; + color: #FFFFFF; + display: flex; + flex-direction: column; + font-family: 'Inter', sans-serif; + height: 100vh; + justify-content: center; + padding: 20px; + width: 100vw; +} + +a, +a:visited, +a:active { + color: #FFFFFF; +} + + +img { + height: 20px; + margin-bottom: 50px; +} + +p { + text-align: center; +} + +@media screen and (min-width: 500px) { + img { + height: 40px; + } + + p { + font-size: 18px; + } +} \ No newline at end of file diff --git a/src/assets/fonts/Inter/Inter-Black.ttf b/src/assets/fonts/Inter/Inter-Black.ttf deleted file mode 100644 index 56537577..00000000 Binary files a/src/assets/fonts/Inter/Inter-Black.ttf and /dev/null differ diff --git a/src/assets/fonts/Inter/Inter-Bold.ttf b/src/assets/fonts/Inter/Inter-Bold.ttf deleted file mode 100644 index e98b84ce..00000000 Binary files a/src/assets/fonts/Inter/Inter-Bold.ttf and /dev/null differ diff --git a/src/assets/fonts/Inter/Inter-ExtraBold.ttf b/src/assets/fonts/Inter/Inter-ExtraBold.ttf deleted file mode 100644 index 7f16a0f0..00000000 Binary files a/src/assets/fonts/Inter/Inter-ExtraBold.ttf and /dev/null differ diff --git a/src/assets/fonts/Inter/Inter-ExtraLight.ttf b/src/assets/fonts/Inter/Inter-ExtraLight.ttf deleted file mode 100644 index 69426a3e..00000000 Binary files a/src/assets/fonts/Inter/Inter-ExtraLight.ttf and /dev/null differ diff --git a/src/assets/fonts/Inter/Inter-Light.ttf b/src/assets/fonts/Inter/Inter-Light.ttf deleted file mode 100644 index a5f07369..00000000 Binary files a/src/assets/fonts/Inter/Inter-Light.ttf and /dev/null differ diff --git a/src/assets/fonts/Inter/Inter-Medium.ttf b/src/assets/fonts/Inter/Inter-Medium.ttf deleted file mode 100644 index 721147d8..00000000 Binary files a/src/assets/fonts/Inter/Inter-Medium.ttf and /dev/null differ diff --git a/src/assets/fonts/Inter/Inter-Regular.ttf b/src/assets/fonts/Inter/Inter-Regular.ttf deleted file mode 100644 index 96fd6a12..00000000 Binary files a/src/assets/fonts/Inter/Inter-Regular.ttf and /dev/null differ diff --git a/src/assets/fonts/Inter/Inter-SemiBold.ttf b/src/assets/fonts/Inter/Inter-SemiBold.ttf deleted file mode 100644 index ddb27929..00000000 Binary files a/src/assets/fonts/Inter/Inter-SemiBold.ttf and /dev/null differ diff --git a/src/assets/fonts/Inter/Inter-Thin.ttf b/src/assets/fonts/Inter/Inter-Thin.ttf deleted file mode 100644 index 76be6252..00000000 Binary files a/src/assets/fonts/Inter/Inter-Thin.ttf and /dev/null differ diff --git a/src/assets/fonts/Inter/Inter.css b/src/assets/fonts/Inter/Inter.css deleted file mode 100644 index b0309f00..00000000 --- a/src/assets/fonts/Inter/Inter.css +++ /dev/null @@ -1,80 +0,0 @@ -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 100; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Inter Thin'), url('./Inter-Thin.ttf') format('truetype'); -} - -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 200; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Inter Extra Light'), url('./Inter-ExtraLight.ttf') format('truetype'); -} - -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 300; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Inter Light'), url('./Inter-Light.ttf') format('truetype'); -} - -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 400; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Inter Regular'), url('./Inter-Regular.ttf') format('truetype'); -} - -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 500; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Inter Medium'), url('./Inter-Medium.ttf') format('truetype'); -} - -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 600; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Inter Semi Bold'), url('./Inter-SemiBold.ttf') format('truetype'); -} - -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 700; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Inter Bold'), url('./Inter-Bold.ttf') format('truetype'); -} - -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 800; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Inter Extra Bold'), url('./Inter-ExtraBold.ttf') format('truetype'); -} - -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 900; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Inter Black'), url('./Inter-Black.ttf') format('truetype'); -} diff --git a/src/assets/fonts/RobotoMono/RobotoMono-Bold.ttf b/src/assets/fonts/RobotoMono/RobotoMono-Bold.ttf deleted file mode 100644 index 900fce68..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-Bold.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono-BoldItalic.ttf b/src/assets/fonts/RobotoMono/RobotoMono-BoldItalic.ttf deleted file mode 100644 index 4bfe29ae..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-BoldItalic.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono-ExtraLight.ttf b/src/assets/fonts/RobotoMono/RobotoMono-ExtraLight.ttf deleted file mode 100644 index d5358845..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-ExtraLight.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono-ExtraLightItalic.ttf b/src/assets/fonts/RobotoMono/RobotoMono-ExtraLightItalic.ttf deleted file mode 100644 index b28960a0..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-ExtraLightItalic.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono-Italic.ttf b/src/assets/fonts/RobotoMono/RobotoMono-Italic.ttf deleted file mode 100644 index 4ee4dc49..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-Italic.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono-Light.ttf b/src/assets/fonts/RobotoMono/RobotoMono-Light.ttf deleted file mode 100644 index 276af4c5..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-Light.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono-LightItalic.ttf b/src/assets/fonts/RobotoMono/RobotoMono-LightItalic.ttf deleted file mode 100644 index a2801c21..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-LightItalic.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono-Medium.ttf b/src/assets/fonts/RobotoMono/RobotoMono-Medium.ttf deleted file mode 100644 index 8461be77..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-Medium.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono-MediumItalic.ttf b/src/assets/fonts/RobotoMono/RobotoMono-MediumItalic.ttf deleted file mode 100644 index a3bfaa11..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-MediumItalic.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono-Regular.ttf b/src/assets/fonts/RobotoMono/RobotoMono-Regular.ttf deleted file mode 100644 index 7c4ce36a..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-Regular.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono-SemiBold.ttf b/src/assets/fonts/RobotoMono/RobotoMono-SemiBold.ttf deleted file mode 100644 index 15ee6c6e..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-SemiBold.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono-SemiBoldItalic.ttf b/src/assets/fonts/RobotoMono/RobotoMono-SemiBoldItalic.ttf deleted file mode 100644 index 8e214977..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-SemiBoldItalic.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono-Thin.ttf b/src/assets/fonts/RobotoMono/RobotoMono-Thin.ttf deleted file mode 100644 index ee8a3fd4..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-Thin.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono-ThinItalic.ttf b/src/assets/fonts/RobotoMono/RobotoMono-ThinItalic.ttf deleted file mode 100644 index 40b01e40..00000000 Binary files a/src/assets/fonts/RobotoMono/RobotoMono-ThinItalic.ttf and /dev/null differ diff --git a/src/assets/fonts/RobotoMono/RobotoMono.css b/src/assets/fonts/RobotoMono/RobotoMono.css deleted file mode 100644 index 46ed3356..00000000 --- a/src/assets/fonts/RobotoMono/RobotoMono.css +++ /dev/null @@ -1,62 +0,0 @@ -@font-face { - font-family: 'Roboto Mono'; - font-style: normal; - font-weight: normal; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Roboto Mono Regular'), url('./RobotoMono-Regular.ttf') format('truetype'); -} - -@font-face { - font-family: 'Roboto Mono'; - font-style: normal; - font-weight: 700; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Roboto Mono Bold'), url('./RobotoMono-Bold.ttf') format('truetype'); -} - -@font-face { - font-family: 'Roboto Mono'; - font-style: italic; - font-weight: 700; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Roboto Mono Bold Italic'), url('./RobotoMono-BoldItalic.ttf') format('truetype'); -} - -@font-face { - font-family: 'Roboto Mono'; - font-style: italic; - font-weight: normal; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Roboto Mono Italic'), url('./RobotoMono-Italic.ttf') format('truetype'); -} - -@font-face { - font-family: 'Roboto Mono'; - font-style: normal; - font-weight: 500; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Roboto Mono Medium'), url('./RobotoMono-Medium.ttf') format('truetype'); -} - -@font-face { - font-family: 'Roboto Mono'; - font-style: italic; - font-weight: 500; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Roboto Mono Medium Italic'), url('./RobotoMono-MediumItalic.ttf') format('truetype'); -} - -@font-face { - font-family: 'Roboto Mono'; - font-style: normal; - font-weight: 100; - font-display: swap; - unicode-range: U+000-5FF; - src: local('Roboto Mono Light'), url('./RobotoMono-Thin.ttf') format('truetype'); -} diff --git a/src/components/header.js b/src/components/header.js deleted file mode 100644 index bdc2c116..00000000 --- a/src/components/header.js +++ /dev/null @@ -1,55 +0,0 @@ -import React, { useContext } from 'react' -import { Flex, Box } from '@chakra-ui/react' -// import { Button, Logo, MobileMenu } from 'components' -import Logo from './logo' -import colours from 'constants/ui/colours' -import sizes from 'constants/ui/sizes' -// import preventFocus from 'utils/prevent-focus' -// import siteMetadata from 'constants/site-metadata' - -const { contentXPadding, headerHeight } = sizes - -export function Header() { - return ( -