From 1d82b29d618e38b848e52614845fa4271b889c71 Mon Sep 17 00:00:00 2001
From: Thomas Citharel
Date: Mon, 12 Oct 2020 08:50:51 +0200
Subject: [PATCH] Improve UI on home & register pages
Signed-off-by: Thomas Citharel
---
js/src/i18n/en_US.json | 17 ++++---
js/src/i18n/fr_FR.json | 13 ++++-
js/src/views/About.vue | 2 +-
js/src/views/Home.vue | 89 +++++++++-------------------------
js/src/views/User/Login.vue | 2 +-
js/src/views/User/Register.vue | 32 +++++++-----
6 files changed, 66 insertions(+), 89 deletions(-)
diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json
index 99c424e1..08a09e54 100644
--- a/js/src/i18n/en_US.json
+++ b/js/src/i18n/en_US.json
@@ -66,13 +66,11 @@
"Create a new event": "Create a new event",
"Create a new group": "Create a new group",
"Create a new identity": "Create a new identity",
- "Create and manage several identities from the same account": "Create and manage several identities from the same account",
"Create group": "Create group",
"Create my event": "Create my event",
"Create my group": "Create my group",
"Create my profile": "Create my profile",
"Create token": "Create token",
- "Create, edit or delete events": "Create, edit or delete events",
"Create": "Create",
"Creator": "Creator",
"Current identity has been changed to {identityName} in order to manage this event.": "Current identity has been changed to {identityName} in order to manage this event.",
@@ -134,7 +132,6 @@
"Explore": "Explore",
"Failed to save admin settings": "Failed to save admin settings",
"Featured events": "Featured events",
- "Features": "Features",
"Federation": "Federation",
"Find an address": "Find an address",
"Find an instance": "Find an instance",
@@ -290,7 +287,6 @@
"Redirecting to event…": "Redirecting to event…",
"Region": "Region",
"Register an account on Mobilizon!": "Register an account on Mobilizon!",
- "Register for an event by choosing one of your identities": "Register for an event by choosing one of your identities",
"Register": "Register",
"Registration is allowed, anyone can register.": "Registration is allowed, anyone can register.",
"Registration is closed.": "Registration is closed.",
@@ -578,7 +574,6 @@
"full rules": "full rules",
"instance rules": "instance rules",
"terms of service": "terms of service",
- "Please read the instance's {fullRules}": "Please read the instance's {fullRules}",
"I agree to the {instanceRules} and {termsOfService}": "I agree to the {instanceRules} and {termsOfService}",
"Powered by {mobilizon}. © 2018 - {date} The Mobilizon Contributors - Made with the financial support of {contributors}.": "Powered by {mobilizon}. © 2018 - {date} The Mobilizon Contributors - Made with the financial support of {contributors}.",
"more than 1360 contributors": "more than 1360 contributors",
@@ -727,7 +722,6 @@
"Federated Group Name": "Federated Group Name",
"This is like your federated username ({username}
) for groups. It will allow you to be found on the federation, and is guaranteed to be unique.": "This is like your federated username ({username}
) for groups. It will allow you to be found on the federation, and is guaranteed to be unique.",
"Banner": "Banner",
- "Create or join an group and start organizing with other people": "Create or join an group and start organizing with other people",
"From a birthday party with friends and family to a march for climate change, right now, our gatherings are trapped inside the tech giants’ platforms. How can we organize, how can we click “Attend,” without providing private data to Facebook or locking ourselves inside MeetUp?": "From a birthday party with friends and family to a march for climate change, right now, our gatherings are trapped inside the tech giants’ platforms. How can we organize, how can we click “Attend,” without providing private data to Facebook or locking ourselves inside MeetUp?",
"We want to develop a digital common that everyone can make their own, one which respects privacy and activism by design.": "We want to develop a digital common that everyone can make their own, one which respects privacy and activism by design.",
"We can’t change the world from within Facebook. The tool we dream of, surveillance capitalism corporations won’t develop, as they cannot profit from it. This is an opportunity to build something better, by taking another approach.": "We can’t change the world from within Facebook. The tool we dream of, surveillance capitalism corporations won’t develop, as they cannot profit from it. This is an opportunity to build something better, by taking another approach.",
@@ -798,5 +792,14 @@
"Go to the event page": "Go to the event page",
"Request for participation confirmation sent": "Request for participation confirmation sent",
"Check your inbox (and your junk mail folder).": "Check your inbox (and your junk mail folder).",
- "You may now close this window.": "You may now close this window."
+ "You may now close this window.": "You may now close this window.",
+ "Create an account": "Create an account",
+ "You are not an administrator for this group.": "You are not an administrator for this group.",
+ "Why create an account?": "Why create an account?",
+ "To create and manage your events": "To create and manage your events",
+ "To create and manage multiples identities from a same account": "To create and manage multiples identities from a same account",
+ "To register for an event by choosing one of your identities": "To register for an event by choosing one of your identities",
+ "To create or join an group and start organizing with other people": "To create or join an group and start organizing with other people",
+ "About {instance}": "About {instance}",
+ "Please read the {fullRules} published by {instance}'s administrators.": "Please read the {fullRules} published by {instance}'s administrators."
}
diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json
index 8faf4762..d3f370f7 100644
--- a/js/src/i18n/fr_FR.json
+++ b/js/src/i18n/fr_FR.json
@@ -346,7 +346,7 @@
"Last week": "La semaine dernière",
"Latest posts": "Derniers billets",
"Learn more": "En apprendre plus",
- "Learn more about Mobilizon": "En apprendre plus à propos de Mobilizon",
+ "Learn more about Mobilizon": "En savoir plus sur Mobilizon",
"Leave": "Quitter",
"Leave event": "Annuler ma participation à l'évènement",
"Leave group": "Quitter le groupe",
@@ -841,5 +841,14 @@
"{number} posts": "Aucun billet|Un billet|{number} billets",
"{profile} (by default)": "{profile} (par défault)",
"{title} ({count} todos)": "{title} ({count} todos)",
- "© The OpenStreetMap Contributors": "© Les Contributeur⋅ices OpenStreetMap"
+ "© The OpenStreetMap Contributors": "© Les Contributeur⋅ices OpenStreetMap",
+ "Create an account": "Créer un compte",
+ "You are not an administrator for this group.": "Vous n'êtes pas une administrateur·ice de ce groupe.",
+ "Why create an account?": "Pourquoi se créer un compte ?",
+ "To create and manage your events": "Pour créer et gérer vos évènements",
+ "To create and manage multiples identities from a same account": "Pour pouvoir créer et gérer plusieurs identités avec un même compte",
+ "To register for an event by choosing one of your identities": "Pour s'inscrire à un évènement en choisissant une de vos identités",
+ "To create or join an group and start organizing with other people": "Pour créer ou rejoindre un groupe et commencer à vous organiser avec d'autres personnes",
+ "About {instance}": "À propos de {instance}",
+ "Please read the {fullRules} published by {instance}'s administrators.": "Merci de lire les {fullRules} publiées par les administrateur·ices de {instance}."
}
diff --git a/js/src/views/About.vue b/js/src/views/About.vue
index c7bd7afc..dc16f4e2 100644
--- a/js/src/views/About.vue
+++ b/js/src/views/About.vue
@@ -84,7 +84,7 @@
size="is-large"
tag="router-link"
:to="{ name: RouteName.REGISTER }"
- >{{ $t("Register") }}{{ $t("Create an account") }}
@@ -125,7 +125,6 @@
@@ -399,6 +350,10 @@ main > div > .container {
}
.events-featured {
+ & > h3 {
+ padding-left: 0.75rem;
+ }
+
.columns {
margin: 1rem auto 3rem;
}
diff --git a/js/src/views/User/Login.vue b/js/src/views/User/Login.vue
index 29c189f3..adc44955 100644
--- a/js/src/views/User/Login.vue
+++ b/js/src/views/User/Login.vue
@@ -86,7 +86,7 @@
default_password: credentials.password,
},
}"
- >{{ $t("Register") }}{{ $t("Create an account") }}
diff --git a/js/src/views/User/Register.vue b/js/src/views/User/Register.vue
index b3a83c96..43c7a37f 100644
--- a/js/src/views/User/Register.vue
+++ b/js/src/views/User/Register.vue
@@ -17,14 +17,14 @@
-
{{ $t("Features") }}
+
{{ $t("Why create an account?") }}
- - {{ $t("Create and manage several identities from the same account") }}
- - {{ $t("Create, edit or delete events") }}
- - {{ $t("Register for an event by choosing one of your identities") }}
+ - {{ $t("To create and manage your events") }}
+ - {{ $t("To create and manage multiples identities from a same account") }}
+ - {{ $t("To register for an event by choosing one of your identities") }}
-
- {{ $t("Create or join an group and start organizing with other people") }}
+ {{ $t("To create or join an group and start organizing with other people") }}
@@ -34,12 +34,16 @@
}}
-
{{ $t("About this instance") }}
+
{{ $t("About {instance}", { instance: config.name }) }}
-
+
{{
$t("full rules")
}}
+ {{ config.name }}
@@ -93,25 +97,25 @@
-
+
- {{ $t("Register") }}
+ {{ $t("Create an account") }}
-
+
{{ $t("Didn't receive the instructions?") }}
-
+