Skip to content

Commit c8d4207

Browse files
committed
better footer
1 parent 12be7e4 commit c8d4207

File tree

2 files changed

+49
-12
lines changed

2 files changed

+49
-12
lines changed

rust/cryptonote/src/components/layout.rs

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,41 @@ pub fn Layout() -> Element {
4747

4848
Outlet::<Route> {}
4949

50-
footer {
50+
p { "txt": "c",
51+
{crate::i18n::get_translations(language()).copyright}
52+
" 2025 "
53+
a { href: "https://functora.github.io/", "Functora" }
54+
". "
55+
{crate::i18n::get_translations(language()).all_rights_reserved}
56+
" "
57+
{crate::i18n::get_translations(language()).by_continuing}
58+
" "
5159
a {
5260
href: "/license",
5361
onclick: move |evt| {
5462
evt.prevent_default();
5563
nav.push(Route::License {});
5664
},
57-
"{crate::i18n::get_translations(language()).license}"
65+
"{crate::i18n::get_translations(language()).terms_of_service}"
5866
}
59-
" | "
67+
" "
68+
{crate::i18n::get_translations(language()).you_agree}
69+
" "
6070
a {
6171
href: "/privacy",
6272
onclick: move |evt| {
6373
evt.prevent_default();
6474
nav.push(Route::Privacy {});
6575
},
66-
"{crate::i18n::get_translations(language()).privacy}"
76+
"{crate::i18n::get_translations(language()).privacy_policy_and}"
6777
}
78+
". "
79+
{crate::i18n::get_translations(language()).version_label}
80+
" "
81+
{env!("CARGO_PKG_VERSION")}
82+
"."
6883
}
84+
85+
br {}
6986
}
7087
}

rust/cryptonote/src/i18n.rs

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,15 @@ pub struct Translations {
5959
pub home: &'static str,
6060
pub copied: &'static str,
6161
pub copy_button: &'static str,
62-
pub license: &'static str,
6362
pub license_text: &'static str,
64-
pub privacy: &'static str,
6563
pub privacy_text: &'static str,
64+
pub copyright: &'static str,
65+
pub all_rights_reserved: &'static str,
66+
pub by_continuing: &'static str,
67+
pub you_agree: &'static str,
68+
pub terms_of_service: &'static str,
69+
pub privacy_policy_and: &'static str,
70+
pub version_label: &'static str,
6671
}
6772

6873
pub fn get_translations(lang: Language) -> Translations {
@@ -100,15 +105,13 @@ pub fn get_translations(lang: Language) -> Translations {
100105
home: "Home",
101106
copied: "Copied!",
102107
copy_button: "Copy",
103-
license: "License",
104108
license_text: r#"Copyright (c) 2025 Functora
105109
106110
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
107111
108112
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
109113
110114
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."#,
111-
privacy: "Privacy Policy",
112115
privacy_text: r#"Privacy Policy
113116
114117
This privacy policy applies to the app (hereby referred to as “Application”) for mobile devices that was created by Functora (hereby referred to as “Service Provider”) as a Free service. This service is intended for use “AS IS”.
@@ -152,6 +155,13 @@ By using the Application, you are consenting to the processing of your informati
152155
Contact Us
153156
154157
If you have any questions regarding privacy while using the Application, or have questions about the practices, please contact the Service Provider via email at functora@gmail.com."#,
158+
copyright: "©",
159+
all_rights_reserved: "All rights reserved.",
160+
by_continuing: "By continuing to use this software, you agree to the",
161+
you_agree: "and",
162+
terms_of_service: "Terms of Service",
163+
privacy_policy_and: "Privacy Policy",
164+
version_label: "Version",
155165
},
156166
Language::Spanish => Translations {
157167
note: "Nota",
@@ -186,15 +196,13 @@ If you have any questions regarding privacy while using the Application, or have
186196
home: "Inicio",
187197
copied: "¡Copiado!",
188198
copy_button: "Copiar",
189-
license: "Licencia",
190199
license_text: r#"Copyright (c) 2025 Functora
191200
192201
Por la presente se concede permiso, libre de cargos, a cualquier persona que haya obtenido una copia de este software y archivos de documentación asociados (el "Software"), para utilizar el Software sin restricción, incluyendo sin limitación los derechos a usar, copiar, modificar, fusionar, publicar, distribuir, sublicenciar y/o vender copias del Software, y a permitir a las personas a las que se les proporcione el Software que hagan lo mismo, sujeto a las siguientes condiciones:
193202
194203
El aviso de copyright anterior y este aviso de permiso deberán incluirse en todas las copias o partes sustanciales del Software.
195204
196205
EL SOFTWARE SE PROPORCIONA "TAL CUAL", SIN GARANTÍA DE NINGÚN TIPO, EXPRESA O IMPLÍCITA, INCLUYENDO PERO NO LIMITADO A LAS GARANTÍAS DE COMERCIABILIDAD, IDONEIDAD PARA UN FIN PARTICULAR Y NO INFRACCIÓN. EN NINGÚN CASO LOS AUTORES O TITULARES DEL COPYRIGHT SERÁN RESPONSABLES DE NINGUNA RECLAMACIÓN, DAÑOS O OTRAS RESPONSABILIDADES, YA SEA EN UNA ACCIÓN DE CONTRATO, AGRAVIO O DE OTRO TIPO, QUE SURJA DE, O EN RELACIÓN CON EL SOFTWARE O EL USO U OTROS TRATOS EN EL SOFTWARE."#,
197-
privacy: "Política de Privacidad",
198206
privacy_text: r#"Política de Privacidad
199207
200208
Esta política de privacidad se aplica a la aplicación (en adelante, "Aplicación") para dispositivos móviles creada por Functora (en adelante, "Proveedor de Servicios") como un servicio gratuito. Este servicio está destinado a su uso "TAL CUAL".
@@ -238,6 +246,13 @@ Al usar la Aplicación, das tu consentimiento al procesamiento de tu informació
238246
Contáctanos
239247
240248
Si tienes alguna pregunta sobre la privacidad al usar la Aplicación, o tienes preguntas sobre las prácticas, comunícate con el Proveedor de Servicios por correo electrónico a functora@gmail.com."#,
249+
copyright: "©",
250+
all_rights_reserved: "Todos los derechos reservados.",
251+
by_continuing: "Al continuar usando este software, aceptas los",
252+
you_agree: "y la",
253+
terms_of_service: "Términos de Servicio",
254+
privacy_policy_and: "Política de Privacidad",
255+
version_label: "Versión",
241256
},
242257
Language::Russian => Translations {
243258
note: "Заметка",
@@ -272,15 +287,13 @@ Si tienes alguna pregunta sobre la privacidad al usar la Aplicación, o tienes p
272287
home: "Главная",
273288
copied: "Скопировано!",
274289
copy_button: "Копировать",
275-
license: "Лицензия",
276290
license_text: r#"Copyright (c) 2025 Functora
277291
278292
Настоящим предоставляется бесплатное разрешение любому лицу, получившему копию данного программного обеспечения и сопутствующих файлов документации (далее — «Программное обеспечение»), использовать Программное обеспечение без ограничений, включая неограниченное право использовать, копировать, изменять, объединять, публиковать, распространять, сублицензировать и/или продавать копии Программного обеспечения, а также разрешать лицам, которым предоставлено Программное обеспечение, делать то же самое, при соблюдении следующих условий:
279293
280294
Указанное выше уведомление об авторских правах и данное уведомление о разрешении должны быть включены во все копии или существенные части Программного обеспечения.
281295
282296
ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ «КАК ЕСТЬ», БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ, ЯВНО ВЫРАЖЕННЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ, ВКЛЮЧАЯ, НО НЕ ОГРАНИЧИВАЯСЬ ГАРАНТИЯМИ ТОВАРНОГО СОСТОЯНИЯ, ПРИГОДНОСТИ ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ И ОТСУТСТВИЯ НАРУШЕНИЙ АВТОРСКИХ ПРАВ. НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ АВТОРЫ ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО ЛЮБЫМ ПРЕТЕНЗИЯМ, ЗА УБЫТКИ ИЛИ ДРУГИЕ ТРЕБОВАНИЯ, ВЫТЕКАЮЩИЕ ИЗ ДОГОВОРА, ДЕЛИКТА ИЛИ ИНЫХ ОБСТОЯТЕЛЬСТВ, СВЯЗАННЫЕ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ, ЕГО ИСПОЛЬЗОВАНИЕМ ИЛИ ДРУГИМИ ДЕЙСТВИЯМИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ."#,
283-
privacy: "Политика конфиденциальности",
284297
privacy_text: r#"Политика конфиденциальности
285298
286299
Эта политика конфиденциальности применяется к приложению (далее именуемому «Приложение») для мобильных устройств, созданному Functora (далее именуемому «Поставщик услуг») в качестве бесплатной услуги. Эта услуга предназначена для использования «КАК ЕСТЬ».
@@ -324,6 +337,13 @@ Si tienes alguna pregunta sobre la privacidad al usar la Aplicación, o tienes p
324337
Свяжитесь с нами
325338
326339
Если у вас есть какие-либо вопросы относительно конфиденциальности при использовании Приложения или вопросы о практике, свяжитесь с Поставщиком услуг по электронной почте functora@gmail.com."#,
340+
copyright: "©",
341+
all_rights_reserved: "Все права защищены.",
342+
by_continuing: "Продолжая использовать это программное обеспечение, вы соглашаетесь с",
343+
you_agree: "и",
344+
terms_of_service: "Условиями обслуживания",
345+
privacy_policy_and: "Политикой конфиденциальности",
346+
version_label: "Версия",
327347
},
328348
}
329349
}

0 commit comments

Comments
 (0)