From de846a4f58f43cb489236ebd6a06a7795fa3abb1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Sirois Date: Sat, 27 Jul 2019 16:27:22 -0400 Subject: [PATCH] style: clean up unused code --- src/components/DocsLayout/index.tsx | 3 -- src/components/DocsLayout/layout.scss | 41 ------------------------- src/components/Layout/index.tsx | 1 - src/components/Navbar/index.tsx | 43 --------------------------- src/components/Navbar/styles.tsx | 6 ---- src/pages/docs/something.md | 1 - 6 files changed, 95 deletions(-) delete mode 100644 src/components/DocsLayout/layout.scss delete mode 100644 src/components/Navbar/index.tsx delete mode 100644 src/components/Navbar/styles.tsx delete mode 100644 src/pages/docs/something.md diff --git a/src/components/DocsLayout/index.tsx b/src/components/DocsLayout/index.tsx index 34ee9f7..1eba5b7 100644 --- a/src/components/DocsLayout/index.tsx +++ b/src/components/DocsLayout/index.tsx @@ -8,11 +8,8 @@ import React, { PropsWithChildren } from "react" import { useStaticQuery, graphql } from "gatsby" -import Container from "../Container" import DocsSidebar from "../DocsSidebar" import { Main, MainContent } from "./styles" -import Scrollbar from "react-perfect-scrollbar" -import "react-perfect-scrollbar/dist/css/styles.css" const DocsLayout = ({ children }: PropsWithChildren<{}>) => { const data = useStaticQuery(graphql` diff --git a/src/components/DocsLayout/layout.scss b/src/components/DocsLayout/layout.scss deleted file mode 100644 index e033dcd..0000000 --- a/src/components/DocsLayout/layout.scss +++ /dev/null @@ -1,41 +0,0 @@ -// TODO: refactor this into styled components - -html { - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, - sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; -} - -body { - margin: 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -/** - * If you already use line highlighting - */ - -/* Adjust the position of the line numbers */ -.gatsby-highlight pre[class*="language-"].line-numbers { - padding-left: 2.8em; -} - -/** - * If you only want to use line numbering - */ - -.gatsby-highlight { - background-color: #fdf6e3; - border-radius: 0.3em; - margin: 0.5em 0; - padding: 1em; - overflow: auto; -} - -.gatsby-highlight pre[class*="language-"].line-numbers { - padding: 0; - padding-left: 2.8em; - overflow: initial; -} diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index 68d9645..a234d0b 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -9,7 +9,6 @@ import React, { PropsWithChildren } from "react" import { useStaticQuery, graphql } from "gatsby" import Container from "../Container" -import Navbar from "../Navbar" import Sidebar from "../Sidebar" import "./layout.scss" import { Main, MainContent } from "./styles" diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx deleted file mode 100644 index f536205..0000000 --- a/src/components/Navbar/index.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import { Link } from "gatsby"; -import * as React from "react"; -import icon from "./icon.png"; -import { HeaderWrapper } from "./styles"; - -// @todo maybe find alternative type for data -const Navbar = ({ siteTitle }: any) => ( - -
-
- {/* */} -

- - {siteTitle} - -

-
-
- -
-) - -Navbar.propTypes = { - siteTitle: String -} - -Navbar.defaultProps = { - siteTitle: ``, -} - -export default Navbar; diff --git a/src/components/Navbar/styles.tsx b/src/components/Navbar/styles.tsx deleted file mode 100644 index f8812d3..0000000 --- a/src/components/Navbar/styles.tsx +++ /dev/null @@ -1,6 +0,0 @@ -import styled from "styled-components"; - -export const HeaderWrapper = styled.header` - background: #ba1a2e; - marginBottom: 1.45rem; -`; \ No newline at end of file diff --git a/src/pages/docs/something.md b/src/pages/docs/something.md deleted file mode 100644 index 5570c7f..0000000 --- a/src/pages/docs/something.md +++ /dev/null @@ -1 +0,0 @@ -# Hello \ No newline at end of file