From 2b4d6e2bcf051248479487c729253a64029b0ee1 Mon Sep 17 00:00:00 2001 From: pedrocx486 Date: Sat, 20 Jan 2024 15:37:41 -0300 Subject: [PATCH] More DaisyUI and other improvements (#46) * Add idea for build id/version * Add a proper footer * Move more things to daisyUI and make terminal look like an actual terminal * Remove conflicting classes * Temporary fix where mobile layout would get garbled * Improve this screen a bit * Change extension and remove copypasta mistake --- next.config.js | 3 ++ src/app/page.tsx | 13 +----- src/components/Controller/Controller.tsx | 43 ++++++++++---------- src/components/Footer/Footer.tsx | 21 ++++++++++ src/components/HotkeyButton/HotkeyButton.tsx | 2 +- src/components/NavBar/NavBar.tsx | 2 +- src/components/SerialLoader/SerialLoader.tsx | 16 ++++---- 7 files changed, 57 insertions(+), 43 deletions(-) create mode 100644 src/components/Footer/Footer.tsx diff --git a/next.config.js b/next.config.js index ffffb91..686299c 100644 --- a/next.config.js +++ b/next.config.js @@ -8,6 +8,9 @@ const nextConfig = { compiler: { removeConsole: process.env.NODE_ENV !== "development", // Remove console.log in production }, + env: { + BUILD_ID: new Date().toISOString(), // Later it would be worth setting up the git's commit hash as the build id + }, }; // Configuration object tells the next-pwa plugin diff --git a/src/app/page.tsx b/src/app/page.tsx index fb369a7..c065838 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,9 +1,8 @@ "use client"; -import { faGithubAlt } from "@fortawesome/free-brands-svg-icons"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import dynamic from "next/dynamic"; import Controller from "@/components/Controller/Controller"; +import { Footer } from "@/components/Footer/Footer"; import { Loader } from "@/components/Loader/Loader"; import { NavBar } from "@/components/NavBar/NavBar"; @@ -26,15 +25,7 @@ const Home = () => { -
-

Mayhem Hub - {new Date().getFullYear()}

- - - -
+