Skip to content

Commit

Permalink
Front: Add Links to Github + doc in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthi-chaud committed Jul 26, 2024
1 parent 9cd7d1e commit bb7d549
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
35 changes: 35 additions & 0 deletions front/src/components/settings/user-settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import { Language, Languages, persistLanguage } from "../../i18n/i18n";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { useLocalStorage } from "usehooks-ts";
import Link from "next/link";
import { Book1, Star, Warning2 } from "iconsax-react";

const SettingGroupStyle = {
paddingTop: 1,
Expand All @@ -35,6 +37,9 @@ const InputContainerStyle = {
display: "flex",
} as const;

const RepositoryUrl = "https://github.com/Arthi-chaud/meelo";
const LinkIconStyle = { marginBottom: -5, marginRight: 5 };

const UserSettings = () => {
const { t, i18n } = useTranslation();
const colorScheme = useColorScheme();
Expand Down Expand Up @@ -153,6 +158,36 @@ const UserSettings = () => {
/>
</Grid>
</Grid>
<SectionHeader heading={t("project")} />
<p>
<Star style={LinkIconStyle} />
{t("enjoyingTheProject")}{" "}
<Link
style={{ textDecoration: "underline" }}
href={RepositoryUrl}
>
{t("starOnGithub")}
</Link>
</p>
<p>
<Warning2 style={LinkIconStyle} />
{t("encounteredABug")}{" "}
<Link
style={{ textDecoration: "underline" }}
href={`${RepositoryUrl}/issues`}
>
{t("openAnIssue")}
</Link>
</p>
<p>
<Book1 style={LinkIconStyle} />
<Link
style={{ textDecoration: "underline" }}
href="https://arthi-chaud.github.io/Meelo"
>
{t("readTheDoc")}
</Link>
</p>
</NoSsr>
);
};
Expand Down
6 changes: 6 additions & 0 deletions front/src/i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,16 @@
"useSystemeTheme": "Use System Theme",
"useDarkTheme": "Use Dark Theme",
"language": "Language",
"project": "Project",
"useSystemeLanguage": "Use System Language",
"notifications": "Notifications",
"permissions": "Permissions",
"notifyOnTrackChange": "Notify On Track Change",
"enjoyingTheProject": "Enjoying the project?",
"starOnGithub": "Star Meelo on GitHub!",
"encounteredABug": "You encountered a bug?",
"openAnIssue": "Open an issue on GitHub!",
"readTheDoc": "Read the user documentation",

"en": "English",
"fr": "French",
Expand Down
6 changes: 6 additions & 0 deletions front/src/i18n/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,16 @@
"useSystemeTheme": "Utiliser le thème système",
"useDarkTheme": "Utiliser le mode sombre",
"language": "Langue",
"project": "Projet",
"useSystemeLanguage": "Utiliser la langue du système",
"notifications": "Notifications",
"permissions": "Permissions",
"notifyOnTrackChange": "Notifier quand le morceau change",
"enjoyingTheProject": "Vous aimez le projet?",
"starOnGithub": "Donner une étoile à Meelo sur GitHub!",
"encounteredABug": "Vous avez rencontré un problème?",
"openAnIssue": "Ouvrir une issue sur GitHub!",
"readTheDoc": "Accéder à la documentation utilisateur",

"en": "Anglais",
"fr": "Français",
Expand Down

0 comments on commit bb7d549

Please sign in to comment.