Compare commits

...

22 Commits

Author SHA1 Message Date
Vitor Gonçalves 6dbbfba17f
Merge branch 'master' of http://git.vern.cc/vern/website 2023-12-03 15:21:10 -03:00
Skylar "The Cobra" Widulski 55a4436a60
Remove border completely
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 16:13:10 -05:00
Skylar "The Cobra" Widulski 860cf6ab5c
Hopefully fix the frayed edges of the progress bar
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 16:12:16 -05:00
Skylar "The Cobra" Widulski e187919099
Make the progress bar inside round?
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 16:09:27 -05:00
Skylar "The Cobra" Widulski 4df0dd6dbb
Increase border radius
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:38:55 -05:00
Skylar "The Cobra" Widulski 25cc603e9f
More styling
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:38:03 -05:00
Skylar "The Cobra" Widulski f0ac990b88
Remove <p> tag to hopefully bring elements closer
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:36:32 -05:00
Skylar "The Cobra" Widulski 213efd2c13
Styling
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:35:24 -05:00
Skylar "The Cobra" Widulski baa1235d29
Oh I'm silly
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:34:11 -05:00
Skylar "The Cobra" Widulski e061781b83
Even more fixing
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:32:53 -05:00
Skylar "The Cobra" Widulski 84dc48367b
More trying to fix
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:27:43 -05:00
Skylar "The Cobra" Widulski efb1bf180a
Change const to 1000 and do some re-styling
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:22:51 -05:00
Skylar "The Cobra" Widulski 738c6ce41e
Add echo
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:17:53 -05:00
Skylar "The Cobra" Widulski cf934ad6d1
Style <progress>
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:15:16 -05:00
Skylar "The Cobra" Widulski 1223c31ea8
intdiv() takes 2 arguments
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:04:30 -05:00
Skylar "The Cobra" Widulski 3d4b413cbb
I misunderstood the manual
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:02:59 -05:00
Skylar "The Cobra" Widulski 48873926fc
I really dont know php
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:01:50 -05:00
Skylar "The Cobra" Widulski d2b35b30d5
Global variables
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 01:01:00 -05:00
Skylar "The Cobra" Widulski e1c7edf32a
Add semicolons because I forgot them
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 00:56:52 -05:00
Skylar "The Cobra" Widulski 8798ed1132
Initial translations.php creation
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
2023-12-02 00:54:24 -05:00
Vitor Gonçalves 3e58f00774 i missed this in translations pt. 1 2023-12-02 05:22:48 +00:00
Vitor Gonçalves f5817036b0 Merge pull request 'pt-BR translation pt. 2 - okay now i can say it's kinda translated' (#6) from vitorg/vern-web:master into master
Reviewed-on: vern/website#6
2023-12-02 05:19:21 +00:00
2 changed files with 80 additions and 17 deletions

39
en/translations.php Normal file
View File

@ -0,0 +1,39 @@
<!DOCTYPE html>
<!--
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="description" content="Status of ~vern translations">
<link rel="stylesheet" href="//gcdn.vern.cc/vernsite/style.css">
<title>Translations | ~vern</title>
</head>
<body>
<?php
$const = 1000;
$langs = array();
$langs['pt-BR'] = array("Brazilian Portuguese", "Português Brasileiro");
function style($tl) {
global $const;
global $langs;
$sum = shell_exec('cd /var/www/website; echo "$(($(diff 2>/dev/null -y --suppress-common-lines en/ '.$tl.'/ | grep "|" | wc -l)+$(diff 2>/dev/null -y --suppress-common-lines en/ '.$tl.'/ | grep "^Only in en/" | awk '."'".'{print $NF}'."'".' | while read -r line; do wc -l < en/"$line";printf "+"; done)0))"');
$percent = intdiv(($sum * 100), $const);
return "<li>" . $langs[$tl][0] . " (" . $langs[$tl][1] . ", <code>/$tl/</code>)</li>\n$percent% complete<br>\n<progress max=$const value=$sum>$percent%</progress><br>";
}
?>
<!--#include file="nav.php" -->
<div class=h><h1 id=translations>Translations</h1> <a aria-hidden=true href=#translations>#translations</a></div>
<ul>
<?php echo style('pt-BR'); ?>
</ul>
<!--#include file="footer.cgi" -->
</body>
</html>

View File

@ -55,13 +55,13 @@ h3 { font-size:1.1em; }
color:#ff6c6b;
size:75%;
}
.h a[aria-hidden] { display:none; }
.h a[aria-hidden] { display:none; }
pre {
tab-size:4;
background: #20232a;
color: #969ba6;
border: 1px solid lightgrey;
padding: 5px;
border: 1px solid lightgrey;
padding: 5px;
tab-size:4;
}
.red { color:#ff6c6b; }
@ -74,6 +74,30 @@ input[type=submit] {
color: #282c34;
border-radius:10px;
}
progress {
height: 12px;
width: 90%;
border-radius: 7px;
border: 0px solid #282c34;
background-color: #bbc2cf;
color: #ff6c6b;
}
progress::-moz-progress-bar {
color: transparent;
background-color: #ff6c6b;
border-radius: 7px;
}
progress::-webkit-progress-bar {
background-color: #bbc2cf;
}
progress::-webkit-progress-value {
background-color: #ff6c6b;
border-radius: 7px;
}
input[type=checkbox] { color: #282c34; background-color: #bbc2cf; }
ul[userlist] { list-style:none; }
ul[userlist] li[online]::before {
@ -88,23 +112,23 @@ ul[userlist] li[online$=true]::before { color:#98be65; }
textarea { background-color: #282c34; color: #bbc2cf; }
input { background-color: #282c34; color: #bbc2cf; }
#TOC {
border: 1px solid;
position: relative;
border: 1px solid;
position: relative;
}
#TOC:before {
border-bottom: 1px solid;
content: 'Table of Contents';
display: block;
font-weight: bold;
padding: 5px;
position: relative;
border-bottom: 1px solid;
content: 'Table of Contents';
display: block;
font-weight: bold;
padding: 5px;
position: relative;
}
.date {
//color: grey;
display: block;
font-family: monospace;
margin-top: 1em;
overflow: hidden;
white-space: nowrap;
width: 16ch;
display: block;
font-family: monospace;
margin-top: 1em;
overflow: hidden;
white-space: nowrap;
width: 16ch;
}