WIP
This commit is contained in:
parent
055bd5dca5
commit
0e55dafd8a
@ -46,19 +46,7 @@
|
||||
<div id="windows">
|
||||
<div id="loading" class="window active">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1 class="title">The Lounge is loading…</h1>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<p id="loading-page-message">Loading the app… <a href="http://enable-javascript.com/" target="_blank" rel="noopener">Make sure to have JavaScript enabled.</a></p>
|
||||
<div id="loading-slow">
|
||||
<p>This is taking longer than it should, there might be connectivity issues.</p>
|
||||
<button id="loading-slow-reload" class="btn">Reload page</button>
|
||||
</div>
|
||||
<script async src="js/loading-slow-alert.js"></script>
|
||||
</div>
|
||||
</div>
|
||||
{{> ./views/windows/loading}}
|
||||
</div>
|
||||
</div>
|
||||
<div id="chat-container" class="window">
|
||||
@ -81,31 +69,7 @@
|
||||
</div>
|
||||
<div id="sign-in" class="window">
|
||||
<form class="container" method="post" action="">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1 class="title">Sign in to The Lounge</h1>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<label>
|
||||
Username
|
||||
<input class="input" name="user">
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<label>
|
||||
Password
|
||||
<input class="input" type="password" name="password">
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-xs-12 error" style="display: none;">
|
||||
Authentication failed.
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<button type="submit" class="btn">
|
||||
Sign in
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{{> views/windows/sign_in}}
|
||||
</form>
|
||||
</div>
|
||||
<div id="connect" class="window">
|
||||
|
@ -20,6 +20,11 @@ module.exports = {
|
||||
whois: require("./actions/whois.tpl"),
|
||||
},
|
||||
|
||||
windows: {
|
||||
loading: require("./windows/loading.tpl"),
|
||||
sign_in: require("./windows/sign_in.tpl"),
|
||||
},
|
||||
|
||||
chan: require("./chan.tpl"),
|
||||
chat: require("./chat.tpl"),
|
||||
contextmenu_divider: require("./contextmenu_divider.tpl"),
|
||||
|
13
client/views/windows/loading.html
Normal file
13
client/views/windows/loading.html
Normal file
@ -0,0 +1,13 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1 class="title">The Lounge is loading…</h1>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<p id="loading-page-message">Loading the app… <a href="http://enable-javascript.com/" target="_blank" rel="noopener">Make sure to have JavaScript enabled.</a></p>
|
||||
<div id="loading-slow">
|
||||
<p>This is taking longer than it should, there might be connectivity issues.</p>
|
||||
<button id="loading-slow-reload" class="btn">Reload page</button>
|
||||
</div>
|
||||
<script async src="js/loading-slow-alert.js"></script>
|
||||
</div>
|
||||
</div>
|
27
client/views/windows/sign_in.html
Normal file
27
client/views/windows/sign_in.html
Normal file
@ -0,0 +1,27 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1 class="title">Sign in to The Lounge</h1>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<label>
|
||||
Username
|
||||
<input class="input" name="user">
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<label>
|
||||
Password
|
||||
<input class="input" type="password" name="password">
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<label class="remember">
|
||||
<input type="checkbox" name="remember" value="on" id="sign-in-remember" checked>
|
||||
Stay signed in
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-xs-12 error" style="display: none;">Authentication failed.</div>
|
||||
<div class="col-xs-12">
|
||||
<button type="submit" class="btn">Sign in</button>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user