change to ejs
This commit is contained in:
parent
9287290479
commit
e92c87c5da
11 changed files with 62 additions and 74 deletions
2
views/footer.ejs
Normal file
2
views/footer.ejs
Normal file
|
@ -0,0 +1,2 @@
|
|||
</body>
|
||||
</html>
|
11
views/form.ejs
Normal file
11
views/form.ejs
Normal file
|
@ -0,0 +1,11 @@
|
|||
<%- include('header.ejs') -%>
|
||||
<form enctype='multipart/form-data' method='POST' action='<%= route %>'>
|
||||
<div class='form-message'></div>
|
||||
<% for (let elem of data) { %>
|
||||
<span class='form-entry'> <span class='form-key'>
|
||||
<%= elem.label %>
|
||||
</span> <input type='<%= elem.type %>' name='<%= elem.name %>'></span>
|
||||
<% } %>
|
||||
<input type='Submit' name='Submit'>
|
||||
</form>
|
||||
<%- include('footer.ejs') -%>
|
9
views/header.ejs
Normal file
9
views/header.ejs
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src='/static/main.js'></script>
|
||||
<link rel='stylesheet' href='/static/main.css'>
|
||||
</head>
|
||||
|
||||
<body>
|
16
views/main.ejs
Normal file
16
views/main.ejs
Normal file
|
@ -0,0 +1,16 @@
|
|||
<%- include('header.ejs') -%>
|
||||
<div class='area'>
|
||||
<h1>About</h1>
|
||||
<p>
|
||||
<b>BiglyChat</b> is a project sharing communtiy built on <a href='https://scratch.mit.edu/'>Scratch</a> and
|
||||
<a href='https://turbowarp.org'>TurboWarp</a>
|
||||
. The source code is <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>
|
||||
<%if (username=='!nobody' ) { %>
|
||||
<div class="button"><a href="/client/register">Join</a></div>
|
||||
<% } %>
|
||||
</div>
|
||||
<%- include('footer.ejs') -%>
|
Loading…
Add table
Add a link
Reference in a new issue