diff --git a/frontend/js/footer.js b/frontend/js/footer.js index 651d0867..2ac27a0f 100644 --- a/frontend/js/footer.js +++ b/frontend/js/footer.js @@ -46,6 +46,8 @@ document.addEventListener("DOMContentLoaded", () => {
  • leaderboard
  • register
  • about
  • +
  • Privacy Policy
  • +
  • Terms & Conditions
  • diff --git a/frontend/privacy.html b/frontend/privacy.html new file mode 100644 index 00000000..f7c00ea1 --- /dev/null +++ b/frontend/privacy.html @@ -0,0 +1,282 @@ + + + + + + CodePVG — Privacy Policy + + + + + + + + + + + + + + + +
    + +
    + + + + diff --git a/frontend/terms.html b/frontend/terms.html new file mode 100644 index 00000000..32bc78b4 --- /dev/null +++ b/frontend/terms.html @@ -0,0 +1,287 @@ + + + + + + CodePVG — Terms and Conditions + + + + + + + + + + + + + + + +
    + +
    + + + + diff --git a/server.js b/server.js index 3fa8ddd2..668defe2 100644 --- a/server.js +++ b/server.js @@ -92,6 +92,14 @@ app.get("/registration", (req, res) => { serveHtml(res, path.join(__dirname, "frontend", "registration.html")); }); +app.get("/privacy", (req, res) => { + res.sendFile(path.join(__dirname, "frontend", "privacy.html")); +}); + +app.get("/terms", (req, res) => { + res.sendFile(path.join(__dirname, "frontend", "terms.html")); +}); + // Redirect direct .html file access so nonce injection still applies app.get(/\.html$/, (req, res) => { const cleanPath = req.path.replace(/\.html$/, "");