aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/Layout.tsx
diff options
context:
space:
mode:
authorKevin Hoerr <kjhoerr@protonmail.com>2022-11-21 18:19:16 -0500
committerGitHub <noreply@github.com>2022-11-21 18:19:16 -0500
commit651f019141b488a82fd42028bce5b0003abbfaf5 (patch)
tree5be06913d021752cb0a1d3f809f66b27359619c5 /src/components/Layout.tsx
parent6ec00afac5afc892dca5a184b66467d9408f14a5 (diff)
downloadsubmelon.dev-651f019141b488a82fd42028bce5b0003abbfaf5.tar.gz
submelon.dev-651f019141b488a82fd42028bce5b0003abbfaf5.tar.bz2
submelon.dev-651f019141b488a82fd42028bce5b0003abbfaf5.zip
Layout changes (#15)
* Layout refactor and standardization * Use split to condense short array * Fix verbage
Diffstat (limited to 'src/components/Layout.tsx')
-rw-r--r--src/components/Layout.tsx30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx
new file mode 100644
index 0000000..6cc70ed
--- /dev/null
+++ b/src/components/Layout.tsx
@@ -0,0 +1,30 @@
+import React from "react";
+import { IconContext } from "react-icons/lib";
+import { Content, Footer } from "../styles";
+import package_json from "../../package.json";
+import { getTimestamp } from "../util/timestamp";
+
+const VERSION = package_json.version;
+
+const Layout = ({ children }) => {
+ return (
+ <React.StrictMode>
+ <main>
+ <IconContext.Provider
+ value={{ size: "20", style: { marginBottom: "-4px" } }}
+ >
+ <Content>{children}</Content>
+
+ <Footer>
+ <span>
+ &copy;2022 kjhoerr@https://submelon.dev/:
+ {getTimestamp(Number(VERSION))}
+ </span>
+ </Footer>
+ </IconContext.Provider>
+ </main>
+ </React.StrictMode>
+ );
+};
+
+export default Layout;