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()} +  -  + <Anchor href="https://steffo.eu/">Stefano Pigozzi</Anchor> +  -  + <Anchor href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</Anchor> +  -  + <Anchor href="https://github.com/Steffo99/uni.steffo.eu">{process.env.REACT_APP_NAME} {process.env.REACT_APP_VERSION} ({process.env.NODE_ENV})</Anchor> +  -  + <Anchor href="https://ko-fi.com/steffo">Supportami</Anchor> + +
+ ); +} 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}
+