Scaffold Docker-only Node 24 + TypeScript EJS web backend
This commit is contained in:
16
views/404.ejs
Normal file
16
views/404.ejs
Normal file
@@ -0,0 +1,16 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title><%= title %></title>
|
||||
<link rel="stylesheet" href="/public/css/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<h1>404</h1>
|
||||
<p>That page does not exist.</p>
|
||||
<p><a href="/">Back home</a></p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
20
views/index.ejs
Normal file
20
views/index.ejs
Normal file
@@ -0,0 +1,20 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title><%= title %></title>
|
||||
<link rel="stylesheet" href="/public/css/style.css" />
|
||||
<link rel="icon" href="/public/favicon.svg" />
|
||||
</head>
|
||||
<body>
|
||||
<%- include("partials/header", { title }) %>
|
||||
<main>
|
||||
<h1>Welcome to <%= title %></h1>
|
||||
<p>A plain, server-rendered page. Edit <code>views/index.ejs</code> to change it.</p>
|
||||
</main>
|
||||
<footer>
|
||||
<p>Served with Node.js + EJS.</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
6
views/partials/header.ejs
Normal file
6
views/partials/header.ejs
Normal file
@@ -0,0 +1,6 @@
|
||||
<header class="site-header">
|
||||
<a class="brand" href="/"><%= title %></a>
|
||||
<nav>
|
||||
<a href="/">Home</a>
|
||||
</nav>
|
||||
</header>
|
||||
Reference in New Issue
Block a user