Skip to content

Commit

Permalink
Merge pull request #76 from aic-factcheck/migrate_fe
Browse files Browse the repository at this point in the history
fix tour and improve ux
  • Loading branch information
romanbutora committed Sep 10, 2023
2 parents a32bd08 + a9adafa commit d903274
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
Binary file modified public/pictures/tutorial/add_review_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions src/components/article/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,25 @@ const CreateArticle: React.FC<Props> = ({ articleSubmited, setArticleSubmited, s
{
title: t('add_article_url'),
description: t('add_article_url_desc'),
target: () => ref1.current,
placement: 'bottom',
target: () => null,
nextButtonProps: {
children: t('next'), // Change the text here
},
arrow: false,
},
{
title: t('add_article_submit'),
description: t('add_article_submit_desc'),
target: () => ref2.current,
placement: 'bottom',
target: () => null,
nextButtonProps: {
children: t('finish'), // Change the text here
},
prevButtonProps: {
children: t('previous'), // Change the text here
},
arrow: false,
},
];

Expand Down
7 changes: 6 additions & 1 deletion src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ a.claims:hover {
}

.osx-title-bar {
background-color: #333;
background-color: #c7c7c7;
color: white;
display: flex;
justify-content: space-between;
Expand Down Expand Up @@ -274,3 +274,8 @@ a.claims:hover {
}

}

.ant-tour {
max-width: 100%;
}

2 changes: 1 addition & 1 deletion src/locales/cz/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"thinks_non_verifiable": " si myslí, že je to Neověřitelné",
"my_review": "Moje hodnocení :",
"add_article_url": "Přidejte adresu článku",
"add_article_url_desc": "Po kliknutí na tlačítko vedle se stáhne obsah článku",
"add_article_url_desc": "Zadejte adresu URL článku a kliknutím na tlačítko \"Načíst text z URL\" automaticky vložíte název a text článku",
"add_article_submit": "Přidejte článek",
"add_article_submit_desc": "Článek uvidíte v sekci Články a taky ve svím profilu. Článek můžete i po přidání ve svém profilu editovat",
"show_tour": "Ukázka",
Expand Down
4 changes: 2 additions & 2 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@
"thinks_non_verifiable": " thinks that it is že je to Non verifiable",
"my_review": "My review :",
"add_article_url": "Add article URL address",
"add_article_url_desc": "Click the button on the right and article title and text loads automatically",
"add_article_url_desc": "Paste the article URL and click the \"Load text from URL\" button to automatically insert the article title and text",
"add_article_submit": "Submit article",
"add_article_submit_desc": "After submitting the article, you can find it in Articles section and in your profile. Yo can also edit the article in your profile",
"add_article_submit_desc": "After submitting the article, you can find it in Articles section and in your profile. You can also edit the article in your profile",
"show_tour": "Show tour",
"next": "Next",
"previous": "Previous",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/sk/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"thinks_non_verifiable": " si myslí, že je to Neoveritelné",
"my_review": "Moje hodnotenie :",
"add_article_url": "Pridajte adresu článku",
"add_article_url_desc": "Po kliknutí na tlačítko vedľa sa stiahne obsah článku",
"add_article_url_desc": "Zadajte adresu URL článku a kliknite na tlačidlo \"Načítať text z adresy URL\", čím sa automaticky vloží názov a text článku",
"add_article_submit": "Pridajte článok",
"add_article_submit_desc": "Článok uvidíte v sekcii Články a tiež vo svojom profile. Aj po pridaní môžete na svojom profile článok editovať",
"show_tour": "Ukážka",
Expand Down

0 comments on commit d903274

Please sign in to comment.