mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-05-17 19:29:13 +00:00
ℹ️ css based translation on mirror index page
This adds a CSS only language picker for the mirror index page of the repo.
This commit is contained in:
parent
b1748053d4
commit
d0bb53e41a
2 changed files with 36 additions and 11 deletions
|
|
@ -141,3 +141,29 @@ pre.code code {
|
|||
display: table-cell;
|
||||
font-size: 8;
|
||||
}
|
||||
|
||||
/* css based translations
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020 Michael Pöhn <michael.poehn@fsfe.org>
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
.translated {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#radio-en:checked ~ .lang-en {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
#radio-zh:checked ~ .lang-zh {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
#radio-en:checked ~ .u-en {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#radio-zh:checked ~ .u-zh {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,13 +10,16 @@
|
|||
<body>
|
||||
<div id="site-wrapper" class="container">
|
||||
<div class="row">
|
||||
<div class="col-12" lang="en">
|
||||
<input type="radio" name="radio-buttons" id="radio-en" class="d-none" checked>
|
||||
<input type="radio" name="radio-buttons" id="radio-zh" class="d-none">
|
||||
|
||||
<label for="radio-en" class="u-en mx-auto mt-4 order-2" tabindex="0">English</label>
|
||||
<label for="radio-zh" class="u-zh mx-auto mt-4 order-2" tabindex="0">简体中文</label>
|
||||
|
||||
<div class="translated lang-en col-12 order-1">
|
||||
<h1 class="main-heading">mirror of f-droid.org</h1>
|
||||
|
||||
<p>This is a mirror of the <tt>f-droid.org</tt> collection of free software. You can add it to your F-Droid client by clicking on: <a href="?fingerprint=43238D512C1E5EB2D6569F4A3AFBF5523418B82E0A3ED1552770ABB9A9C9CCAB">this link</a></p>
|
||||
|
||||
<p>If you do not already have the F-Droid client app for Android, you can download it directly from <a href="https://f-droid.org">https://f-droid.org</a>.</p>
|
||||
|
||||
<details>
|
||||
<summary><i>Click here if https://f-droid.org is not working</i></summary>
|
||||
<p>https://f-droid.org is the official download location for first time installers, and should always be the first one you try. If you are not able to reach that website, then there are other options. You will need to be very careful that you are using a source that you already trust. Bad actors could try to lead you to other sources with fake and potentially malicious versions of the F-Droid client.</p>
|
||||
|
|
@ -40,15 +43,10 @@
|
|||
</details>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<details class="col-12" lang="zh">
|
||||
<summary>点击此处查看中文</summary>
|
||||
<div class="translated lang-zh col-12 order-1">
|
||||
<h1 class="main-heading">f-droid.org 的镜像</h1>
|
||||
|
||||
<p>这是 <tt>f-droid.org</tt> 免费软件集合的镜像。您可以点击<a href="?fingerprint=43238D512C1E5EB2D6569F4A3AFBF5523418B82E0A3ED1552770ABB9A9C9CCAB">此链接</a>将其添加到您的 F-Droid 客户端。</p>
|
||||
|
||||
如果你尚未安装 F-Droid 客户端,你可以直接从 <a href="https://f-droid.org">https://f-droid.org</a> 下载。
|
||||
<p>如果你尚未安装 F-Droid 客户端,你可以直接从 <a href="https://f-droid.org">https://f-droid.org</a> 下载。</p>
|
||||
<details>
|
||||
<summary>我无法访问 <tt>f-droid.org</tt></summary>
|
||||
<p>对于首次安装的用户,<tt>f-droid.org</tt> 是官方下载地址,也应当始终是你的首选。如果你无法访问此网站,那么下方有其他选项。你将需要格外谨慎,确保使用你信任的来源。恶意行为者可能会将你带到有伪造及潜在恶意的 F-Droid 客户端。</p>
|
||||
|
|
@ -74,6 +72,7 @@
|
|||
</details>
|
||||
</details>
|
||||
</details>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue