Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Commit f85733a

Browse files
authored
Merge pull request #22 from CodeWe-projet/Legal
[Legal] - Welcome, ToS and PP updates.
2 parents 2319f1a + 5abb3df commit f85733a

20 files changed

+1129
-277
lines changed

Privacy Policy - CodeWe.docx

-33.6 KB
Binary file not shown.

Terms and Conditions - CodeWe.docx

-52.3 KB
Binary file not shown.

src/publics/css/legal.less

Lines changed: 68 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,70 @@
11
section{
2-
width: 50%;
3-
min-width: 700px;
4-
margin: auto;
5-
color: rgb(193, 187, 177);
6-
line-height: 1.7;
7-
word-wrap: break-word;
8-
text-align: justify;
9-
font-family: helvetica neue,Helvetica,Arial,sans-serif;
10-
font-size: 1.125rem;
11-
12-
h1{
13-
font-size: 2.125rem;
14-
margin-top: 25px;
15-
line-height: 1.4;
16-
}
17-
18-
p{
19-
font-size: 1rem;
20-
margin-bottom: 10px;
21-
}
22-
23-
a{
24-
color: inherit;
25-
text-decoration: none;
26-
transition: color ease-in-out 0.2s;
27-
}
28-
29-
a:hover{
30-
color: #ddd;
31-
}
32-
33-
ul{
34-
margin-left: 20px;
35-
}
2+
width: 50%;
3+
min-width: 700px;
4+
margin: auto;
5+
color: rgb(193, 187, 177);
6+
line-height: 1.7;
7+
word-wrap: break-word;
8+
text-align: justify;
9+
font-family: helvetica neue, Helvetica, Arial, sans-serif;
10+
font-size: 1.125rem;
11+
12+
h1{
13+
font-size: 2.125rem;
14+
margin-top: 25px;
15+
line-height: 1.4;
16+
}
17+
18+
p{
19+
font-size: 1rem;
20+
margin-bottom: 10px;
21+
}
22+
23+
a{
24+
color: inherit;
25+
text-decoration: none;
26+
transition: color ease-in-out 0.2s;
27+
}
28+
29+
a:hover{
30+
color: #ddd;
31+
}
32+
33+
ul{
34+
margin-left: 20px;
35+
}
36+
}
37+
38+
39+
table {
40+
width: 100%
41+
}
42+
43+
td.align-right {
44+
text-align: right;
45+
}
46+
47+
#not-valid {
48+
width: 100%;
49+
background-color: red;
50+
text-align: center;
51+
font-size: 38px;
52+
color: white;
53+
}
54+
#redirect {
55+
width: 100%;
56+
background-color: darkred;
57+
text-align: center;
58+
font-size: 18px;
59+
color: white;
60+
}
61+
62+
#redirect:hover {
63+
background-color: maroon;
64+
transition: 0.2s ease-in-out;
65+
}
66+
67+
div.revision {
68+
border: 1px darkcyan solid;
69+
padding: 5px;
3670
}

src/routes/legal.js

Lines changed: 71 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* @date 16/11/2020
66
* @version 1.0.0
77
* @requires express
8-
*
8+
*
99
*/
1010

11-
/**
11+
/**
1212
* express module
1313
* @const
1414
*/
@@ -29,7 +29,40 @@ const router = express.Router();
2929
* @inner
3030
*/
3131
router.get(['/tos', '/tac', '/termsofservice', '/terms-of-service'], (req, res) => {
32-
res.render('legal/tos.html', {production: config.PRODUCTION, client_versobe: config.CLIENT_VERBOSE});
32+
res.render('legal/tos.html', {
33+
production: config.PRODUCTION,
34+
client_versobe: config.CLIENT_VERBOSE
35+
});
36+
});
37+
38+
/**
39+
* Route serving termsofservice PDF
40+
* @name get/termsofservice
41+
* @function
42+
* @memberof modules:routes/legal
43+
* @inner
44+
*/
45+
router.get(['/tos-pdf', '/tac-pdf', '/termsofservice-pdf', '/terms-of-service-pdf'], (req, res) => {
46+
res.download("./views/legal/tos-pdf.pdf")
47+
});
48+
49+
/**
50+
* Route serving termsofservice archive
51+
* @name get/termsofservice
52+
* @function
53+
* @memberof modules:routes/legal
54+
* @inner
55+
*/
56+
router.get([
57+
'/tos/archive/:date',
58+
'/tac/archive/:date',
59+
'/termsofservice/archive/:date',
60+
'/terms-of-service/archive/:date'
61+
], (req, res) => {
62+
res.render(`legal/archive/tos-${req.params.date}.html`, {
63+
production: config.PRODUCTION,
64+
client_versobe: config.CLIENT_VERBOSE
65+
});
3366
});
3467

3568
/**
@@ -40,7 +73,35 @@ router.get(['/tos', '/tac', '/termsofservice', '/terms-of-service'], (req, res)
4073
* @inner
4174
*/
4275
router.get(['/privacy', '/privacy-policy', '/privacypolicy'], (req, res) => {
43-
res.render('legal/privacy.html', {production: config.PRODUCTION, client_versobe: config.CLIENT_VERBOSE});
76+
res.render('legal/privacy.html', {
77+
production: config.PRODUCTION,
78+
client_versobe: config.CLIENT_VERBOSE
79+
});
80+
});
81+
82+
/**
83+
* Route serving privacy policy PDF
84+
* @name get/privacy
85+
* @function
86+
* @memberof modules:routes/legal
87+
* @inner
88+
*/
89+
router.get(['/privacy-pdf', '/privacy-policy-pdf', '/privacypolicy-pdf'], (req, res) => {
90+
res.download("./views/legal/privacy-pdf.pdf")
91+
});
92+
93+
/**
94+
* Route serving privacy policy archive
95+
* @name get/privacy
96+
* @function
97+
* @memberof modules:routes/legal
98+
* @inner
99+
*/
100+
router.get(['/privacy/archive/:date', '/privacy-policy/archive/:date', '/privacypolicy/archive/:date'], (req, res) => {
101+
res.render(`legal/archive/privacy-${req.params.date}.html`, {
102+
production: config.PRODUCTION,
103+
client_versobe: config.CLIENT_VERBOSE
104+
});
44105
});
45106

46107
/**
@@ -50,8 +111,11 @@ router.get(['/privacy', '/privacy-policy', '/privacypolicy'], (req, res) => {
50111
* @memberof modules:routes/legal
51112
* @inner
52113
*/
53-
router.get('/license', (req, res) => {
54-
res.render('legal/licence.html', {production: config.PRODUCTION, client_versobe: config.CLIENT_VERBOSE});
114+
router.get('/licence', (req, res) => {
115+
res.render('legal/licence.html', {
116+
production: config.PRODUCTION,
117+
client_versobe: config.CLIENT_VERBOSE
118+
});
55119
});
56120

57-
module.exports = router;
121+
module.exports = router;

src/views/component/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a href="#">Support</a>
99
<a href="#report" id="link-report" onclick="l()">Report&#8239issue</a>
1010
</div>
11-
Copyright © 2020 Dewilde Alexandre, Dubois Brieuc and Fischer Nicolas
11+
Copyright © 2020 Dewilde Alexandre, Dubois Brieuc and Technicguy Theo
1212
</div>
1313
<script type="application/javascript">
1414
const l=()=>{document.getElementById('report-issue').style.display="block";document.getElementById('main').classList.add("blur-background");};

src/views/component/welcome.html

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@
22
<div id="welcome-text">
33
<h2>Welcome on CodeWe !</h2>
44
<p class="welcome-content">
5-
CodeWe is a free and <a href="https://github.com/allEyezOnCode/CodeWe">open source</a> project, and
6-
we commit ourselves keeping it that way. That's why no advertising and no advertising cookies are present on the site.
5+
CodeWe is a free and <a href="https://github.com/allEyezOnCode/CodeWe">open-source</a> project, and
6+
we are committed to keeping it this way. There also are no advertisements or advertising cookies on the site.
7+
</p>
8+
<p class="welcome-content">
9+
We are students of Louvain University, Belgium, who decided to create this project because we lacked such a tool in our classes.
10+
As we maintain this project during our free time, we have limited resources and may not be able to keep this project always up-to-date, but do our best to keep a certain quality.
11+
Should any problem arise, don't hesitate to report it and try again later.
12+
To keep CodeWe alive, we kindly ask, for the good of all, to avoid unnecessarily overloading it. We, of course, encourage the use of CodeWe whenever it can help you in any way, but do not abuse it.
13+
</p>
14+
<p class="welcome-content">
15+
By clicking Got it!, you agree to our <a href="/legal/tos">Terms</a>. You can learn how we (don't) collect, use and share your data in our <a href="/legal/privacy">Policy Privacy</a>. Keep in mind that we do not require any personal information!
716
</p>
817
<p class="welcome-content">
9-
We are students of the UCLouvain University. We decided to create this project because we lacked such a tool during our classes.
10-
We maintain this project during our free time and do our best to maintain a certain quality, but we have limited resources.
11-
So, should any problem arise, don't hesitate to try again later and report it. Keeping this objective in mind, we kindly ask,
12-
for the good of all, to avoid unnecessarily overloading this tool. Of course, we encourage the use of our platform if it can help
13-
you in any way, but do not abuse it.
1418
<span class="bold">
15-
Please note that a code not having been viewed for more than 48 hours will be automatically deleted.
19+
Please be aware that documents not having been viewed for more than 48 hours will be deleted.
1620
</span>
1721
</p>
1822
<p class="welcome-content welcome-enjoy">
19-
Enjoy our tools !
23+
Enjoy CodeWe!
2024
</p>
2125
<button id="welcome-button">Got it!</button>
2226
</div>
31.1 KB
Binary file not shown.
55.8 KB
Binary file not shown.

src/views/legal/archive/privacy-20201117.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,14 @@
33
{% block title %}CodeWe{% endblock %}
44

55
{% block head %}
6-
<<<<<<< HEAD:src/views/legal/privacy.html
76
<link rel="stylesheet" type="text/css" href="/css/legal.less">
8-
=======
9-
<link rel="stylesheet" type="text/css" href="/css/legal.less">
10-
>>>>>>> Legal:src/views/legal/archive/privacy-20201117.html
117
{% endblock %}
128

139
{% block corps %}
1410
<section>
1511
<h1>Privacy Policy for CodeWe</h1>
1612
<p id="not-valid">THESE POLICIES ARE NO LONGER VALID!</p>
17-
<a href="/privacy"><p id="redirect">The current and valid version can be found here.</p></a>
13+
<a href="/legal/privacy"><p id="redirect">The current and valid version can be found here.</p></a>
1814
<p>At CodeWe, accessible from https://codewe.bhasher.com, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by CodeWe and how we use it.</p>
1915

2016
<p>If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us.</p>

src/views/legal/archive/privacy-20201120.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h1>Privacy Policy</h1>
2323
</table>
2424

2525
<p id="not-valid">THESE POLICIES ARE NO LONGER VALID!</p>
26-
<a href="/privacy"><p id="redirect">The current and valid version can be found here.</p></a>
26+
<a href="/legal/privacy"><p id="redirect">The current and valid version can be found here.</p></a>
2727

2828
<p>
2929
<i>

0 commit comments

Comments
 (0)