From 651f019141b488a82fd42028bce5b0003abbfaf5 Mon Sep 17 00:00:00 2001
From: Kevin Hoerr <kjhoerr@protonmail.com>
Date: Mon, 21 Nov 2022 18:19:16 -0500
Subject: Layout changes (#15)

* Layout refactor and standardization

* Use split to condense short array

* Fix verbage
---
 src/components/Layout.tsx | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 src/components/Layout.tsx

(limited to 'src/components/Layout.tsx')

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;
-- 
cgit 

