commit bab51615c9ffa9515a1525c584a4fea72a800be2 Author: DeSqBlocki Date: Sat Aug 15 08:38:49 2026 +0200 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..37d7e73 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +.env diff --git a/app.js b/app.js new file mode 100644 index 0000000..940b0f6 --- /dev/null +++ b/app.js @@ -0,0 +1,25 @@ +const express = require('express'); +const app = express(); +const cardRouter = require('./routes/card'); +const guestbookRouter = require('./routes/guestbook'); +const countdownRouter = require('./routes/countdown'); + +// Set the view engine to EJS +app.set('view engine', 'ejs'); +app.use(express.static('public')); // To serve static files (CSS, images, etc.) + +// Route for handling cards +app.use('/card', cardRouter); +app.use('/guestbook', guestbookRouter); +app.use('/countdown', countdownRouter); + + +app.get('*', function(req, res){ + res.redirect('/card/en'); + }); + +// Start the server +const port = 3000; +app.listen(port, () => { + console.log(`Server running on http://localhost:${port}`); +}); diff --git a/locales/card/de.json b/locales/card/de.json new file mode 100644 index 0000000..915c65e --- /dev/null +++ b/locales/card/de.json @@ -0,0 +1,17 @@ +{ + "lang": "de", + "menu_card": "Karte", + "menu_guestbook": "Gästebuch", + "menu_countdown": "Countdown", + "title": "Karte", + "description": "Einladung zur Hochzeit von Milenya & Bunbun", + "hover_hint":"Klick hier!", + "front_invation_1": "In den Reichen von Eorzea haben wir uns gefunden und nun, von den Sternen gesegnet, treten wir in den Bund der Ewigkeit.", + "front_invation_2": "Diesen Moment möchten wir mit euch teilen am 28.09.2024 um 15 Uhr im Ostwald am Dom der Einkehr.", + "front_invation_3": "Im Anschluss, wer möchte, kann sich gerne uns anschließen, um in Shirogane, Bezirk 23, Nr. 15 dieses Bündniss zu feiern.", + "back_info": "Bitte beachtet:", + "back_style": "Stil: Formell", + "back_rules": "Keine Minions, Keine Meme Outfits", + "back_afterword": "Bei weiteren Fragen könnt ihr euch gerne jederzeit bei uns melden", + "back_signed": "LG Milenya & Bunbun" +} diff --git a/locales/card/en.json b/locales/card/en.json new file mode 100644 index 0000000..824bb0e --- /dev/null +++ b/locales/card/en.json @@ -0,0 +1,17 @@ +{ + "lang": "en", + "menu_card": "Card", + "menu_guestbook": "Guestbook", + "menu_countdown": "Countdown", + "title": "Card", + "description": "Invitation to the wedding of Milenya & Bunbun", + "hover_hint":"Click here!", + "front_invation_1": "In the realms of Eorzea, we have found each other, and now, blessed by the stars, we enter into the ceremony of eternal bonding.", + "front_invation_2": "We would like to share this moment with you on September 28th 2024, at 13 o'clock Server Time in the Sanctum of the Twelve in East Shroud.", + "front_invation_3": "Afterwards, anyone who wishes can gladly join the festivities in Shirogane, Ward 23, Plot 15.", + "back_info": "Please note:", + "back_style": "Style: Formal", + "back_rules": "No Minions, No Meme Outfits", + "back_afterword": "If you have any questions, feel free to reach out to us", + "back_signed": "Kind regards, Milenya & Bunbun" +} diff --git a/locales/countdown/de.json b/locales/countdown/de.json new file mode 100644 index 0000000..ec9a01d --- /dev/null +++ b/locales/countdown/de.json @@ -0,0 +1,10 @@ +{ + "lang": "de", + "menu_card": "Karte", + "menu_guestbook": "Gästebuch", + "menu_countdown": "Countdown", + "title": "Hochzeit Timer", + "description": "Unser Hochzeit Timer", + "countdown_text": "Hochzeit Timer :", + "ountdown_finished": "Es ist soweit!" +} \ No newline at end of file diff --git a/locales/countdown/en.json b/locales/countdown/en.json new file mode 100644 index 0000000..bf3a566 --- /dev/null +++ b/locales/countdown/en.json @@ -0,0 +1,10 @@ +{ + "lang": "en", + "menu_card": "Card", + "menu_guestbook": "Guestbook", + "menu_countdown": "Countdown", + "title": "Wedding Timer", + "description": "our wedding timer", + "countdown_text": "Wedding Timer:", + "countdown_finished": "It is time!" +} \ No newline at end of file diff --git a/locales/guestbook/de.json b/locales/guestbook/de.json new file mode 100644 index 0000000..7153303 --- /dev/null +++ b/locales/guestbook/de.json @@ -0,0 +1,15 @@ +{ + "lang": "de", + "menu_card": "Karte", + "menu_guestbook": "Gästebuch", + "menu_countdown": "Countdown", + "title": "Gästebuch", + "description": "Unser Gästebuch", + "guestbook_welcome": "Willkommen im Gästebuch!", + "guestbook_name": "Dein Name:", + "guestbook_name_placeholder": "Wer bist du?", + "guestbook_comment": "Deine Nachricht:", + "guestbook_comment_placeholder": "Was möchtest du mit uns teilen?", + "guestbook_submit": "Absenden", + "messages_wrote": "schrieb" +} \ No newline at end of file diff --git a/locales/guestbook/en.json b/locales/guestbook/en.json new file mode 100644 index 0000000..295ef16 --- /dev/null +++ b/locales/guestbook/en.json @@ -0,0 +1,15 @@ +{ + "lang": "en", + "menu_card": "Card", + "menu_guestbook": "Guestbook", + "menu_countdown": "Countdown", + "title": "Guestbook", + "description": "our guestbook", + "guestbook_welcome": "Welcome to our Guestbook!", + "guestbook_name":"Your Name:", + "guestbook_name_placeholder":"Who are you?", + "guestbook_comment":"Your Message:", + "guestbook_comment_placeholder": "What would you like to share with us?", + "guestbook_submit": "Submit", + "messages_wrote": "wrote" +} \ No newline at end of file diff --git a/messages.json b/messages.json new file mode 100644 index 0000000..2cafdc5 --- /dev/null +++ b/messages.json @@ -0,0 +1,26 @@ +[ + { + "name": "Aquanort", + "comment": "Plenty of silly jokes *wink*", + "imagePath": null, + "originalFilename": null + }, + { + "name": "Strange Person", + "comment": "“May your choices reflect your hopes, not your fears.” ", + "imagePath": null, + "originalFilename": null + }, + { + "name": "Dorythos Tuulai", + "comment": "Freue mich schon! ", + "imagePath": null, + "originalFilename": null + }, + { + "name": "Milaysa Federschein", + "comment": "May your Hearts and Souls always beat in the same Rhythm ♥♥♥", + "imagePath": "/upload/Screenshot 2024-09-25 181537-1727281135769-e31074a6.png", + "originalFilename": "Screenshot 2024-09-25 181537.png" + } +] \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..88193c0 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1117 @@ +{ + "name": "milenbun", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "milenbun", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "bootstrap": "^5.3.3", + "crypto": "^1.0.1", + "ejs": "^3.1.10", + "express": "^4.21.0", + "jquery": "^3.7.1", + "multer": "^1.4.5-lts.1", + "path": "^0.12.7" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "license": "MIT", + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/append-field": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", + "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==", + "license": "MIT" + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/body-parser": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.13.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/bootstrap": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.3.tgz", + "integrity": "sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "license": "MIT", + "peerDependencies": { + "@popperjs/core": "^2.11.8" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "license": "MIT" + }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "engines": [ + "node >= 0.8" + ], + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", + "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "license": "MIT" + }, + "node_modules/crypto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/crypto/-/crypto-1.0.1.tgz", + "integrity": "sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig==", + "deprecated": "This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.", + "license": "ISC" + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "node_modules/ejs": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/es-define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.21.0", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.0.tgz", + "integrity": "sha512-VqcNGcj/Id5ZT1LZ/cfihi3ttTn+NJmkli2eZADigjq29qTlWi/hAQ43t/VLPq8+UX06FCEx3ByOYet6ZFblng==", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.3", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.6.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.3.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.10", + "proxy-addr": "~2.0.7", + "qs": "6.13.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.19.0", + "serve-static": "1.16.2", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/finalhandler": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", + "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "license": "MIT" + }, + "node_modules/jake": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", + "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jquery": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", + "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==", + "license": "MIT" + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/multer": { + "version": "1.4.5-lts.1", + "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.1.tgz", + "integrity": "sha512-ywPWvcDMeH+z9gQq5qYHCCy+ethsk4goepZ45GLD63fOu0YcNecQxi64nDs3qluZB+murG3/D4dJ7+dGctcCQQ==", + "license": "MIT", + "dependencies": { + "append-field": "^1.0.0", + "busboy": "^1.0.0", + "concat-stream": "^1.5.2", + "mkdirp": "^0.5.4", + "object-assign": "^4.1.1", + "type-is": "^1.6.4", + "xtend": "^4.0.0" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", + "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path": { + "version": "0.12.7", + "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz", + "integrity": "sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q==", + "license": "MIT", + "dependencies": { + "process": "^0.11.1", + "util": "^0.10.3" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", + "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==" + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "license": "MIT" + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/qs": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "dependencies": { + "side-channel": "^1.0.6" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/readable-stream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/send": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/serve-static": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.19.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "node_modules/side-channel": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", + "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", + "dependencies": { + "call-bind": "^1.0.7", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "object-inspect": "^1.13.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string_decoder/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "license": "MIT" + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/util": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", + "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", + "license": "MIT", + "dependencies": { + "inherits": "2.0.3" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, + "node_modules/util/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "license": "ISC" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "license": "MIT", + "engines": { + "node": ">=0.4" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..8769aa0 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "milenbun", + "version": "1.0.0", + "description": "", + "main": "app.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "bootstrap": "^5.3.3", + "crypto": "^1.0.1", + "ejs": "^3.1.10", + "express": "^4.21.0", + "jquery": "^3.7.1", + "multer": "^1.4.5-lts.1", + "path": "^0.12.7" + } +} diff --git a/public/css/card.css b/public/css/card.css new file mode 100644 index 0000000..b79fbeb --- /dev/null +++ b/public/css/card.css @@ -0,0 +1,268 @@ +/* Basic styling for the entire page */ +body { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + margin: 0; + font-family: 'Great Vibes', cursive; /* Use Great Vibes font */ + background-image: url('../images/background.gif'); + background-size: cover; + background-position: center; + background-repeat: no-repeat; + backdrop-filter: blur(4px); + /* Apply blur effect */ +} + +/* Invitation card container with 3D perspective */ +.invitation-card { + width: 100%; + max-width: 650px; + height: 100%; + max-height: 850px; + perspective: 900px; + /* Creates the 3D effect */ + position: relative; + overflow: hidden; + cursor: pointer; + animation: pulse 5s infinite; +} + +.invitation-card:hover { + animation: none; +} + +/* Inner container for the flip effect */ +.card-inner { + width: 100%; + height: 100%; + position: relative; + transform-style: preserve-3d; + transition: transform 0.8s ease-in-out; +} + +.invitation-card.flipped .card-inner { + transform: rotateY(180deg); +} + +/* Styling for the front and back of the card */ +.card-front, +.card-back { + position: absolute; + width: 100%; + height: 100%; + backface-visibility: hidden; + border-radius: 10px; + overflow: hidden; + display: flex; + justify-content: center; + align-items: center; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); + /* Adds a shadow for a better visual appearance */ +} + +.card-image { + width: 100%; + height: 100%; + object-fit: cover; + /* Ensures the image covers the entire card */ +} + +/* Flip the back side of the card */ +.card-back { + transform: rotateY(180deg); +} + +/* Text on top of the card */ +.card-text { + position: absolute; + width: 100%; + height: 100%; + display: flex; + text-align: center; + justify-content: center; + align-items: center; + flex-direction: column; + padding: 20px; + color: rgba(249, 104, 14, 0.671); + -webkit-text-stroke-width: 1px; + -webkit-text-stroke-color: rgba(0, 0, 0, 0.2); + box-sizing: border-box; +} + +.title-text { + position: absolute; + width: 100%; + height: 100%; + text-align: center; + flex-direction: column; + padding: 20px; + display: inline-block; /* This makes the underline match the text width */ + color: rgba(249, 104, 14, 0.671); + font-size: 40px; + font-style: italic; + -webkit-text-stroke-width: 1px; + -webkit-text-stroke-color: rgba(0, 0, 0, 0.2); + box-sizing: border-box; +} + +h1, h2, p { + margin: 5px; +} + +.custom-text-align { + max-width: 80%; + margin: 0 auto; + padding-top: 20%; + padding-left: 20px; + padding-right: 20px; +} + +h1 { + font-size: 2em; +} + +h2 { + font-size: 1.5em; +} + +p { + font-size: 1.6em; +} + +/* Outer glow effect for text */ +.card-text h1, .card-text p { + text-shadow: 0 0 10px rgba(170, 103, 2, 0.8); +} + +.custom-text-align p { + text-shadow: 0 0 40px rgba(255, 255, 255, 0.8); +} + +/* Hover hint styling */ +.hover-hint { + position: absolute; + bottom: 20%; + left: 50%; + font-size: 20px; + transform: translateX(-50%); + color: white; + background: rgba(0, 0, 0, 0.5); + padding: 20px 40px; + border-radius: 5px; + opacity: 0; /* Initially hidden */ + transition: opacity 0.3s ease; + z-index: 1; + pointer-events: none; /* Avoid interaction when hidden */ +} + +/* Hover hint disappears on hover */ +.invitation-card:hover .hover-hint { + opacity: 0; + pointer-events: none; +} + + + +/* Language switcher styles */ +.language-switcher { + position: absolute; + top: 20px; + right: 20px; +} + +.language-switcher a { + color: white; + text-decoration: none; + padding: 10px 20px; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 5px; + margin: 0 5px; + transition: background-color 0.3s ease; +} + +.language-switcher a:hover { + background-color: rgba(0, 0, 0, 0.8); +} +/* Menu styles similar to language switcher */ +.menu-btn { + color: white; + background-color: rgba(0, 0, 0, 0.6); + border: none; + padding: 10px 20px; + border-radius: 5px; + cursor: pointer; + transition: background-color 0.3s ease; + position: absolute; + top: 10px; + left: 20px; +} + +.menu-btn:hover { + background-color: rgba(0, 0, 0, 0.8); +} + +.retractable-menu { + display: none; + position: absolute; + top: 60px; + left: 20px; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 5px; + padding: 10px 20px; +} + +.retractable-menu.open { + display: block; +} + +.retractable-menu ul { + list-style: none; + padding: 0; + margin: 0; +} + +.retractable-menu ul li { + margin: 10px 0; +} + +.retractable-menu ul li a { + color: white; + text-decoration: none; + padding: 10px 20px; + display: block; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 5px; + transition: background-color 0.3s ease; +} + +.retractable-menu ul li a:hover { + background-color: rgba(0, 0, 0, 0.8); +} +/* Mobile responsiveness */ +@media (max-width: 600px) { + body { + height: auto; + padding: 20px; + background-size: cover; + } + + .invitation-card { + max-width: 95vw; + max-height: 80vh; + margin: 0 auto; + padding: 10px; + } + + h1 { + font-size: 1.5em; + } + + h2 { + font-size: 1.2em; + } + + p { + font-size: 1em; + } +} diff --git a/public/css/card.css.bak b/public/css/card.css.bak new file mode 100644 index 0000000..5645d5b --- /dev/null +++ b/public/css/card.css.bak @@ -0,0 +1,313 @@ +/* Basic styling for the entire page */ +body { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + margin: 0; + font-family: 'Great Vibes', cursive; /* Use Great Vibes font */ + background-image: url('../images/background.gif'); + background-size: cover; + background-position: center; + background-repeat: no-repeat; + backdrop-filter: blur(4px); + /* Apply blur effect */ +} +.invitation-card { + cursor: pointer; +} + +.hover-hint { + position: absolute; + top: 10px; + left: 50%; + transform: translateX(-50%); + color: white; + background: rgba(0, 0, 0, 0.5); + padding: 10px 20px; + border-radius: 5px; + opacity: 0; /* Initially hidden */ + transition: opacity 0.3s ease; + z-index: 1; + pointer-events: none; /* Avoid interaction when hidden */ + animation: showHint 0.3s ease forwards; /* Add an animation */ + animation-delay: 5s; /* Delay the appearance by 5 seconds */ +} + +@keyframes showHint { + from { + opacity: 0; + } + to { + opacity: 1; /* Become visible */ + } +} + +.invitation-card:hover .hover-hint { + opacity: 0; + pointer-events: none; + animation: none; /* Instantly hide when hovered */ +} + +/* Invitation card container with 3D perspective */ +.invitation-card { + width: 100%; + max-width: 650px; + height: 100%; + max-height: 850px; + perspective: 900px; + /* Creates the 3D effect */ + position: relative; + overflow: hidden; +} + +/* Inner container for the flip effect */ +.card-inner { + width: 100%; + height: 100%; + position: relative; + transform-style: preserve-3d; + transition: transform 0.8s ease-in-out; +} + +/* Flip the card on hover */ +.invitation-card:hover .card-inner { + transform: rotateY(180deg); +} + +/* Styling for the front and back of the card */ +.card-front, +.card-back { + position: absolute; + width: 100%; + height: 100%; + backface-visibility: hidden; + border-radius: 10px; + overflow: hidden; + display: flex; + justify-content: center; + align-items: center; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); + /* Adds a shadow for a better visual appearance */ + +} + +.card-image { + width: 100%; + height: 100%; + object-fit: cover; + /* Ensures the image covers the entire card */ +} + +/* Flip the back side of the card */ +.card-back { + transform: rotateY(180deg); +} + +/* Text on top of the card */ +.card-text { + position: absolute; + width: 100%; + height: 100%; + display: flex; + text-align: center; + justify-content: center; + align-items: center; + flex-direction: column; + padding: 20px; + + /* Slight overlay for better readability of text */ + color: rgba(249, 104, 14, 0.671); + -webkit-text-stroke-width: 1px; + -webkit-text-stroke-color: rgba(0, 0, 0, 0.2); + box-sizing: border-box; +} + +.title-text { + position: absolute; + width: 100%; + height: 100%; + display: flex; + text-align: center; + flex-direction: column; + padding: 20px; + display: inline-block; /* This makes the underline match the text width */ + /* Slight overlay for better readability of text */ + color: rgba(249, 104, 14, 0.671); + font-size: 40px; + font-style: italic; + -webkit-text-stroke-width: 1px; + -webkit-text-stroke-color: rgba(0, 0, 0, 0.2); + box-sizing: border-box; +} + + + +h1, +h2, +p { + margin: 5px; +} + +.custom-text-align { + max-width: 80%; + /* Set a max width */ + margin: 0 auto; + padding-top: 20%; + /* Center the container */ + padding-left: 20px; + padding-right: 20px; +} + +h1 { + font-size: 2em; +} + +h2 { + font-size: 1.5em; +} + +p { + font-size: 1.6em; +} + +/* Outer glow effect for text */ +.card-text h1, +.card-text p { + text-shadow: 0 0 10px rgba(170, 103, 2, 0.8) +} +.custom-text-align p { + text-shadow: 0 0 40px rgba(255, 255, 255, 0.8); +} + +/* Language switcher styles */ +.language-switcher { + position: absolute; + top: 20px; + right: 20px; +} + +.language-switcher a { + color: white; + text-decoration: none; + padding: 10px 20px; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 5px; + margin: 0 5px; + transition: background-color 0.3s ease; +} + +.language-switcher a:hover { + background-color: rgba(0, 0, 0, 0.8); +} + +/* Menu styles similar to language switcher */ +.menu-btn { + color: white; + background-color: rgba(0, 0, 0, 0.6); + border: none; + padding: 10px 20px; + border-radius: 5px; + cursor: pointer; + transition: background-color 0.3s ease; + position: absolute; + top: 10px; + left: 20px; +} + +.menu-btn:hover { + background-color: rgba(0, 0, 0, 0.8); +} + +.retractable-menu { + display: none; + position: absolute; + top: 60px; + left: 20px; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 5px; + padding: 10px 20px; +} + +.retractable-menu.open { + display: block; +} + +.retractable-menu ul { + list-style: none; + padding: 0; + margin: 0; +} + +.retractable-menu ul li { + margin: 10px 0; +} + +.retractable-menu ul li a { + color: white; + text-decoration: none; + padding: 10px 20px; + display: block; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 5px; + transition: background-color 0.3s ease; +} + +.retractable-menu ul li a:hover { + background-color: rgba(0, 0, 0, 0.8); +} + + + +/* Mobile responsiveness */ +@media (max-width: 600px) { + body { + height: auto; + padding: 20px; + background-size: cover; + } + + .invitation-card { + max-width: 95vw; + /* Adjust the card width for mobile devices */ + max-height: 80vh; + /* Adjust the card height for mobile devices */ + margin: 0 auto; + /* Center the card */ + padding: 10px; + /* Add some padding around the card */ + } + + h1 { + font-size: 1.5em; + } + + h2 { + font-size: 1.2em; + } + + p { + font-size: 1em; + } +} +/* Pulse animation to the invitation card */ +@keyframes pulse { + 0% { + transform: scale(1); + } + 50% { + transform: scale(1.05); + } + 100% { + transform: scale(1); + } +} + +.invitation-card { + animation: pulse 5s infinite; + overflow: hidden; +} + +.invitation-card:hover { + animation: none; +} diff --git a/public/css/countdown.css b/public/css/countdown.css new file mode 100644 index 0000000..c359ece --- /dev/null +++ b/public/css/countdown.css @@ -0,0 +1,144 @@ +.countdown-card { + background-color: rgba(255, 255, 255, 0.7); + border-radius: 10px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); + padding: 30px; + text-align: center; + width: 600px; +} + +.countdown { + font-size: 5em; /* Larger font for visibility */ + color: rgba(249, 104, 14, 0.671); /* Color for the countdown */ +} + +/* Basic styling for the entire page */ +body { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + margin: 0; + background-image: url('../images/background.gif'); + background-size: cover; + background-position: center; + background-repeat: no-repeat; + font-family: 'Great Vibes', cursive; /* Use Great Vibes font */ + font-style: italic; + backdrop-filter: blur(4px); /* Apply blur effect */ +} + +.card { + background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */ +} + +.card-img-top { + border-radius: 0; /* Remove rounded edges for the image */ +} + +.btn-primary { + background-color: #007bff; /* Bootstrap primary color */ + border: none; +} + +.btn-primary:hover { + background-color: #0056b3; /* Darker shade on hover */ +} + +/* Language switcher styles */ +.language-switcher { + position: absolute; + top: 20px; + right: 20px; +} + +.language-switcher a { + color: white; + text-decoration: none; + padding: 10px 20px; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 5px; + margin: 0 5px; + transition: background-color 0.3s ease; +} + +.language-switcher a:hover { + background-color: rgba(0, 0, 0, 0.8); +} +/* Menu styles similar to language switcher */ +.menu-button { + color: white; + background-color: rgba(0, 0, 0, 0.6); + border: none; + padding: 10px 20px; + border-radius: 5px; + cursor: pointer; + transition: background-color 0.3s ease; + position: absolute; + top: 10px; + left: 20px; +} + +.menu-button:hover { + background-color: rgba(0, 0, 0, 0.8); +} + +.retractable-menu { + display: none; + position: absolute; + top: 60px; + left: 20px; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 5px; + padding: 10px 20px; +} + +.retractable-menu.open { + display: block; +} + +.retractable-menu ul { + list-style: none; + padding: 0; + margin: 0; +} + +.retractable-menu ul li { + margin: 10px 0; +} + +.retractable-menu ul li a { + color: white; + text-decoration: none; + padding: 10px 20px; + display: block; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 5px; + transition: background-color 0.3s ease; +} + +.retractable-menu ul li a:hover { + background-color: rgba(0, 0, 0, 0.8); +} + +.countdown-title { + font-size: xx-large; + color: rgb(0, 0, 0); +} + + +/* Mobile responsiveness */ +@media (max-width: 600px) { + body { + height: auto; + padding: 20px; + background-size: cover; + } + + .invitation-card { + max-width: 95vw; /* Adjust the card width for mobile devices */ + max-height: 80vh; /* Adjust the card height for mobile devices */ + margin: 0 auto; /* Center the card */ + padding: 10px; /* Add some padding around the card */ + } +} diff --git a/public/css/guestbook.css b/public/css/guestbook.css new file mode 100644 index 0000000..aea6a12 --- /dev/null +++ b/public/css/guestbook.css @@ -0,0 +1,151 @@ +/* Basic styling for the entire page */ +body { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + margin: 0; + background-image: url('../images/background.gif'); + background-size: cover; + background-position: center; + background-repeat: no-repeat; + font-family: 'Great Vibes', cursive; /* Use Great Vibes font */ + font-style: italic; + backdrop-filter: blur(4px); /* Apply blur effect */ +} + +.card { + background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */ +} + +.card-img-top { + border-radius: 0; /* Remove rounded edges for the image */ +} + +.btn-primary { + background-color: #007bff; /* Bootstrap primary color */ + border: none; +} + +.btn-primary:hover { + background-color: #0056b3; /* Darker shade on hover */ +} + +/* Language switcher styles */ +.language-switcher { + position: absolute; + top: 20px; + right: 20px; +} + +.language-switcher a { + color: white; + text-decoration: none; + padding: 10px 20px; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 5px; + margin: 0 5px; + transition: background-color 0.3s ease; +} + +.language-switcher a:hover { + background-color: rgba(0, 0, 0, 0.8); +} + +/* Menu styles similar to language switcher */ +.menu-button { + color: white; + background-color: rgba(0, 0, 0, 0.6); + border: none; + padding: 10px 20px; + border-radius: 5px; + cursor: pointer; + transition: background-color 0.3s ease; + position: absolute; + top: 20px; + left: 20px; +} + +.menu-button:hover { + background-color: rgba(0, 0, 0, 0.8); +} + +.retractable-menu { + display: none; + position: absolute; + top: 60px; + left: 20px; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 5px; + padding: 10px 20px; +} + +.retractable-menu.open { + display: block; +} + +.retractable-menu ul { + list-style: none; + padding: 0; + margin: 0; +} + +.retractable-menu ul li { + margin: 10px 0; +} + +.retractable-menu ul li a { + color: white; + text-decoration: none; + padding: 10px 20px; + display: block; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 5px; + transition: background-color 0.3s ease; +} + +.retractable-menu ul li a:hover { + background-color: rgba(0, 0, 0, 0.8); +} + +/* Scrollable messages section */ +.scrollable-messages { + max-height: 400px; /* Set the maximum height */ + overflow-y: auto; /* Enable vertical scroll */ + padding: 10px; + background-color: rgba(255, 255, 255, 0.8); /* Same background for consistency */ + border-radius: 8px; +} + +/* Style for each individual message */ +.uploaded-image { + max-width: 100%; + max-height: 200px; + object-fit: cover; + border-radius: 10px; + cursor: pointer; +} + +.list-group-item { + margin-bottom: 15px; /* Space between messages */ +} + +/* Mobile responsiveness */ +@media (max-width: 600px) { + body { + height: auto; + padding: 20px; + background-size: cover; + } + + .invitation-card { + max-width: 95vw; /* Adjust the card width for mobile devices */ + max-height: 80vh; /* Adjust the card height for mobile */ + } +} + +/* Ensure the modal image scales properly */ +.modal-body img { + max-width: 100%; + height: auto; +} diff --git a/public/images/background.gif b/public/images/background.gif new file mode 100644 index 0000000..3dc2785 Binary files /dev/null and b/public/images/background.gif differ diff --git a/public/images/card_back.png b/public/images/card_back.png new file mode 100644 index 0000000..2a58607 Binary files /dev/null and b/public/images/card_back.png differ diff --git a/public/images/card_front.png b/public/images/card_front.png new file mode 100644 index 0000000..30b96bb Binary files /dev/null and b/public/images/card_front.png differ diff --git a/public/images/paper.png b/public/images/paper.png new file mode 100644 index 0000000..93912bf Binary files /dev/null and b/public/images/paper.png differ diff --git a/public/previews/card.png b/public/previews/card.png new file mode 100644 index 0000000..f28f0ce Binary files /dev/null and b/public/previews/card.png differ diff --git a/public/previews/countdown.png b/public/previews/countdown.png new file mode 100644 index 0000000..7a0b54f Binary files /dev/null and b/public/previews/countdown.png differ diff --git a/public/previews/guetsbook.png b/public/previews/guetsbook.png new file mode 100644 index 0000000..c21afc6 Binary files /dev/null and b/public/previews/guetsbook.png differ diff --git a/public/upload/Screenshot 2024-09-25 181537-1727281135769-e31074a6.png b/public/upload/Screenshot 2024-09-25 181537-1727281135769-e31074a6.png new file mode 100644 index 0000000..67dd830 Binary files /dev/null and b/public/upload/Screenshot 2024-09-25 181537-1727281135769-e31074a6.png differ diff --git a/routes/card.js b/routes/card.js new file mode 100644 index 0000000..bd70f6a --- /dev/null +++ b/routes/card.js @@ -0,0 +1,27 @@ +const express = require('express'); +const router = express.Router(); +const path = require('path'); +const fs = require('fs'); + +// Function to load the appropriate language file +function getLanguageFile(language) { + const filePath = path.join(__dirname, `../locales/card/${language}.json`); + return JSON.parse(fs.readFileSync(filePath, 'utf8')); +} + +// Route for the card, with language support +router.get('/:lang', (req, res) => { + const lang = req.params.lang || 'en'; // Default to English + let languageData; + + // Try to load the correct language file, fall back to English + try { + languageData = getLanguageFile(lang); + } catch (err) { + languageData = getLanguageFile('en'); + } + + res.render('card', { langData: languageData}); +}); + +module.exports = router; diff --git a/routes/countdown.js b/routes/countdown.js new file mode 100644 index 0000000..5ba86b7 --- /dev/null +++ b/routes/countdown.js @@ -0,0 +1,27 @@ +const express = require('express'); +const router = express.Router(); +const path = require('path'); +const fs = require('fs'); + +// Function to load the appropriate language file +function getLanguageFile(language) { + const filePath = path.join(__dirname, `../locales/countdown/${language}.json`); + return JSON.parse(fs.readFileSync(filePath, 'utf8')); +} + +// Route for the card, with language support +router.get('/:lang', (req, res) => { + const lang = req.params.lang || 'en'; // Default to English + let languageData; + + // Try to load the correct language file, fall back to English + try { + languageData = getLanguageFile(lang); + } catch (err) { + languageData = getLanguageFile('en'); + } + + res.render('countdown', { langData: languageData}); +}); + +module.exports = router; diff --git a/routes/guestbook.js b/routes/guestbook.js new file mode 100644 index 0000000..a1b7faf --- /dev/null +++ b/routes/guestbook.js @@ -0,0 +1,71 @@ +const express = require('express'); +const router = express.Router(); +const path = require('path'); +const fs = require('fs'); +const multer = require('multer'); +const crypto = require('crypto'); + +// Configure multer storage to create unique filenames +const storage = multer.diskStorage({ + destination: 'public/upload', + filename: (req, file, cb) => { + const originalName = path.parse(file.originalname); + const uniqueSuffix = Date.now() + '-' + crypto.randomBytes(4).toString('hex'); // Generate a unique suffix + const newFilename = `${originalName.name}-${uniqueSuffix}${originalName.ext}`; // Create new filename + cb(null, newFilename); // Save the file with the new name + } +}); + +const upload = multer({ storage }); // Use the custom storage configuration +const messagesFilePath = path.join(__dirname, '../messages.json'); + +// Function to load the appropriate language file +function getLanguageFile(language) { + const filePath = path.join(__dirname, `../locales/guestbook/${language}.json`); + return JSON.parse(fs.readFileSync(filePath, 'utf8')); +} + +// Load previous messages from a JSON file +let messages = []; +if (fs.existsSync(messagesFilePath)) { + messages = JSON.parse(fs.readFileSync(messagesFilePath, 'utf8')); +} + +// Route for the guestbook, with language support +router.get('/:lang', (req, res) => { + const lang = req.params.lang || 'en'; // Default to English + let languageData; + + // Try to load the correct language file, fall back to English + try { + languageData = getLanguageFile(lang); + } catch (err) { + languageData = getLanguageFile('en'); + } + + // Render the guestbook with messages + res.render('guestbook', { langData: languageData, messages }); +}); + +// Endpoint to handle guestbook form submission +router.post('/new_comment', upload.single('file'), (req, res) => { + const lang = req.params.lang || 'en'; // Get the language from the URL + const comment = req.body.comment; + const name = req.body.name; + const imagePath = req.file ? path.join('/upload', req.file.filename) : null; + const originalFilename = req.file ? req.file.originalname : null; // Get the original filename + + // Add the new message to the messages array + messages.push({ name, comment, imagePath, originalFilename }); + + // Save messages to a JSON file + try { + fs.writeFileSync(messagesFilePath, JSON.stringify(messages, null, 2)); // Indent for readability + } catch (error) { + console.error('Error writing to messages.json:', error); + } + + res.redirect(`/guestbook/${lang}`); // Redirect to the guestbook page with language +}); + +module.exports = router; diff --git a/views/card.ejs b/views/card.ejs new file mode 100644 index 0000000..abd74aa --- /dev/null +++ b/views/card.ejs @@ -0,0 +1,215 @@ + + + + + + + + + + + + + <%= langData.title %> + + + + + + + + + + + +
+ English | + Deutsch +
+ + +
+ + +
+ + +
<%= langData.hover_hint %>
+
+
+ +
+ Front of Invitation +
+

+ Save the Date +

+ +
+
+ +
+ Back of Invitation +
+

+ <%= langData.front_invation_1 %> +

+

+ <%= langData.front_invation_2 %> +

+

+ <%= langData.front_invation_3 %> +

+
+

+ <%= langData.back_info %> +

+
+

+ <%= langData.back_style %> +

+

+ <%= langData.back_rules %> +

+
+

+ <%= langData.back_afterword %> +

+

+ <%= langData.back_signed %> +

+

+ + +
+
+
+
+ + + + + diff --git a/views/countdown.ejs b/views/countdown.ejs new file mode 100644 index 0000000..f2dcf0d --- /dev/null +++ b/views/countdown.ejs @@ -0,0 +1,93 @@ + + + + + + + + + + + + + <%= langData.title %> + + + + + + + + +
+ English | + Deutsch +
+ + +
+ + +
+ + +
+

+

+ <%= langData.countdown_text %> +

+

+

+

+
+ + + + + + diff --git a/views/guestbook.ejs b/views/guestbook.ejs new file mode 100644 index 0000000..dd38831 --- /dev/null +++ b/views/guestbook.ejs @@ -0,0 +1,145 @@ + + + + + + + + <%= langData.title %> + + + + + + + + +
+ English | + Deutsch +
+ + +
+ + +
+ + +
+
+

+ <%= langData.guestbook_welcome %> +

+
+
+
+ +
+
+ + +
+
+ + +
+
+ + +
+ +
+ +
+
+ + +
+

+ <%= langData.previous_messages %> +

+ +
+ <% messages.forEach(message=> { %> +
+
+ <%= message.name %> + <%= langData.messages_wrote %> +
+

+ <%= message.comment %> +

+ <% if (message.imagePath) { %> + + User Uploaded Image + <% } %> +
+ <% }); %> +
+ + + + +
+
+ + + + + + + + + \ No newline at end of file