add: credits and license card in settings page

This commit is contained in:
RainyXeon
2024-07-20 12:45:42 +07:00
committed by ThePedroo
parent ec53757c0a
commit 3cc5c64e5e
12 changed files with 141 additions and 8 deletions

View File

@@ -27,6 +27,13 @@
z-index: 10;
}
.link_github {
background: url(../assets_light/github.svg);
width: 50px;
height: 50px;
z-index: 10;
}
/* Light */
#ni_home.light {
background: url(../assets_light/home.svg);
@@ -55,3 +62,10 @@
height: 24px;
z-index: 10;
}
.link_github.light {
background: url(../assets_light/github.svg);
width: 35px;
height: 35px;
z-index: 10;
}

View File

@@ -183,7 +183,7 @@ a {
.button {
padding: 1em 0 1em 0;
border-radius: 30px;
transition: transform 0.15s ease-in-out;
transition: transform 0.1s ease-in-out;
background-color: var(--button);
}
@@ -192,11 +192,10 @@ a {
}
.small_card {
margin-top: 10px;
background: var(--small-card);
border-radius: 15px;
padding: 5px 10px 0 10px;
margin: 0 10px 0 10px;
margin: 15px 15px 0 15px;
padding-bottom: 5px;
}
@@ -346,7 +345,7 @@ input:checked + .slider:before {
/* Show set */
.panel.show {
margin-bottom: 7em;
margin-bottom: 119px;
display: block;
animation: fade-in 0.2s;
}

View File

@@ -90,15 +90,15 @@
<div id="version_info_title" class="dimc" style="font-size: 1.1em">Version</div>
<div class="dimc desc" id="version_code" style="font-size: 0.9em; margin-top: 3px;">Unknown</div>
</div>
<div class="dimc content">
<div class="dimc content" style="margin-top: 4px;">
<div id="root_info_title" class="dimc" style="font-size: 1.1em">Root Implementation</div>
<div class="dimc desc" id="root_impl" style="font-size: 0.9em; margin-top: 3px;">Unknown</div>
</div>
<div id="zygote32" class="dimc">
<div id="zygote32" class="dimc content" style="margin-top: 4px;">
<div class="dimc" style="font-size: 1.1em">Zygote32</div>
<div class="dimc desc" id="zygote32_status" style="font-size: 0.9em; margin-top: 3px;">Unknown</div>
</div>
<div id="zygote64" class="dimc content">
<div id="zygote64" class="dimc" style="margin-top: 4px;">
<div class="dimc" style="font-size: 1.1em">Zygote64</div>
<div class="dimc desc" id="zygote64_status" style="font-size: 0.9em; margin-top: 3px;">Unknown</div>
</div>
@@ -210,6 +210,46 @@
</div>
</div>
</div>
<!-- INFO: Credit card -->
<div class="dim card" style="margin-top: 15px;">
<div class="dimc content">
<div id="mcre_title" class="dimc" style="font-size: 1.1em">Module Developer</div>
<a href="https://github.com/PerformanC" target="_blank">
<div class="dimc desc" style="font-size: 0.9em; margin-top: 3px;">The PerformanC Organization</div>
</a>
</div>
<div class="dimc content" style="margin-top: 6px;">
<div id="omcre_title" class="dimc" style="font-size: 1.1em">Original Module Developer</div>
<div class="dimc" style="font-size: 0.9em; margin-top: 3px; align-items: center; display: flex;">
<a class="dimc desc" href="https://github.com/Dr-TSNG" target="_blank">Nullptr</a>
<div class="dimc desc">,</div>
<a class="dimc desc" style="margin-left: 2px;" href="https://github.com/5ec1cff" target="_blank">5ec1cff</a>
</div>
</div>
<div class="dimc" style="margin-top: 6px;">
<div id="webcre_title" class="dimc" style="font-size: 1.1em">WebUI Developer</div>
<a href="https://github.com/RainyXeon" target="_blank">
<div class="dimc desc" style="font-size: 0.9em; margin-top: 3px;">RainyXeon</div>
</a>
</div>
</div>
<!-- INFO: License card -->
<div class="dim card" style="margin-top: 15px;">
<div class="dimc content">
<div id="mlic_title" class="dimc" style="font-size: 1.1em">Module License</div>
<div class="dimc desc" style="font-size: 0.9em; margin-top: 3px;">GPL (Nullptr), BSD 2-Clause</div>
</div>
<div class="dimc" style="margin-top: 6px;">
<div id="mweb_title" class="dimc" style="font-size: 1.1em">WebUI License</div>
<div class="dimc desc" style="font-size: 0.9em; margin-top: 3px;">BSD 2-Clause</div>
</div>
</div>
</div>
<!-- INFO: Bottom navbar -->

View File

@@ -16,4 +16,12 @@ export function translateSettingsPage(new_translations) {
/* INFO: Change font option */
document.getElementById('sys_errorh_title').innerHTML = new_translations.page.settings.logs.header
document.getElementById('sys_errorh_desc').innerHTML = new_translations.page.settings.logs.description
/* INFO: Credit card */
document.getElementById('mcre_title').innerHTML = new_translations.page.settings.credits.module
document.getElementById('omcre_title').innerHTML = new_translations.page.settings.credits.original
document.getElementById('webcre_title').innerHTML = new_translations.page.settings.credits.web
/* INFO: License card */
document.getElementById('mlic_title').innerHTML = new_translations.page.settings.license.module
document.getElementById('mweb_title').innerHTML = new_translations.page.settings.license.web
}

View File

@@ -65,6 +65,15 @@
"logs": {
"header": "Error History",
"description": "View all of your error log"
},
"credits": {
"module": "Module Developer",
"original": "Original Module Developer",
"web": "WebUI Developer"
},
"license": {
"module": "Module License",
"web": "WebUI License"
}
}
}

View File

@@ -36,7 +36,7 @@
"arch": "アーキテクチャー: "
},
"action": {
"header": "設定",
"header": "Action",
"daemonButton": {
"start": "スタート",
"stop": "ストップ",
@@ -65,6 +65,15 @@
"logs": {
"header": "Error History",
"description": "View all of your error log"
},
"credits": {
"module": "Module Developer",
"original": "Original Module Developer",
"web": "WebUI Developer"
},
"license": {
"module": "Module License",
"web": "WebUI License"
}
}
}

View File

@@ -65,6 +65,15 @@
"logs": {
"header": "Histórico de erros",
"description": "Veja o histórico de erros inteiro"
},
"credits": {
"module": "Module Developer",
"original": "Original Module Developer",
"web": "WebUI Developer"
},
"license": {
"module": "Module License",
"web": "WebUI License"
}
}
}

View File

@@ -65,6 +65,15 @@
"logs": {
"header": "Error History",
"description": "View all of your error log"
},
"credits": {
"module": "Module Developer",
"original": "Original Module Developer",
"web": "WebUI Developer"
},
"license": {
"module": "Module License",
"web": "WebUI License"
}
}
}

View File

@@ -65,6 +65,15 @@
"logs": {
"header": "Error History",
"description": "View all of your error log"
},
"credits": {
"module": "Module Developer",
"original": "Original Module Developer",
"web": "WebUI Developer"
},
"license": {
"module": "Module License",
"web": "WebUI License"
}
}
}

View File

@@ -65,6 +65,15 @@
"logs": {
"header": "Lịch sử lỗi",
"description": "Xem tất cả các lỗi"
},
"credits": {
"module": "Nhà phát triển mô-đun",
"original": "Nhà phát triển mô-đun gốc",
"web": "Nhà phát triển WebUI"
},
"license": {
"module": "Giấy phép bản quyền mô-đun",
"web": "Giấy phép bản quyền WebUI"
}
}
}

View File

@@ -65,6 +65,15 @@
"logs": {
"header": "Error History",
"description": "View all of your error log"
},
"credits": {
"module": "Module Developer",
"original": "Original Module Developer",
"web": "WebUI Developer"
},
"license": {
"module": "Module License",
"web": "WebUI License"
}
}
}

View File

@@ -65,6 +65,15 @@
"logs": {
"header": "Error History",
"description": "View all of your error log"
},
"credits": {
"module": "Module Developer",
"original": "Original Module Developer",
"web": "WebUI Developer"
},
"license": {
"module": "Module License",
"web": "WebUI License"
}
}
}