diff --git a/app.js b/app.js index a4e028d..f5f438e 100644 --- a/app.js +++ b/app.js @@ -12,6 +12,7 @@ const characterRoutes = require("./routes/character"); const session = require("express-session"); const loginRoutes = require("./routes/login"); const launcherRoutes = require("./routes/launcher"); +const buildingRoutes = require("./routes/buildings"); const app = express(); const PORT = process.env.PORT || 3000; @@ -71,6 +72,7 @@ app.use("/verify", verifyRoutes); app.use("/create-character", characterRoutes); app.use("/login", loginRoutes); app.use("/launcher", launcherRoutes); +app.use("/", buildingRoutes); /* ======================== 404 Handler diff --git a/public/css/building.css b/public/css/building.css new file mode 100644 index 0000000..e400605 --- /dev/null +++ b/public/css/building.css @@ -0,0 +1,26 @@ +body { + margin: 0; + height: 100vh; + + background: url("/images/dok_bg.png") center / cover no-repeat; + + display: flex; + justify-content: center; + align-items: center; + + font-family: sans-serif; + color: white; +} + +.building { + background: rgba(0, 0, 0, 0.7); + padding: 40px; + border-radius: 10px; + text-align: center; + width: 400px; +} + +a { + color: #6ec6ff; + text-decoration: none; +} diff --git a/public/css/launcher.css b/public/css/launcher.css index dec303e..c76c09f 100644 --- a/public/css/launcher.css +++ b/public/css/launcher.css @@ -18,11 +18,11 @@ .area { fill: rgba(255, 255, 255, 0); cursor: pointer; - transition: all 0.25s; + transition: 0.3s; } .area:hover { - fill: rgba(255, 255, 255, 0.2); + fill: rgba(120, 200, 255, 0.15); stroke: #6ec6ff; stroke-width: 3; filter: drop-shadow(0 0 10px #6ec6ff); diff --git a/routes/buildings.js b/routes/buildings.js new file mode 100644 index 0000000..1c48ec8 --- /dev/null +++ b/routes/buildings.js @@ -0,0 +1,24 @@ +const express = require("express"); +const router = express.Router(); + +router.get("/castle", (req, res) => { + res.render("buildings/castle"); +}); + +router.get("/market", (req, res) => { + res.render("buildings/market"); +}); + +router.get("/church", (req, res) => { + res.render("buildings/church"); +}); + +router.get("/portal", (req, res) => { + res.render("buildings/portal"); +}); + +router.get("/tower", (req, res) => { + res.render("buildings/tower"); +}); + +module.exports = router; diff --git a/views/buildings/castle.ejs b/views/buildings/castle.ejs new file mode 100644 index 0000000..b8be69f --- /dev/null +++ b/views/buildings/castle.ejs @@ -0,0 +1,7 @@ +
+

Schloss

+ +

Hier kannst du deine Charaktere verwalten.

+ + Zurück zur Karte +
diff --git a/views/buildings/church.ejs b/views/buildings/church.ejs new file mode 100644 index 0000000..4fdbb0f --- /dev/null +++ b/views/buildings/church.ejs @@ -0,0 +1,7 @@ +
+

Kirche

+ +

Segnungen und Heilungen.

+ + Zurück zur Karte +
diff --git a/views/buildings/market.ejs b/views/buildings/market.ejs new file mode 100644 index 0000000..23fe2f9 --- /dev/null +++ b/views/buildings/market.ejs @@ -0,0 +1,7 @@ +
+

Marktplatz

+ +

Hier kannst du Items kaufen.

+ + Zurück zur Karte +
diff --git a/views/buildings/portal.ejs b/views/buildings/portal.ejs new file mode 100644 index 0000000..156ec4a --- /dev/null +++ b/views/buildings/portal.ejs @@ -0,0 +1,7 @@ +
+

Portal

+ +

Dungeon Zugang.

+ + Zurück zur Karte +
diff --git a/views/buildings/tower.ejs b/views/buildings/tower.ejs new file mode 100644 index 0000000..94867e2 --- /dev/null +++ b/views/buildings/tower.ejs @@ -0,0 +1,7 @@ +
+

Turm

+ +

PvP Arena.

+ + Zurück zur Karte +
diff --git a/views/launcher.ejs b/views/launcher.ejs index 6a1ff4f..6d08683 100644 --- a/views/launcher.ejs +++ b/views/launcher.ejs @@ -31,40 +31,40 @@ -
- +
+ - - - - - - - - + + + + + + + +