better welcome

This commit is contained in:
ntr 2019-09-09 17:47:57 +10:00
parent 8c0b02e568
commit 7dbf8e2c89
3 changed files with 48 additions and 58 deletions

View File

@ -77,6 +77,12 @@
} }
} }
} }
.login {
display: flex;
flex-flow: column;
margin-bottom: 2em;
}
} }
section { section {
@ -126,5 +132,4 @@ section {
flex: 1; flex: 1;
display: inline; display: inline;
} }
} }

View File

@ -195,28 +195,6 @@ button[disabled] {
border-color: #222; border-color: #222;
} }
/*
LOGIN
*/
.welcome {
.login {
width: 50%;
display: flex;
flex-flow: column;
margin-bottom: 2em;
}
.options {
display: flex;
width: 50%;
}
h2 {
margin-bottom: 0.5em;
}
}
#mnml input, #mnml select { #mnml input, #mnml select {
border-color: #222; border-color: #222;
background-color: #222; background-color: #222;

View File

@ -20,14 +20,8 @@ function Welcome() {
}; };
return ( return (
<main class="welcome"> <main class="menu">
<h1>mnml.gg</h1> <header>
<div class="login">
<div>mnml is an abstract turn based strategy game</div>
<div>free to play</div>
<div>no email required</div>
<div>glhf</div>
</div>
<div class="options"> <div class="options">
<button <button
class={`login-btn ${page === 'login' ? 'highlight' : ''}`} class={`login-btn ${page === 'login' ? 'highlight' : ''}`}
@ -54,8 +48,21 @@ function Welcome() {
Help Help
</button> </button>
</div> </div>
</header>
<div class="top">
<section>
<div>
<h1>mnml.gg</h1>
<p>mnml is a turn-based 1v1 strategy game in an abstract setting.</p>
<p>form your team of 3 constructs from a deep pool of skills, effects and specialisations in order to outplay your opponents.</p>
<p>featuring complex interactions arising from simple rules, simultaneous turns to increase the pace, and a unique speed mechanic mnml is a tactical game in a genre of its own.</p>
<p>free to play</p>
<p>no email required</p>
<p>glhf</p>
</div>
{pageEl()} {pageEl()}
<hr /> </section>
</div>
<Demo /> <Demo />
</main> </main>
); );