-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ejs
35 lines (35 loc) · 1.7 KB
/
index.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<div class="main w-full min-h-screen bg-zinc-900">
<div class="form p-10 text-white">
<form action="/create" method="post">
<input class="block w-full rounded-md outline-none px-5 py-2 bg-zinc-800" type="text" placeholder="Title goes here" name="title">
<textarea class="block mt-3 w-full rounded-md outline-none px-5 py-2 resize-none bg-zinc-800" placeholder="Write your task details here" name="details"></textarea>
<input class="mt-2 bg-blue-600 px-5 py-2 rounded-md" type="submit" value="Create task">
</form>
</div>
<div class="Tasks flex gap-3 flex-wrap p-10">
<% if (files.length > 0) { %>
<% files.forEach(function(val) { %>
<div class="task w-72 px-3 py-4 rounded-md bg-zinc-800">
<h1 class="text-white text-3xl tracking-tighter"><%= val %></h1>
<div class="bg-white-500 flex w-full justify-between items-center mt-3">
<a class="text-blue-400 inline-block " href="/file/<%= val %>">Read more.</a>
<a class="text-zinc-600" href="/edit/<%= val %>">Edit filename</a>
</div>
</div>
<% }) %>
<% } else { %>
<h3 class="text-zinc-600">No tasks yet.</h3>
<% } %>
</div>
</div>
</body>
</html>