Compare commits

..

No commits in common. "4228a5555d2c09e1ac5960628202cadce1ab8a1a" and "cbc1e88a37d136f1759dae5eff3e598bec104152" have entirely different histories.

5 changed files with 21 additions and 66 deletions

View file

@ -85,19 +85,15 @@ export default class CustomIntroSlider extends React.Component<Props> {
colors: ['#37c13e', '#1a5a1d'], colors: ['#37c13e', '#1a5a1d'],
}, },
]; ];
this.updateSlides = []; this.updateSlides = [
for (let i = 0; i < Update.slidesNumber; i++) {
this.updateSlides.push(
{ {
key: i.toString(), key: '1',
title: Update.getInstance().titleList[i], title: Update.getInstance().title,
text: Update.getInstance().descriptionList[i], text: Update.getInstance().description,
icon: Update.iconList[i], icon: Update.icon,
colors: Update.colorsList[i], colors: ['#e01928', '#be1522'],
}, },
); ];
}
this.aprilFoolsSlides = [ this.aprilFoolsSlides = [
{ {
key: '1', key: '1',

View file

@ -14,38 +14,21 @@ import i18n from "i18n-js";
export default class Update { export default class Update {
// Increment the number to show the update slide // Increment the number to show the update slide
static number = 6; static number = 5;
// Change the number of slides to display // Change the icon to be displayed on the update slide
static slidesNumber = 4; static icon = 'surround-sound-2-0';
// Change the icons to be displayed on the update slide
static iconList = [
'star',
'clock',
'qrcode-scan',
'account',
];
static colorsList = [
['#e01928', '#be1522'],
['#7c33ec', '#5e11d1'],
['#337aec', '#114ed1'],
['#e01928', '#be1522'],
]
static instance: Update | null = null; static instance: Update | null = null;
titleList: Array<string>; title: string;
descriptionList: Array<string>; description: string;
/** /**
* Init translations * Init translations
*/ */
constructor() { constructor() {
this.titleList = []; this.title = i18n.t('intro.updateSlide.title');
this.descriptionList = []; this.description = i18n.t('intro.updateSlide.text');
for (let i = 0; i < Update.slidesNumber; i++) {
this.titleList.push(i18n.t('intro.updateSlide'+ i + '.title'))
this.descriptionList.push(i18n.t('intro.updateSlide'+ i + '.text'))
}
} }
/** /**

View file

@ -23,7 +23,7 @@ type Props = {
const CLUBS_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/Clubs.png"; const CLUBS_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/Clubs.png";
const PROFILE_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/ProfilAmicaliste.png"; const PROFILE_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/ProfilAmicaliste.png";
const VOTE_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/Vote.png"; const VOTE_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/";
const AMICALE_IMAGE = require("../../../assets/amicale.png"); const AMICALE_IMAGE = require("../../../assets/amicale.png");
const PROXIMO_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/Proximo.png" const PROXIMO_IMAGE = "https://etud.insa-toulouse.fr/~amicale_app/images/Proximo.png"

View file

@ -56,21 +56,9 @@
"title": "More to come...", "title": "More to come...",
"text": "New features are coming soon, do not hesitate to give us feedback to improve the app" "text": "New features are coming soon, do not hesitate to give us feedback to improve the app"
}, },
"updateSlide0": { "updateSlide": {
"title": "New in this update!", "title": "New in this update!",
"text": "Faster than ever and easier to use!\nThis update includes lots of changes to improve your experience.\nUse the brand new feedback button on the home screen to talk to the developer!" "text": "The app got a new UI ! Faster, prettier and more modern, we hope you'll love it!"
},
"updateSlide1": {
"title": "Improved Planex!",
"text": "You now have access to new controls, improved display, and you can also mark groups as favorites."
},
"updateSlide2": {
"title": "Scanotron 3000!",
"text": "Say hello to Scanotron 3000!\nAvailable from the Qr-Code button on the home screen, it will help you get information about clubs and events around the campus.\n(Useless right now but we have hope for next year)"
},
"updateSlide3": {
"title": "Amicale Account!",
"text": "You can now connect to your Amicale INSAT account from within the app! See all available clubs and more to come!\nClick on the login button from the home screen."
}, },
"aprilFoolsSlide": { "aprilFoolsSlide": {
"title": "New in this update!", "title": "New in this update!",

View file

@ -56,21 +56,9 @@
"title": "Plus à venir...", "title": "Plus à venir...",
"text": "D'autres fonctionnalités arrivent bientôt, n'hésitez pas à nous donner votre avis pour améliorer l'appli" "text": "D'autres fonctionnalités arrivent bientôt, n'hésitez pas à nous donner votre avis pour améliorer l'appli"
}, },
"updateSlide0": { "updateSlide": {
"title": "Nouveau dans cette mise à jour !", "title": "Nouveau dans cette mise à jour !",
"text": "Plus rapide que jamais et plus simple à utiliser !\nCette mise à jour contient de nombreux changements pour améliorer votre expérience.\nUtilisez le tout nouveau bouton de Feedback pour parler directement au développeur!" "text": "L'appli fait peau neuve ! Avec une interface plus rapide, plus jolie et moderne, nous espérons que vous allez l'apprécier !"
},
"updateSlide1": {
"title": "Planex tout beau !",
"text": "Vous avez maintenant accès à de nouveaux contrôles, un affichage amélioré, et vous pouvez marquer des groupes en favoris."
},
"updateSlide2": {
"title": "Scanotron 3000 !",
"text": "Dites bonjour à Scanotron 3000 !\nDisponible depuis le bouton Qr-Code sur le menu principal, il vous aidera à avoir des informations sur les clubs et les événements du campus.\n(Inutile tout de suite mais on verra l'année pro)"
},
"updateSlide3": {
"title": "Compte Amicale !",
"text": "Vous pouvez maintenant vous connecter à votre compte Amicale depuis l'appli ! Accédez à la liste des clubs et plus à venir !\nCliquez sur le bouton Se Connecter dans le menu principal."
}, },
"aprilFoolsSlide": { "aprilFoolsSlide": {
"title": "Nouveau dans cette mise à jour !", "title": "Nouveau dans cette mise à jour !",