css
This commit is contained in:
parent
d0cc234857
commit
d8f720856c
11 changed files with 321 additions and 24 deletions
|
@ -1,9 +1,23 @@
|
|||
import Route from "../route.js";
|
||||
import Auth from "../form/auth.js";
|
||||
import Format from "../common/format.js";
|
||||
import auth from "../form/auth.js";
|
||||
import format from "../common/format.js";
|
||||
|
||||
let main = new Route([Auth], async function (req, res, input) {
|
||||
return `Hello world! Your name is: ${Format.escape(input.username)}`
|
||||
let main = new Route([auth], async function (req, res, input) {
|
||||
let { username } = input;
|
||||
let cta = (username == '!nobody') ?
|
||||
'<div class="button"><a href="/client/register">Join</a></div>' :
|
||||
'<div class="button"><a href="/client/chat?channel=main">Chat</a></div>';
|
||||
|
||||
return `<div class='area'>
|
||||
<h1>About</h1>
|
||||
<p>
|
||||
<b>BiglyChat</b> is a chat service built on <a href='https://codeberg.org/onezDerv/bigly-chat'>free software</a>.
|
||||
</p>
|
||||
<p>
|
||||
Anyone can selfhost an instance to take control of their community.
|
||||
</p>
|
||||
${cta}
|
||||
</div>`
|
||||
});
|
||||
|
||||
export default main;
|
Loading…
Add table
Add a link
Reference in a new issue