Fixed background

This commit is contained in:
Liam 2022-10-10 19:53:39 +01:00
parent cd406a3e74
commit 7a73c7db1d
3 changed files with 5 additions and 6 deletions

@ -4,6 +4,8 @@ import Head from 'next/head'
import Config from '../config.json'; import Config from '../config.json';
import '../styles/globals.css';
function MyApp({ Component, pageProps }) { function MyApp({ Component, pageProps }) {
return ( return (
// 2. Use at the root of your app // 2. Use at the root of your app

@ -310,12 +310,6 @@ export default class Overlay extends Component {
render() { render() {
const { loading, isValidSteamId, data, websiteType } = this.state; const { loading, isValidSteamId, data, websiteType } = this.state;
// When in the main menu, show this colour so it's actually readable
if (!isValidSteamId && !loading) {
const body = document.body;
body.style.backgroundColor = "#181a1b";
}
if (this.state.textColor !== undefined) { if (this.state.textColor !== undefined) {
const element = document.querySelector("." + styles.main); const element = document.querySelector("." + styles.main);
element.style.color = this.state.textColor element.style.color = this.state.textColor

@ -0,0 +1,3 @@
*, html, body {
background-color: transparent;
}