aboutsummaryrefslogtreecommitdiffstats
path: root/views/frontpage.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/frontpage.ejs')
-rw-r--r--views/frontpage.ejs40
1 files changed, 40 insertions, 0 deletions
diff --git a/views/frontpage.ejs b/views/frontpage.ejs
new file mode 100644
index 0000000..4e76a99
--- /dev/null
+++ b/views/frontpage.ejs
@@ -0,0 +1,40 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Welcome to faaslift!</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <style>
+ body {
+ margin: 40px auto;
+ max-width: 650px;
+ line-height: 1.6;
+ font-size: 18px;
+ color: #444;
+ padding: 0 20px;
+ font-family: Helvetica, sans-serif;
+ }
+ h1,h2,h3 {
+ line-height: 1.2;
+ }
+ </style>
+ </head>
+ <body>
+ <h1>Welcome to <strong>faaslift!</strong></h1>
+ <p>
+ Get started by creating a new endpoint with the command line tool.
+ Check out the instructions from the <a href="https://github.com/jantuomi/faaslift/blob/master/README.md">README</a>.
+ </p>
+ <h3>Currently active endpoints</h3>
+ <% if (!locals.endpoints || locals.endpoints.length === 0) { %>
+ <i>No endpoints active</i>
+ <% } %>
+ <ul>
+ <% (locals.endpoints || []).forEach(function (endpoint) { %>
+ <li>
+ <a href="/<%= endpoint %>"><%= endpoint %></a>
+ </li>
+ <% }); %>
+ </ul>
+ <small>Styles partially borrowed from <a href="http://bettermotherfuckingwebsite.com/">bettermotherfuckingwebsite.com</a>.</small>
+ </body>
+</html> \ No newline at end of file