diff --git a/app/package-lock.json b/app/package-lock.json index f91ba15..00693c4 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -12122,6 +12122,7 @@ "resolved": "https://registry.npmjs.org/pixel-borders/-/pixel-borders-1.1.4.tgz", "integrity": "sha512-jBX9MMRsCeYNl1sHnXnAgtBD5hLAMa59/MDvVBZUoeHtsF6t97goigzIPQHvssh8xsQ5w+vF7hqabutbpb0zxA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } diff --git a/app/src/components/Army.tsx b/app/src/components/Army.tsx index fce26e6..1645a3c 100644 --- a/app/src/components/Army.tsx +++ b/app/src/components/Army.tsx @@ -103,9 +103,8 @@ const Unit = ({ return (
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;