From 72d83580b0d13c38101aa6285b9e2c4b8a53bb04 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 18 Jun 2023 00:17:06 +0200 Subject: [PATCH] Add CSS --- index.js | 2 ++ static/style.css | 4 ++++ views/layout.jsx | 1 + 3 files changed, 7 insertions(+) create mode 100644 static/style.css diff --git a/index.js b/index.js index cd7ad97..b90538d 100644 --- a/index.js +++ b/index.js @@ -64,6 +64,8 @@ app.set(path.resolve(__dirname, "./views")); app.set("view engine", "jsx"); app.engine("jsx", expressReactViews.createEngine()); +app.use(express.static(path.resolve(__dirname, "./static"))); + app.use(expressSession({ secret: configuration.sessionSecret, resave: false, diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..d96e525 --- /dev/null +++ b/static/style.css @@ -0,0 +1,4 @@ +body { + /* FIXME: Replace with actual style */ + background-color: bisque; +} diff --git a/views/layout.jsx b/views/layout.jsx index 8057ea5..0f67732 100644 --- a/views/layout.jsx +++ b/views/layout.jsx @@ -10,6 +10,7 @@ module.exports = function Layout({ children }) { ANTI-META ADMIN PACT + {children}