diff --git a/Privacy Policy - CodeWe.docx b/Privacy Policy - CodeWe.docx
deleted file mode 100644
index b4cb012..0000000
Binary files a/Privacy Policy - CodeWe.docx and /dev/null differ
diff --git a/Terms and Conditions - CodeWe.docx b/Terms and Conditions - CodeWe.docx
deleted file mode 100644
index 3919a63..0000000
Binary files a/Terms and Conditions - CodeWe.docx and /dev/null differ
diff --git a/src/publics/css/legal.less b/src/publics/css/legal.less
index 7147537..6d5c3d8 100644
--- a/src/publics/css/legal.less
+++ b/src/publics/css/legal.less
@@ -1,36 +1,70 @@
section{
- width: 50%;
- min-width: 700px;
- margin: auto;
- color: rgb(193, 187, 177);
- line-height: 1.7;
- word-wrap: break-word;
- text-align: justify;
- font-family: helvetica neue,Helvetica,Arial,sans-serif;
- font-size: 1.125rem;
-
- h1{
- font-size: 2.125rem;
- margin-top: 25px;
- line-height: 1.4;
- }
-
- p{
- font-size: 1rem;
- margin-bottom: 10px;
- }
-
- a{
- color: inherit;
- text-decoration: none;
- transition: color ease-in-out 0.2s;
- }
-
- a:hover{
- color: #ddd;
- }
-
- ul{
- margin-left: 20px;
- }
+ width: 50%;
+ min-width: 700px;
+ margin: auto;
+ color: rgb(193, 187, 177);
+ line-height: 1.7;
+ word-wrap: break-word;
+ text-align: justify;
+ font-family: helvetica neue, Helvetica, Arial, sans-serif;
+ font-size: 1.125rem;
+
+ h1{
+ font-size: 2.125rem;
+ margin-top: 25px;
+ line-height: 1.4;
+ }
+
+ p{
+ font-size: 1rem;
+ margin-bottom: 10px;
+ }
+
+ a{
+ color: inherit;
+ text-decoration: none;
+ transition: color ease-in-out 0.2s;
+ }
+
+ a:hover{
+ color: #ddd;
+ }
+
+ ul{
+ margin-left: 20px;
+ }
+}
+
+
+table {
+ width: 100%
+}
+
+td.align-right {
+ text-align: right;
+}
+
+#not-valid {
+ width: 100%;
+ background-color: red;
+ text-align: center;
+ font-size: 38px;
+ color: white;
+}
+#redirect {
+ width: 100%;
+ background-color: darkred;
+ text-align: center;
+ font-size: 18px;
+ color: white;
+}
+
+#redirect:hover {
+ background-color: maroon;
+ transition: 0.2s ease-in-out;
+}
+
+div.revision {
+ border: 1px darkcyan solid;
+ padding: 5px;
}
diff --git a/src/routes/legal.js b/src/routes/legal.js
index 689f6f7..0da9949 100644
--- a/src/routes/legal.js
+++ b/src/routes/legal.js
@@ -5,10 +5,10 @@
* @date 16/11/2020
* @version 1.0.0
* @requires express
- *
+ *
*/
- /**
+/**
* express module
* @const
*/
@@ -29,7 +29,40 @@ const router = express.Router();
* @inner
*/
router.get(['/tos', '/tac', '/termsofservice', '/terms-of-service'], (req, res) => {
- res.render('legal/tos.html', {production: config.PRODUCTION, client_versobe: config.CLIENT_VERBOSE});
+ res.render('legal/tos.html', {
+ production: config.PRODUCTION,
+ client_versobe: config.CLIENT_VERBOSE
+ });
+});
+
+/**
+ * Route serving termsofservice PDF
+ * @name get/termsofservice
+ * @function
+ * @memberof modules:routes/legal
+ * @inner
+ */
+router.get(['/tos-pdf', '/tac-pdf', '/termsofservice-pdf', '/terms-of-service-pdf'], (req, res) => {
+ res.download("./views/legal/tos-pdf.pdf")
+});
+
+/**
+ * Route serving termsofservice archive
+ * @name get/termsofservice
+ * @function
+ * @memberof modules:routes/legal
+ * @inner
+ */
+router.get([
+ '/tos/archive/:date',
+ '/tac/archive/:date',
+ '/termsofservice/archive/:date',
+ '/terms-of-service/archive/:date'
+], (req, res) => {
+ res.render(`legal/archive/tos-${req.params.date}.html`, {
+ production: config.PRODUCTION,
+ client_versobe: config.CLIENT_VERBOSE
+ });
});
/**
@@ -40,7 +73,35 @@ router.get(['/tos', '/tac', '/termsofservice', '/terms-of-service'], (req, res)
* @inner
*/
router.get(['/privacy', '/privacy-policy', '/privacypolicy'], (req, res) => {
- res.render('legal/privacy.html', {production: config.PRODUCTION, client_versobe: config.CLIENT_VERBOSE});
+ res.render('legal/privacy.html', {
+ production: config.PRODUCTION,
+ client_versobe: config.CLIENT_VERBOSE
+ });
+});
+
+/**
+ * Route serving privacy policy PDF
+ * @name get/privacy
+ * @function
+ * @memberof modules:routes/legal
+ * @inner
+ */
+router.get(['/privacy-pdf', '/privacy-policy-pdf', '/privacypolicy-pdf'], (req, res) => {
+ res.download("./views/legal/privacy-pdf.pdf")
+});
+
+/**
+ * Route serving privacy policy archive
+ * @name get/privacy
+ * @function
+ * @memberof modules:routes/legal
+ * @inner
+ */
+router.get(['/privacy/archive/:date', '/privacy-policy/archive/:date', '/privacypolicy/archive/:date'], (req, res) => {
+ res.render(`legal/archive/privacy-${req.params.date}.html`, {
+ production: config.PRODUCTION,
+ client_versobe: config.CLIENT_VERBOSE
+ });
});
/**
@@ -50,8 +111,11 @@ router.get(['/privacy', '/privacy-policy', '/privacypolicy'], (req, res) => {
* @memberof modules:routes/legal
* @inner
*/
-router.get('/license', (req, res) => {
- res.render('legal/licence.html', {production: config.PRODUCTION, client_versobe: config.CLIENT_VERBOSE});
+router.get('/licence', (req, res) => {
+ res.render('legal/licence.html', {
+ production: config.PRODUCTION,
+ client_versobe: config.CLIENT_VERBOSE
+ });
});
-module.exports = router;
\ No newline at end of file
+module.exports = router;
diff --git a/src/views/component/footer.html b/src/views/component/footer.html
index 38725c2..9c3629c 100644
--- a/src/views/component/footer.html
+++ b/src/views/component/footer.html
@@ -8,7 +8,7 @@
Support
Report issue
- Copyright © 2020 Dewilde Alexandre, Dubois Brieuc and Fischer Nicolas
+ Copyright © 2020 Dewilde Alexandre, Dubois Brieuc and Technicguy Theo