From 3140267ea0a3b37032003992695afd7dc1f4f46c Mon Sep 17 00:00:00 2001 From: Kevin Hoerr Date: Sat, 23 Dec 2023 23:59:02 -0500 Subject: De gatsby (#326) * de-gatsby * Add inversed image for dark background * eleventy * Reinstate workflows to prior state * Strip inline styling for index image * Passthrough src/public/ files * Use global data to encode build date encoded string * Clean public directory before build * Reinstall eslint, prettier * Reinstate .gitattributes for public dir * build.yml: escape config file for version numbering * Revert public changes for PR validation * Rename src/public/ to src/static/ * Include github-actions in dependabot updates * re-establish typescript * Update prevent-file-change-action to v1.5.1 * Re-add typescript to linting * Re-add typescript for eslint * Fix whitespace diff for tsconfig.json * Fix whitespace in .eslintrc.json --- src/components/BlockLink.tsx | 17 ----------------- src/components/Layout.tsx | 35 ----------------------------------- src/components/SEO.tsx | 17 ----------------- src/components/index.ts | 4 ---- 4 files changed, 73 deletions(-) delete mode 100644 src/components/BlockLink.tsx delete mode 100644 src/components/Layout.tsx delete mode 100644 src/components/SEO.tsx delete mode 100644 src/components/index.ts (limited to 'src/components') 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; - -const BlockLink = ({ children, ...attributes }: BlockLinkProps) => { - return ( - - {children} - - ); -}; - -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 ( - -
- - {children} - -
- - ©2023 kjhoerr@https://submelon.dev/: - {getTimestamp(Number(version))} - -
-
-
-
- ); -}; - -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 ( - <> - - - - - - {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 }; -- cgit