1
0
Fork 0

Make transit secret view tiles look better.

This commit is contained in:
Kitteh 2021-05-05 18:03:17 +01:00
parent 3e589db3fe
commit 00780c7e9e

View file

@ -18,7 +18,7 @@ export class TransitViewSecretPage extends Page {
onclick: onclick, onclick: onclick,
children: makeElement({ children: makeElement({
tag: "div", tag: "div",
class: ["uk-tile", "uk-tile-default", "uk-tile-primary", "uk-padding-small"], class: ["uk-padding-small", "uk-background-primary"],
children: [ children: [
makeElement({ makeElement({
tag: "p", tag: "p",
@ -48,29 +48,34 @@ export class TransitViewSecretPage extends Page {
setTitleElement(pageState); setTitleElement(pageState);
setPageContent(makeElement({ setPageContent(makeElement({
tag: "div", tag: "div",
class: ["uk-child-width-1-2", "uk-grid-collapse", "uk-grid-small"], class: ["uk-grid", "uk-child-width-expand@s"],
attributes: { "uk-grid": "" }, attributes: { "uk-grid": "" },
children: [ children: makeElement({
makeElement({ tag: "div",
tag: "div", class: ["uk-list", "uk-width-2-3@s"],
children: [ attributes: { "uk-grid": "" },
this.makeTile( children: [
i18next.t("transit_view_encrypt_text"), makeElement({
i18next.t("transit_view_encrypt_description"), tag: "div",
"lock", children: [
i18next.t("transit_view_encrypt_icon_text"), this.makeTile(
_ => { changePage("TRANSIT_ENCRYPT"); } i18next.t("transit_view_encrypt_text"),
), i18next.t("transit_view_encrypt_description"),
this.makeTile( "lock",
i18next.t("transit_view_decrypt_text"), i18next.t("transit_view_encrypt_icon_text"),
i18next.t("transit_view_decrypt_description"), _ => { changePage("TRANSIT_ENCRYPT"); }
"mail", ),
i18next.t("transit_view_decrypt_icon_text"), this.makeTile(
_ => { changePage("TRANSIT_DECRYPT"); } i18next.t("transit_view_decrypt_text"),
), i18next.t("transit_view_decrypt_description"),
] "mail",
}), i18next.t("transit_view_decrypt_icon_text"),
] _ => { changePage("TRANSIT_DECRYPT"); }
),
]
}),
]
})
})); }));
} }