Skip to content

Commit

Permalink
Adjust badges info link
Browse files Browse the repository at this point in the history
  • Loading branch information
Sendouc committed Sep 29, 2024
1 parent 7f9c9f2 commit bdb9fd8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions app/features/badges/routes/badges.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SerializeFrom } from "@remix-run/node";
import { Link, NavLink, Outlet, useLoaderData } from "@remix-run/react";
import { NavLink, Outlet, useLoaderData } from "@remix-run/react";
import * as React from "react";
import { useTranslation } from "react-i18next";
import { Badge } from "~/components/Badge";
Expand All @@ -9,7 +9,7 @@ import { Main } from "~/components/Main";
import { SearchIcon } from "~/components/icons/Search";
import { useUser } from "~/features/auth/core/user";
import type { SendouRouteHandle } from "~/utils/remix";
import { BADGES_PAGE, FAQ_PAGE, navIconUrl } from "~/utils/urls";
import { BADGES_DOC_LINK, BADGES_PAGE, navIconUrl } from "~/utils/urls";
import * as BadgeRepository from "../BadgeRepository.server";

import "~/styles/badges.css";
Expand Down Expand Up @@ -97,7 +97,9 @@ export default function BadgesPageLayout() {
</div>
<div className="badges__general-info-texts">
<p>
<Link to={FAQ_PAGE}>{t("forYourEvent")}</Link>
<a href={BADGES_DOC_LINK} target="_blank" rel="noopener noreferrer">
{t("forYourEvent")}
</a>
</p>
</div>
</Main>
Expand Down
3 changes: 3 additions & 0 deletions app/utils/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ const staticAssetsUrl = ({

export const SENDOU_INK_BASE_URL = "https://sendou.ink";

export const BADGES_DOC_LINK =
"https://github.com/Sendouc/sendou.ink/blob/rewrite/docs/badges.md";

const USER_SUBMITTED_IMAGE_ROOT =
"https://sendou.nyc3.cdn.digitaloceanspaces.com";
export const userSubmittedImage = (fileName: string) =>
Expand Down
2 changes: 1 addition & 1 deletion locales/en/faq.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"a1": "Plus Server is a Discord server for high-level players to look for people to play with and against. It was founded in September 2017. Divided into three tiers of which +1 is the highest. You get access when a member of the server suggests you and you pass the monthly voting or you place well enough on the SendouQ leaderboard.\n\nIn the voting you get a percentage based on your result. 0% would mean everyone who participated in the voting downvoted you while 100% would be the opposite. 60% is required to pass the voting. If a member gets a score below 60% they get demoted a tier, or in the case of +3, kicked.\n\nSee the leaderboards page for indicators about who is on track to get access via that method. 60 people in total get access each season - 10 to +1, 20 to +2 and 30 to +3.",

"q2": "How to get a badge prize for my event?",
"a2": "Currently new badges are not made. In the future a new system is planned and it will be possible again.",
"a2": "Since September 2024 badges can be made by anyone with the skills necessary. Check the link at the bottom of the badges page for more information.",

"q3": "How to update my avatar or username?",
"a3": "Updating username or avatar on Discord doesn't right away update them on sendou.ink. To make that happen you have two options:\n\n1) If you are a member of this website's Discord or the Plus Server you can simply wait. There is a routine that runs once a day that handles the updating.\n\n2) To get them to update right away you can use the /update-profile command of the Lohi Discord bot.",
Expand Down

0 comments on commit bdb9fd8

Please sign in to comment.