Improve home page layout and CharacterLinks

This commit is contained in:
Chord 2020-05-14 19:51:22 +02:00
parent 3a45eb300b
commit 9e54b5f3b8
6 changed files with 46 additions and 22 deletions

View file

@ -96,6 +96,11 @@
<h2>Online Players ({players.length})</h2>
<p>Next update in {next_update_label}</p>
</div>
<div class="col-md-4 col-12 mt-md-0 mt-3">
{#if stats.empires}
<EmpireStats bind:this={empire_stats} bind:stats={stats.empires} />
{/if}
</div>
<div class="col-md-8 col-12">
<div class="row">
{#each players as char, i}
@ -104,10 +109,5 @@
</div>
</div>
<div class="col-md-4 col-12 mt-md-0 mt-3">
{#if stats.empires}
<EmpireStats bind:this={empire_stats} bind:stats={stats.empires} />
{/if}
</div>
</div>
{/if}

View file

@ -85,7 +85,7 @@
<label for="inputPassword">Password</label>
<input class="form-control" type="password" id="inputPassword" placeholder="Password" name="password" required>
</div>
<button type="submit">Login</button>
<button type="submit" class="btn btn-primary">Login</button>
</form>
<p><a href="/recovery">Forgot username/password?</a></p>
</main>

View file

@ -106,6 +106,6 @@
<div class="invalid-feedback">Email addresses must match.</div>
</div>
</div>
<button type="submit">Join the fight!</button>
<button type="submit" class="btn btn-primary">Join the fight!</button>
</form>
</main>