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 @@ + + + + + + + + + + + + Dev Resources API + + + Dev Resources API + +

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 ( - - - - - {/* - - */} - - {/* - - - - */} - - - ) -} - -export default Header diff --git a/src/components/layout.js b/src/components/layout.js deleted file mode 100644 index 095a92ce..00000000 --- a/src/components/layout.js +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react' -import { ChakraProvider } from '@chakra-ui/react' -import GlobalStyle from 'styles/global-style' -import Header from 'components/header' - -function Layout({ children }) { - return ( - - - -
- - {children} - - ) -} - -export default Layout diff --git a/src/components/logo.js b/src/components/logo.js deleted file mode 100644 index b3769db6..00000000 --- a/src/components/logo.js +++ /dev/null @@ -1,31 +0,0 @@ -import React from 'react' -import { Link as GatsbyLink } from 'gatsby' -import { Box, Image } from '@chakra-ui/react' -import logo from 'images/logo.svg' -import { focusBorder } from 'constants/ui/borders' -import preventFocus from 'utils/prevent-focus' - -export function Logo() { - return ( - - Dev Resources API logo - - ) -} - -export default Logo diff --git a/src/constants/ui/borders.js b/src/constants/ui/borders.js deleted file mode 100644 index 17ce0557..00000000 --- a/src/constants/ui/borders.js +++ /dev/null @@ -1,13 +0,0 @@ -import colours from './colours' - -export const borderRadius = { - small: '10px', - large: '30px', -} - -export const focusBorder = { - borderRadius: '4px', - borderColor: colours.grey5, - boxShadow: `0 0 0 3px ${colours.grey5}`, - outline: 'none', -} diff --git a/src/constants/ui/breakpoints.js b/src/constants/ui/breakpoints.js deleted file mode 100644 index ac487e41..00000000 --- a/src/constants/ui/breakpoints.js +++ /dev/null @@ -1,18 +0,0 @@ -// Chakra's default breakpoints -const chakraBreakpoints = { - sm: '30em', // 480px - md: '48em', // 768px - lg: '62em', // 992px - xl: '80em', // 1280px -} - -const customBreakpoints = { - xs: '350px', // Used for phones like iPhone 5 -} - -const breakpoints = { - ...chakraBreakpoints, - ...customBreakpoints, -} - -export default breakpoints diff --git a/src/constants/ui/colours.js b/src/constants/ui/colours.js deleted file mode 100644 index 60e9e623..00000000 --- a/src/constants/ui/colours.js +++ /dev/null @@ -1,55 +0,0 @@ -module.exports = { - black: '#0A0B0D', - blackRGB: '10, 11, 13', - white: '#FFFFFF', - blue: '#3D5FA0', - green: '#3b785a', - - grey1: '#121417', - grey2: '#16181C', - grey3: '#191B1F', - grey4: '#1F2126', - grey5: '#292C33', - grey6: '#575C66', - grey7: '#81858F', - grey8: '#C0C4CC', - - button: { - grey: { - foreground: '#BCC7DB', - background: '#292D33', - outline: '#31363D', - }, - blue: { - foreground: '#6C94E0', - background: '#1D283E', - outline: '#23304A', - }, - red: { - foreground: '#E56767', - background: '#5C2323', - outline: '#692828', - }, - }, - - status: { - successMessage: '#55B292', - errorMessage: '#E56767', - errorField: '#692828', - }, - - badge: { - green: { - foreground: '#86BFAC', - background: '#284F42', - outline: '#2E5C4D', - }, - yellow: { - foreground: '#E8C87D', - background: '#786026', - outline: '#876C2B', - }, - }, - - modalOverlay: 'rgba(0,0,0,0.7)', -} diff --git a/src/constants/ui/fonts.js b/src/constants/ui/fonts.js deleted file mode 100644 index a345b7a7..00000000 --- a/src/constants/ui/fonts.js +++ /dev/null @@ -1,6 +0,0 @@ -const fonts = { - heading: '"Roboto Mono", system-ui, sans-serif', - body: '"Inter", system-ui, sans-serif', -} - -export default fonts diff --git a/src/constants/ui/icons.js b/src/constants/ui/icons.js deleted file mode 100644 index 9de22b62..00000000 --- a/src/constants/ui/icons.js +++ /dev/null @@ -1,40 +0,0 @@ -import platforms from 'constants/platforms' - -const { - facebook, - github, - googlePodcast, - instagram, - itunes, - linkedin, - npm, - productHunt, - spotify, - twitter, - youtube, -} = platforms - -const icons = { - alert: 'alert', - arrow: 'arrow', - check: 'check', - chevron: 'chevron', - close: 'close', - dot: 'dot', - facebook, - github, - googlePodcast, - instagram, - itunes, - linkedin, - menu: 'menu', - npm, - productHunt, - search: 'search', - sort: 'sort', - spotify, - twitter, - youtube, -} - -export default icons diff --git a/src/constants/ui/input-and-controls-config.js b/src/constants/ui/input-and-controls-config.js deleted file mode 100644 index 78c61a52..00000000 --- a/src/constants/ui/input-and-controls-config.js +++ /dev/null @@ -1,14 +0,0 @@ -import colours from './colours' - -// The duplicated border styles make sure -// Chakra doesn't overwrite it -const config = { - background: colours.grey3, - border: `1px solid ${colours.grey4}`, - borderColor: colours.grey4, - borderStyle: 'solid', - borderWidth: '1px', - borderRadius: '10px', -} - -export default config diff --git a/src/constants/ui/scrollbar.js b/src/constants/ui/scrollbar.js deleted file mode 100644 index 901b7673..00000000 --- a/src/constants/ui/scrollbar.js +++ /dev/null @@ -1,18 +0,0 @@ -export const hideScrollbar = ` - scrollbar-width: none; /* Firefox */ - -ms-overflow-style: none; /* IE and Edge */ - - ::-webkit-scrollbar { - display: none; - } - - ::-webkit-scrollbar-track { - box-shadow: none !important; - -webkit-box-shadow: none !important; - background-color: transparent; - } - - ::-webkit-scrollbar-thumb { - background-color: transparent; - } -` diff --git a/src/constants/ui/shadows.js b/src/constants/ui/shadows.js deleted file mode 100644 index 3f13f7d3..00000000 --- a/src/constants/ui/shadows.js +++ /dev/null @@ -1,9 +0,0 @@ -const shadows = { - darkMode: `0 8px 24px 0 rgba(0,0,0,.24)`, - darkModeHover: `0 22px 32px -8px rgba(0,0,0,.4)`, - - lightMode: `0 8px 24px 0 rgba(0,0,0,.08)`, - lightModeHover: `0 16px 32px -8px rgba(0,0,0,.12)`, -} - -export default shadows diff --git a/src/constants/ui/sizes.js b/src/constants/ui/sizes.js deleted file mode 100644 index e142ee0a..00000000 --- a/src/constants/ui/sizes.js +++ /dev/null @@ -1,8 +0,0 @@ -const sizes = { - contentMaxWidth: '1200px', - headerHeight: { base: '60px', lg: '80px' }, - contentYPadding: { base: '30px', lg: '40px' }, - contentXPadding: { base: '20px', lg: '20px', xl: '30px' }, -} - -export default sizes diff --git a/src/constants/ui/typography.js b/src/constants/ui/typography.js deleted file mode 100644 index 10d52b64..00000000 --- a/src/constants/ui/typography.js +++ /dev/null @@ -1,182 +0,0 @@ -import fonts from 'constants/ui/fonts' - -const config = { - heading: { - fontFamily: fonts.heading, - fontWeight: '700', - textTransform: 'uppercase', - lineHeight: '1.2', - }, - body: { - fontFamily: fonts.body, - fontWeight: '400', - lineHeight: '1.4', - }, - statusMessage: { - letterSpacing: '1px', - lineHeight: '1.5', - wordSpacing: '-3px', - }, -} - -const input = { - ...config.body, - letterSpacing: '0.4px', -} - -const statusMessage = { - sm: { ...config.heading, ...config.statusMessage, fontSize: '10px' }, - md: { ...config.heading, ...config.statusMessage, fontSize: '12px' }, - lg: { ...config.heading, ...config.statusMessage, fontSize: '14px' }, -} - -const heading = { - hero: { - base: { ...config.heading, fontSize: '32px', letterSpacing: '0.8px', wordSpacing: '-10px' }, - xs: { ...config.heading, fontSize: '38px', letterSpacing: '0.8px', wordSpacing: '-10px' }, - sm: { ...config.heading, fontSize: '42px', letterSpacing: '1px', wordSpacing: '-10px' }, - md: { ...config.heading, fontSize: '46px', letterSpacing: '1px', wordSpacing: '-10px' }, - lg: { ...config.heading, fontSize: '58px', letterSpacing: '1px', wordSpacing: '-12px' }, - xl: { ...config.heading, fontSize: '72px', letterSpacing: '1px', wordSpacing: '-15px' }, - }, - xxxs: { - ...config.heading, - fontSize: '10px', - letterSpacing: '1.2px', - wordSpacing: '-3px', - }, - xxs: { - ...config.heading, - fontSize: '14px', - letterSpacing: '1.2px', - wordSpacing: '-3px', - }, - xs: { - ...config.heading, - fontSize: '16px', - letterSpacing: '1.2px', - wordSpacing: '-5px', - }, - sm: { - ...config.heading, - fontSize: '18px', - letterSpacing: '1.4px', - wordSpacing: '-5px', - }, - md: { - ...config.heading, - fontSize: '20px', - letterSpacing: '1.6px', - wordSpacing: '-5px', - }, - lg: { - ...config.heading, - fontSize: '24px', - letterSpacing: '2px', - wordSpacing: '-5px', - }, - xl: { - ...config.heading, - fontSize: '26px', - letterSpacing: '2px', - wordSpacing: '-5px', - }, - xxl: { - ...config.heading, - fontSize: '30px', - letterSpacing: '2px', - wordSpacing: '-5px', - }, - xxxl: { - ...config.heading, - fontSize: '42px', - letterSpacing: '2px', - wordSpacing: '-5px', - }, -} - -const body = { - xs: { - ...config.body, - fontSize: '13px', - letterSpacing: '0.4px', - }, - sm: { - ...config.body, - fontSize: '14px', - letterSpacing: '0.4px', - }, - md: { - ...config.body, - fontSize: '15px', - letterSpacing: '0.4px', - }, - lg: { - ...config.body, - fontSize: '16px', - letterSpacing: '0.4px', - }, - xl: { - ...config.body, - fontSize: '18px', - letterSpacing: '0.8px', - }, - xxl: { - ...config.body, - fontSize: '20px', - letterSpacing: '0.8px', - }, - xxxl: { - ...config.body, - fontSize: '22px', - letterSpacing: '0.8px', - }, -} - -const link = { - footer: { - ...config.heading, - fontSize: '12px', - letterSpacing: '1px', - }, - platform: { - ...config.heading, - fontSize: '14px', - letterSpacing: '1px', - wordSpacing: '-5px', - }, -} - -const typography = { - input, - statusMessage, - heading, - body, - link, -} - -export default typography - -// card category - 10 -// page subtitle mobile - 14 -// site descrip mobile - 16 -// card - 18 - -// site descrip desktop - 20 - -// section mobile - 24 -// page mobile - 26 -// section desktop - 30 -// page desktop - 42 - -// xxxs -// xxs -// xs -// sm - -// md - -// lg -// xl -// xxl -// xxxl diff --git a/src/markdown-pages/README.md b/src/markdown-pages/README.md deleted file mode 100644 index 1b1c5775..00000000 --- a/src/markdown-pages/README.md +++ /dev/null @@ -1,59 +0,0 @@ ---- -slug: '/' ---- - -## Index - -* [Assets](#assets) - * [Fonts](#assets-fonts) - * [Icons](#assets-icons) -* [Infrastructure](#infrastructure) - * [Hosting](#infrastructure-hosting) -* [Programming](#programming) - * [JavaScript](#programming-javascript) - * [React](#programming-javascript-react) -* [Tools & Utilities](#tools-utilities) - * [Public APIs](#tools-utilities-public-apis) - Powered by [Public APIs](https://github.com/public-apis/public-apis) - - -## Assets - -### Fonts -|   | Name | Description | Links | Keywords | -|---|---|---|---|---| -   | B Icons, Fonts and React | | [Main](https://1forge.com/forex-data-api/api-documentation)
[npm](https://test.com) | | - -**[⬆ Back to Index](#index)** - -### Icons -|   | Name | Description | Links | Keywords | -|---|---|---|---|---| -   | B Icons and Hosting | | [Main](https://1forge.com/forex-data-api/api-documentation)
[npm](https://test.com) | | -   | B Icons, Fonts and React | | [Main](https://1forge.com/forex-data-api/api-documentation)
[npm](https://test.com) | | - -**[⬆ Back to Index](#index)** -## Infrastructure - -### Hosting -|   | Name | Description | Links | Keywords | -|---|---|---|---|---| - | 1001 Fonts | 24,262 free fonts in 13,112 families · Free licenses for commercial use · Direct font downloads · Mac · Windows · Linux. | [Main](https://1forge.com/forex-data-api/api-documentation)
[Apple Podcasts](https://test.com)
[Facebook](https://test.com)
[LinkedIn](https://test.com) | | - | 18F Accessibility Guide | A simple checklist for determining if your site is accessible. | [Main](https://1forge.com/forex-data-api/api-documentation)
[npm](https://test.com) | | - | 1Forge | Documentation for real-time Forex quotes and Cryptocurrency quotes. 1Forge is a live Forex trading API and currency directory, offering live currency quotes. | [Main](https://1forge.com/forex-data-api/api-documentation)
[Spotify](https://test.com) | forex quotes, live forex quotes, cryptocurrency quotes, forex trading quotes, forex directory quotes... | -   | A Hosting | yep! | [Main](https://1forge.com/forex-data-api/api-documentation)
[Instagram](https://test.com) | | -   | B Icons and Hosting | | [Main](https://1forge.com/forex-data-api/api-documentation)
[npm](https://test.com) | | - -**[⬆ Back to Index](#index)** -## Programming -## JavaScript - -### React -|   | Name | Description | Links | Keywords | -|---|---|---|---|---| -   | B Icons, Fonts and React | | [Main](https://1forge.com/forex-data-api/api-documentation)
[npm](https://test.com) | | - -**[⬆ Back to Index](#index)** -## Tools & Utilities - -### Public APIs -This section is powered by [Public APIs](https://github.com/public-apis/public-apis). \ No newline at end of file diff --git a/src/pages/404.js b/src/pages/404.js deleted file mode 100644 index f36dce3f..00000000 --- a/src/pages/404.js +++ /dev/null @@ -1,5 +0,0 @@ -import React from 'react' - -const NotFoundPage = () =>

404: Not Found

- -export default NotFoundPage diff --git a/src/styles/global-style.js b/src/styles/global-style.js deleted file mode 100644 index b461b75c..00000000 --- a/src/styles/global-style.js +++ /dev/null @@ -1,45 +0,0 @@ -import React from 'react' -import { Global, css } from '@emotion/react' -import colours from 'constants/ui/colours' -import fonts from 'constants/ui/fonts' - -export function GlobalStyle() { - return ( - - ) -} - -export default GlobalStyle diff --git a/src/templates/markdown.js b/src/templates/markdown.js deleted file mode 100644 index a2bd74c4..00000000 --- a/src/templates/markdown.js +++ /dev/null @@ -1,29 +0,0 @@ -import React from 'react' -import { Box } from '@chakra-ui/react' -import { graphql } from 'gatsby' -import sizes from 'constants/ui/sizes' - -const { contentXPadding, headerHeight, contentYPadding } = sizes - -export default function Template({ data }) { - const { markdownRemark } = data - const { html } = markdownRemark - - return ( - - ) -} - -export const pageQuery = graphql` - query($slug: String!) { - markdownRemark(frontmatter: { slug: { eq: $slug } }) { - html - } - } -` diff --git a/src/utils/prevent-focus.js b/src/utils/prevent-focus.js deleted file mode 100644 index 89e17e03..00000000 --- a/src/utils/prevent-focus.js +++ /dev/null @@ -1,7 +0,0 @@ -const preventDefault = (e) => { - if (e) { - e.preventDefault() - } -} - -export default preventDefault diff --git a/utils/readme/update-readme.js b/utils/readme/update-readme.js index 221fc9ea..e6bff6e4 100644 --- a/utils/readme/update-readme.js +++ b/utils/readme/update-readme.js @@ -15,13 +15,6 @@ async function updateReadme() { data: `${index} ${tables}`, filePath: './README.md', }) - - const readmeFrontmatter = `---\nslug: '/'\n---\n\n` - - await writeToFile({ - data: `${readmeFrontmatter}${index} ${tables}`, - filePath: './src/markdown-pages/README.md', - }) } catch (error) { throw new Error(error) }