addUnit(unitType)}
- className={`${styles.armyUnit} ${
- canPurchase ? "" : styles.isUnavailable
- }`}
+ className={`${styles.armyUnit} ${canPurchase ? "" : styles.isUnavailable
+ }`}
>
{
setIsShown(false);
}, 4000);
- }, 15000);
+ }, 6000);
// Clean up the interval on component unmount
return () => {
@@ -42,29 +41,11 @@ function PixelatedQuote() {
};
}, []);
- // const currentQuote = useMemo(
- // () => tavernerQuotes[Math.floor(Math.random() * tavernerQuotes.length)],
- // []
- // );
-
return (
{currentQuote}
diff --git a/app/src/pages/_app.tsx b/app/src/pages/_app.tsx
index bbba428..311d09a 100644
--- a/app/src/pages/_app.tsx
+++ b/app/src/pages/_app.tsx
@@ -6,12 +6,15 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { WagmiProvider } from "wagmi";
import { RainbowKitProvider, midnightTheme } from "@rainbow-me/rainbowkit";
import { config } from "../wagmi";
-import { Texturina } from "next/font/google";
+import { Press_Start_2P, Texturina } from "next/font/google";
import PlayerProvider from "../providers/PlayerProvider";
const client = new QueryClient();
const font = Texturina({ weight: ["400"], subsets: ["latin"] });
+// Tavern keeper quote
+const fontPixel = Press_Start_2P({ weight: ["400"], subsets: ["latin"] });
+
function MyApp({ Component, pageProps }: AppProps) {
return (
@@ -34,6 +37,9 @@ function MyApp({ Component, pageProps }: AppProps) {
.title {
font-family: ${font.style.fontFamily};
}
+ .pixelFont {
+ font-family: ${fontPixel.style.fontFamily};
+ }
`}
diff --git a/app/src/styles/Army.module.css b/app/src/styles/Army.module.css
index 0bfddc5..7552b78 100644
--- a/app/src/styles/Army.module.css
+++ b/app/src/styles/Army.module.css
@@ -199,6 +199,20 @@
bottom: 160px;
width: 90px;
height: 90px;
+
+ .pixelQuote {
+ min-width: 150px;
+ color: black;
+ font-size: 0.7rem;
+ position: absolute;
+ bottom: 5.5rem;
+ left: -20px;
+ right: 0;
+ padding: 0.7rem;
+ line-height: 0.8rem;
+ transition: opacity 1s ease-in-out;
+ box-shadow: 0px 5px 10px 5px rgba(0, 0, 0, 0.4);
+ }
}
.static.moloch_denier {
background-image: url("/roles/scribe2.png");
diff --git a/app/src/styles/globals.css b/app/src/styles/globals.css
index dd62d0f..8da1309 100644
--- a/app/src/styles/globals.css
+++ b/app/src/styles/globals.css
@@ -1,5 +1,3 @@
-@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
-
:root {
--bg-color: #1a1a1a;
--text-color: #ffffff;