From d2b606a03af909c02e78ffa0169111b31adaa8b0 Mon Sep 17 00:00:00 2001 From: Kostas Drakontidis Date: Sat, 17 May 2025 13:43:27 +0300 Subject: [PATCH] Added about page --- app/routes/private_routes.js | 8 ++++++++ app/views/about.ejs | 32 ++++++++++++++++++++++++++++++++ app/views/index.ejs | 3 +++ samples/app.conf.sample | 1 + src/css/stylesheet.css | 8 ++++++++ 5 files changed, 52 insertions(+) diff --git a/app/routes/private_routes.js b/app/routes/private_routes.js index 2a98651..8823334 100644 --- a/app/routes/private_routes.js +++ b/app/routes/private_routes.js @@ -307,4 +307,12 @@ router.get("/", async (req, res) => { } }); +router.get("/about", (req, res) => { + res.render("about", { + page_title: app_conf.name, + css_path: path.join(app_conf.paths.css.web, "stylesheet.css"), + version: app_conf.version + }); +}); + module.exports = router; \ No newline at end of file diff --git a/app/views/about.ejs b/app/views/about.ejs index e69de29..a6118ce 100644 --- a/app/views/about.ejs +++ b/app/views/about.ejs @@ -0,0 +1,32 @@ + + + + + + <%= page_title %> + + + + + + + + + +
+ +
+
+
+ +
+ GitHub +
+
+ 🢀 Return +
+ + + \ No newline at end of file diff --git a/app/views/index.ejs b/app/views/index.ejs index fabd3d2..62a7f6f 100644 --- a/app/views/index.ejs +++ b/app/views/index.ejs @@ -35,6 +35,9 @@ <%- table_data %> +
+
About
+
\ No newline at end of file diff --git a/samples/app.conf.sample b/samples/app.conf.sample index 1e6bf7d..faeed6c 100644 --- a/samples/app.conf.sample +++ b/samples/app.conf.sample @@ -1,4 +1,5 @@ module.exports = { + version: "1.0", name: "CRTelemetry", host: "localhost", protocol: "http", diff --git a/src/css/stylesheet.css b/src/css/stylesheet.css index e6624af..74c4861 100644 --- a/src/css/stylesheet.css +++ b/src/css/stylesheet.css @@ -37,6 +37,14 @@ a:hover { border-radius: 5px; } +.about_div { + color: #ececec; + background-color: #272727; + margin: 3px; + padding: 5px; + border-radius: 5px; +} + table { background-color: #272727; padding: 10px;