diff --git a/.env b/.env
new file mode 100644
index 0000000..60a2d2a
--- /dev/null
+++ b/.env
@@ -0,0 +1,2 @@
+REACT_APP_VERSION=$npm_package_version
+REACT_APP_NAME=$npm_package_name
diff --git a/src/App.js b/src/App.js
index a575524..a3a15e8 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,5 +1,5 @@
import React from "react";
-import {Bluelib, Main} from "bluelib/lib/components";
+import {Bluelib} from "bluelib/lib/components";
import {Router} from "@reach/router";
import Home from "./routes/Home";
import Error404 from "./routes/Error404";
diff --git a/src/components/Footer.js b/src/components/Footer.js
new file mode 100644
index 0000000..35a6293
--- /dev/null
+++ b/src/components/Footer.js
@@ -0,0 +1,20 @@
+import style from './Footer.module.css';
+import {Anchor, Title} from "bluelib/lib/components";
+
+export default function Footer() {
+ return (
+
+
+ © {new Date().getFullYear().toString()}
+ -
+ Stefano Pigozzi
+ -
+ CC BY-SA 4.0
+ -
+ {process.env.REACT_APP_NAME} {process.env.REACT_APP_VERSION} ({process.env.NODE_ENV})
+ -
+ Supportami
+
+
+ );
+}
diff --git a/src/components/Footer.module.css b/src/components/Footer.module.css
new file mode 100644
index 0000000..970b72b
--- /dev/null
+++ b/src/components/Footer.module.css
@@ -0,0 +1,5 @@
+.footer {
+ margin-top: 8px;
+ text-align: center;
+ font-size: x-small;
+}
diff --git a/src/components/Page.js b/src/components/Page.js
index f4a8255..8b66bda 100644
--- a/src/components/Page.js
+++ b/src/components/Page.js
@@ -2,6 +2,7 @@ import React from "react";
import {Main} from "bluelib/lib/components";
import MainTitle from "./MainTitle";
import PropTypes from "prop-types";
+import Footer from "./Footer";
export default function Page({children, subtitle}) {
@@ -11,6 +12,7 @@ export default function Page({children, subtitle}) {
{children}
+
)
}
diff --git a/src/components/TitleSplit.js b/src/components/TitleSplit.js
index 88e4c8d..4f5bce0 100644
--- a/src/components/TitleSplit.js
+++ b/src/components/TitleSplit.js
@@ -1,12 +1,11 @@
import React from "react";
import {Split, Title} from "bluelib/lib/components";
import PropTypes from "prop-types";
-import style from "./TitleSplit.module.css";
-export default function TitleSplit({children, title}) {
+export default function TitleSplit({children, className, title}) {
return (
-
+
{title}
@@ -19,5 +18,6 @@ export default function TitleSplit({children, title}) {
TitleSplit.propTypes = {
children: PropTypes.node,
+ className: PropTypes.string,
title: PropTypes.node
}
diff --git a/src/components/TitleSplit.module.css b/src/components/TitleSplit.module.css
deleted file mode 100644
index c4c5368..0000000
--- a/src/components/TitleSplit.module.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.titlesplit {
- margin-top: 32px;
-}