diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/BlockLink.tsx | 17 | ||||
| -rw-r--r-- | src/components/Layout.tsx | 35 | ||||
| -rw-r--r-- | src/components/SEO.tsx | 17 | ||||
| -rw-r--r-- | src/components/index.ts | 4 |
4 files changed, 0 insertions, 73 deletions
diff --git a/src/components/BlockLink.tsx b/src/components/BlockLink.tsx deleted file mode 100644 index 6b841f0..0000000 --- a/src/components/BlockLink.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from "react"; -import { BlockAnchor, BlockBody } from "../styles"; - -type BlockLinkProps = { - children?: React.ReactNode; - as?: undefined; -} & React.LinkHTMLAttributes<HTMLAnchorElement>; - -const BlockLink = ({ children, ...attributes }: BlockLinkProps) => { - return ( - <BlockBody theme={{ link: true }}> - <BlockAnchor {...attributes}>{children}</BlockAnchor> - </BlockBody> - ); -}; - -export default BlockLink; diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx deleted file mode 100644 index fec336f..0000000 --- a/src/components/Layout.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import React from "react"; -import { IconContext } from "react-icons/lib"; -import { Content, Footer } from "../styles"; -import { useSiteVersion } from "../hooks"; -import { getTimestamp } from "../util/timestamp"; - -import "../styles/main.css"; - -interface LayoutProps { - children: React.ReactNode; -} - -const Layout = ({ children }: LayoutProps) => { - const version = useSiteVersion(); - return ( - <React.StrictMode> - <main> - <IconContext.Provider - value={{ size: "20", style: { marginBottom: "-4px" } }} - > - <Content>{children}</Content> - - <Footer> - <span> - ©2023 kjhoerr@https://submelon.dev/: - {getTimestamp(Number(version))} - </span> - </Footer> - </IconContext.Provider> - </main> - </React.StrictMode> - ); -}; - -export default Layout; diff --git a/src/components/SEO.tsx b/src/components/SEO.tsx deleted file mode 100644 index b13dc19..0000000 --- a/src/components/SEO.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from "react"; -import { useSiteMetadata } from "../hooks"; - -export function Head(): React.ReactElement { - const { author, description, title } = useSiteMetadata(); - - return ( - <> - <meta name="twitter:description" content={description ?? ""} /> - <meta name="twitter:title" content={title ?? ""} /> - <meta name="twitter:creator" content={author ?? ""} /> - <meta name="twitter:card" content="summary" /> - <meta name="description" content={description ?? ""} /> - <title>{title}</title> - </> - ); -} diff --git a/src/components/index.ts b/src/components/index.ts deleted file mode 100644 index 6e7bcb7..0000000 --- a/src/components/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import BlockLink from "./BlockLink"; -import Layout from "./Layout"; - -export { BlockLink, Layout }; |
