23 lines
No EOL
801 B
JavaScript
23 lines
No EOL
801 B
JavaScript
import Route from "../route.js";
|
|
import auth from "../form/auth.js";
|
|
import format from "../common/format.js";
|
|
|
|
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; |