message-me/views/index.ejs

22 lines
758 B
Plaintext

<!DOCTYPE html>
<html>
<head>
<title><%= title %></title>
<link rel='stylesheet' href='/stylesheets/style.css' />
<meta name=viewport content="width=device-width,minimum-scale=1">
</head>
<body>
<div id="main" style="margin-left: auto; margin-right: auto; display: flex; flex-direction: column">
<h1><%= title %></h1>
<form method="POST" style="display: flex; flex-direction: column">
<label for="message" style="margin-bottom: 1em;">What did you want to say?</label>
<input id="message" name="message" type="text" style="margin-bottom: 1em;">
<button type="submit">Submit</button>
</form>
<% if (thankYou) { %>
<p>Message received!</p>
<% } %>
</div>
</body>
</html>