Skip to content

Commit eaad06a

Browse files
committed
🎄 refactor: refactor code, remove unused libraries, update HTML structure
- Remove unused css - Fix some indents
1 parent cb50a9b commit eaad06a

File tree

2 files changed

+128
-154
lines changed

2 files changed

+128
-154
lines changed

‎templates/profile.html

Lines changed: 74 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
<!--
2-
TODO:
3-
4-
Sometimes the URLs in the links
5-
menu overlay over link name label
6-
-->
7-
81
{% extends 'base.html' %}
92
{% set section = 'members' %}
103
{% block head %}
@@ -13,93 +6,80 @@
136
{% block body %}
147

158
<style>
16-
.avatar.avatar-xl {
17-
height: 5rem;
18-
width: 5rem;
19-
margin-bottom: 15px;
20-
}
21-
.links-column .menu {
22-
border: None;
23-
box-shadow: None;
24-
background: None;
25-
}
26-
.menu-badge,
27-
.url {
28-
cursor: pointer;
29-
}
30-
.info-title {
31-
font-weight: bold;
32-
}
33-
.url,
34-
.info-value {
35-
color: #bcc3ce;
36-
}
37-
.main-cols > .column {
38-
padding: .4rem;
39-
}
40-
.links-column {
41-
/* UGLY FIX - FORCE VERTICAL COLUMN SPACING */
42-
margin-top: .8rem;
43-
}
44-
.extra-info .divider {
45-
margin-top: .7rem;
46-
margin-bottom: .7rem;
47-
}
48-
.container {
49-
margin-top: 8px;
50-
margin-bottom: 50px;
51-
}
52-
53-
.main-card{
54-
/* PANEL OF PICTURE AND BIO */
55-
padding-top: 15px;
56-
}
57-
#bio {
58-
margin-top: 10px;
59-
}
60-
.chip-coordinator {
61-
/* BADGE OF COORDINATORS OF TRANSLATION REPOS */
62-
background-color: gold;
63-
color: black;
64-
}
65-
.chip-member-transl {
66-
/* BADGE OF MEMBERS OF TRANSLATION REPOS */
67-
background-color: skyblue;
68-
color: white;
69-
}
70-
.chip-active {
71-
/* BADGE OF ACTIVE MEMBERS */
72-
background-color: seagreen;
73-
color: white;
74-
}
75-
.chip-retired {
76-
/* BADGE OF RETIRED MEMBERS */
77-
background-color: darkred;
78-
color: white;
79-
}
80-
.avatar-founder {
81-
/* ADD GOLD BORDER TO FOUNDERS PROFILE PICTURE */
82-
border:5px solid gold;
83-
-webkit-border-radius: 500px;
84-
-moz-border-radius: 500px;
85-
background: transparent;
86-
}
87-
.main-cols-container {
88-
/* DIV OF THREE PANELS */
89-
background-color: #e2e8f0;
90-
border-radius: 4px;
91-
padding: 15px;
92-
}
93-
.main-cols-container .panel {
94-
transition: .8s;
95-
background-color: white;
96-
box-shadow: 0 .05rem .2rem rgba(48,55,66,.2);
97-
}
98-
99-
.link-name {
100-
/* SOCIAL LINK NAME */
101-
font-weight: bold;
102-
}
9+
.avatar.avatar-xl{
10+
height:5rem;
11+
width:5rem;
12+
margin-bottom:15px
13+
}
14+
.links-column .menu{
15+
border:None;
16+
box-shadow:None;
17+
background:None
18+
}
19+
.menu-badge,.url{
20+
cursor:pointer
21+
}
22+
.info-title{
23+
font-weight:700
24+
}
25+
.info-value,.url{
26+
color:#bcc3ce
27+
}
28+
.main-cols>.column{
29+
padding:.4rem
30+
}
31+
.links-column{
32+
margin-top:.8rem
33+
}
34+
.extra-info .divider{
35+
margin-top:.7rem;
36+
margin-bottom:.7rem
37+
}
38+
.container{
39+
margin-top:8px;
40+
margin-bottom:50px
41+
}
42+
.main-card{
43+
padding-top:15px
44+
}
45+
#bio{
46+
margin-top:10px
47+
}
48+
.chip-coordinator{
49+
background-color:gold;
50+
color:#000
51+
}
52+
.chip-member-transl{
53+
background-color:#87ceeb;
54+
color:#fff
55+
}
56+
.chip-active{
57+
background-color:#2e8b57;
58+
color:#fff
59+
}
60+
.chip-retired{
61+
background-color:#8b0000;
62+
color:#fff
63+
}
64+
.avatar-founder{
65+
border:5px solid gold;
66+
-webkit-border-radius:500px;
67+
-moz-border-radius:500px;
68+
background:0 0
69+
}
70+
.main-cols-container{
71+
background-color:#e2e8f0;
72+
border-radius:4px;
73+
padding:15px
74+
}
75+
.main-cols-container .panel{
76+
transition:.8s;
77+
background-color:#fff;
78+
box-shadow:0 .05rem .2rem rgba(48,55,66,.2)
79+
}
80+
.link-name{
81+
font-weight:700
82+
}
10383
</style>
10484
<h2 class="text-center titles">User profile</h2>
10585
<div class="container main-cols-container">

‎templates/translations.html

Lines changed: 54 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,60 @@
11
{% extends 'base.html' %}
22
{% set section = 'translations' %}
33
{% block head %}
4-
<title>Translations</title>
4+
<title>Translations</title>
55
{% endblock %}
66
{% block body %}
7-
<style>
8-
#translations .chip {
9-
background: #1691C4;
10-
color: white;
11-
}
12-
</style>
13-
<div id="translations">
14-
<h2 class="text-center titles">Translations</h2>
15-
<h3>Contribute to Flask translation</h3>
16-
<p>
17-
The documentation translation workflow is managed through <a href="https://weblate.org/"><b>Weblate</b></a>, a free, web-based translation platform. Below, you will find the corresponding links for each documentation resource.
18-
</p>
19-
<h3>Recomendations</h3>
20-
<ul>
21-
<li><b>If you use translator</b>
22-
<ul>
23-
<li>
24-
Avoid inserting the entire content of a file into the translator, as this may lead to issues with code snippets, programming language reserved keywords, special ReStructuredText tags, and similar elements. To ensure accurate and reliable translations, it is recommended to process the content incrementally, translating it paragraph by paragraph or header by header.
25-
</li>
26-
</ul>
27-
</li>
28-
<li>
29-
<b>Maintaining the essence</b>
30-
<ul>
31-
<li>
32-
While the translator performs a significant portion of the work, the resulting translation may occasionally fail to accurately convey the intended meaning of the original resource. It is crucial to review and correct these discrepancies to ensure the original message is preserved.
33-
</li>
34-
<li>
35-
Avoid changing the names of functions, classes, variables, methods, or other identifiers in the code, as doing so could potentially cause the code to stop functioning correctly.
36-
</li>
37-
</ul>
38-
</li>
39-
</ul>
40-
<h3>Flask translations</h3>
41-
<table class="table">
42-
<thead>
43-
<tr>
44-
<th>Language</th>
45-
<th>Code</th>
46-
<th>Progress</th>
47-
<th>Source</th>
48-
</tr>
49-
</thead>
50-
<tbody>
51-
{% for lang in translations %}
52-
<tr>
53-
<td>{{ lang.name }}</td>
54-
<td>{{ lang.code }}</td>
55-
<td>{{ lang.translated_percent }}%</td>
56-
<td>
57-
<a target="_blank" href="{{ lang.weblate_url }}" title="Weblate"><i class="fa-solid fa-language" aria-hidden="true"></i></a>
58-
&nbsp;
59-
<a target="_blank" href="{{ lang.docs_url }}" title="Readthedocs"><i class="fa-solid fa-book" aria-hidden="true"></i></a>
60-
</td>
61-
</tr>
62-
{% endfor %}
63-
</tbody>
64-
</table>
65-
</div>
7+
<div id="translations">
8+
<h2 class="text-center titles">Translations</h2>
9+
<h3>Contribute to Flask translation</h3>
10+
<p>
11+
The documentation translation workflow is managed through <a href="https://weblate.org/"><b>Weblate</b></a>, a free, web-based translation platform. Below, you will find the corresponding links for each documentation resource.
12+
</p>
13+
<h3>Recomendations</h3>
14+
<ul>
15+
<li><b>If you use translator</b>
16+
<ul>
17+
<li>
18+
Avoid inserting the entire content of a file into the translator, as this may lead to issues with code snippets, programming language reserved keywords, special ReStructuredText tags, and similar elements. To ensure accurate and reliable translations, it is recommended to process the content incrementally, translating it paragraph by paragraph or header by header.
19+
</li>
20+
</ul>
21+
</li>
22+
<li>
23+
<b>Maintaining the essence</b>
24+
<ul>
25+
<li>
26+
While the translator performs a significant portion of the work, the resulting translation may occasionally fail to accurately convey the intended meaning of the original resource. It is crucial to review and correct these discrepancies to ensure the original message is preserved.
27+
</li>
28+
<li>
29+
Avoid changing the names of functions, classes, variables, methods, or other identifiers in the code, as doing so could potentially cause the code to stop functioning correctly.
30+
</li>
31+
</ul>
32+
</li>
33+
</ul>
34+
<h3>Flask translations</h3>
35+
<table class="table">
36+
<thead>
37+
<tr>
38+
<th scope="col">Language</th>
39+
<th scope="col">Code</th>
40+
<th scope="col">Progress</th>
41+
<th scope="col">Source</th>
42+
</tr>
43+
</thead>
44+
<tbody>
45+
{% for lang in translations %}
46+
<tr>
47+
<td>{{ lang.name }}</td>
48+
<td>{{ lang.code }}</td>
49+
<td>{{ lang.translated_percent }}%</td>
50+
<td>
51+
<a target="_blank" href="{{ lang.weblate_url }}" title="Weblate"><i class="fa-solid fa-language" aria-hidden="true"></i></a>
52+
&nbsp;
53+
<a target="_blank" href="{{ lang.docs_url }}" title="Readthedocs"><i class="fa-solid fa-book" aria-hidden="true"></i></a>
54+
</td>
55+
</tr>
56+
{% endfor %}
57+
</tbody>
58+
</table>
59+
</div>
6660
{% endblock %}

0 commit comments

Comments
 (0)