aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-04-05 14:39:45 -0500
committerMark Powers <markppowers0@gmail.com>2020-04-05 14:39:45 -0500
commit31969e94c89cf9b1233a3439a4000667e51876bf (patch)
tree9544a3450e100ca0cd7e41099ee4b08ee159185a /src
parentddddb356181baefbb03cbf710c9b6210b4d8de52 (diff)
Add zines page
Diffstat (limited to 'src')
-rw-r--r--src/public/pf6.pdfbin0 -> 55864797 bytes
-rw-r--r--src/public/pf6.pngbin0 -> 548793 bytes
-rw-r--r--src/public/zines.html32
-rw-r--r--src/server.js3
4 files changed, 35 insertions, 0 deletions
diff --git a/src/public/pf6.pdf b/src/public/pf6.pdf
new file mode 100644
index 0000000..9c1504c
--- /dev/null
+++ b/src/public/pf6.pdf
Binary files differ
diff --git a/src/public/pf6.png b/src/public/pf6.png
new file mode 100644
index 0000000..e957df4
--- /dev/null
+++ b/src/public/pf6.png
Binary files differ
diff --git a/src/public/zines.html b/src/public/zines.html
new file mode 100644
index 0000000..12b3b14
--- /dev/null
+++ b/src/public/zines.html
@@ -0,0 +1,32 @@
+<!doctype html>
+<html lang="en">
+
+<head>
+ <title>Mark's Kitchen - Zines</title>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+ <link rel="stylesheet" type="text/css" href="/css/styles.css">
+ <style>
+ .thumbnail img{
+ height: 500px;
+ display: block;
+ }
+ </style>
+</head>
+
+<body>
+ <div>
+ <h1>
+ <a class="navigation" href="/" title="marks.kitchen">&lt;</a>
+ Zines
+ </h1>
+ <div class="thumbnail">
+ <a href="/static/pf6.pdf" title="Palace Flophouse 6">
+ <img src="/static/pf6.png">
+ <span>Palace Flophouse 6 (download pdf)</span>
+ </a>
+ </div>
+ </div>
+</body>
+
+</html> \ No newline at end of file
diff --git a/src/server.js b/src/server.js
index b92d7d4..0d01641 100644
--- a/src/server.js
+++ b/src/server.js
@@ -102,6 +102,9 @@ function setUpRoutes(models, jwtFunctions, database) {
server.get('/chess', (req, res) => res.sendFile(__dirname + "/html/chess.html"));
server.get('/admin/chess', async (req, res, next) => res.sendFile(__dirname + "/html/chess.html"));
server.get('/projects', (req, res) => res.sendFile(__dirname + "/html/projects.html"));
+ server.get('/zines', (req, res) => res.sendFile(__dirname + "/public/zines.html"));
+ server.use('/static', express.static(__dirname + '/public'))
+
server.get('/wordsquares/best', async (req, res, next) => {
var best = await database.query("select words, name from wordsquares where best = 1", { type: database.QueryTypes.SELECT })
res.status(200).send({ best: best });