This commit is contained in:
AlecM33
2023-08-18 16:09:57 -04:00
parent e6a9d61220
commit aa41267514
3 changed files with 10 additions and 2 deletions

View File

@@ -4,6 +4,13 @@ import { Confirmation } from '../modules/front_end_components/Confirmation.js';
const home = () => {
injectNavbar();
const logo = new Image();
logo.alt = 'Werewolf App Logo'
logo.onload = () => {
document.querySelector('#new-logo-placeholder')?.remove();
document.getElementById('home-page-top-section').prepend(logo);
}
logo.src = '../images/new-logo.png';
const urlParams = new URLSearchParams(window.location.search);
const message = urlParams.get('message');
if (message && message.length > 0) {

View File

@@ -105,11 +105,12 @@ h3 {
font-family: 'signika-negative', sans-serif;
}
img[src='../images/new-logo.png'] {
img[src='../images/new-logo.png'], #new-logo-placeholder {
max-width: 250px;
width: 25vw;
min-width: 180px;
margin: 1em 0 1em 0;
aspect-ratio: 500 / 641;
}
form > div {

View File

@@ -25,7 +25,7 @@
<div id="mobile-menu-background-overlay"></div>
<div id="navbar"></div>
<div id="home-page-top-section">
<img alt="Werewolf App Logo" src="../images/new-logo.png"/>
<div id="new-logo-placeholder"></div>
<h3>A tool to run the social deception game Werewolf (aka Mafia) smoothly in a real or virtual social setting.</h3>
<div id="create-join">
<a href="/create">