diff --git a/src/locales/en.json b/src/locales/en.json index 42d275e..f953a6c 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -24,7 +24,8 @@ "proxy": "Proxy", "tab": "Tab", "custom": "Customization", - "misc": "Misc" + "misc": "Misc", + "credits": "Credits" }, "proxy": { "title": "Proxy", @@ -56,10 +57,22 @@ "subtitle": "Enter the URL of your bare server", "select": "Select" }, + "wisp": { + "title": "Wisp Server", + "subtitle": "Enter the url of a Wisp server", + "select": "Select" + }, + "transport": { + "title": "Transport", + "desc": "Select the transport to use" + }, "theme": { "title": "Theme", "subtitle": "Choose a theme so your eyes don't hate us", - "select": "Select" + "select": "Select", + "particles": "Particles", + "particlesDesc": "Choose a particles wallpaper", + "particlesNone": "None" }, "httpProxy": { "title": "(Advanced) HTTP Proxy", @@ -118,5 +131,10 @@ "q": "Nebula is slow.", "a": "You might be connected to the wrong server. Check the bare server you are connected to and make sure its the country you're closest to." } + }, + "credits": { + "devs": "Site Developers", + "jpTranslators": "Japanese Translators", + "esTranslators": "Spanish Translators" } } diff --git a/src/locales/es.json b/src/locales/es.json index 68f5468..6f7493b 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -24,7 +24,8 @@ "proxy": "Proxy", "tab": "Pestaña", "custom": "Personalización", - "misc": "Misc" + "misc": "Misc", + "credits": "Créditos" }, "proxy": { "title": "Proxy", @@ -56,9 +57,21 @@ "subtitle": "Pon tu url de tu bare server", "select": "Seleccionar" }, + "wisp": { + "title": "Servidor Wisp", + "subtitle": "Introduzca la URL de un servidor Wisp", + "select": "Seleccionar" + }, + "transport": { + "title": "Transporte", + "desc": "Seleccione el transporte que desea utilizar" + }, "theme": { "title": "Mirar", - "subtitle": "Elige una mirada para que tus ojos no nos odienn" + "subtitle": "Elige una mirada para que tus ojos no nos odienn", + "particles": "Partículas", + "particlesDesc": "Elige un fondo de pantalla de partículas", + "particlesNone": "Ninguna" }, "httpProxy": { "title": "Proxy HTTP (avanzado)", @@ -117,5 +130,10 @@ "q": "Nebula es lento.", "a": "Es posible que estés conectado al servidor incorrecto. Verifica el servidor bare al que estás conectado y asegúrate de que sea el país más cercano a ti." } + }, + "credits": { + "devs": "Desarrolladores del sitio", + "jpTranslators": "Traductores de japonés", + "esTranslators": "Traductores de español" } } diff --git a/src/locales/ja.json b/src/locales/ja.json index 6a362f3..d725e6b 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -24,7 +24,8 @@ "proxy": "プロキシ", "tab": "タブ", "custom": "カスタマイズ", - "misc": "その他" + "misc": "その他", + "credits": "クレジット" }, "proxy": { "title": "プロキシ", @@ -56,9 +57,21 @@ "subtitle": "Bare サーバー URL を入力してください", "select": "選択する" }, + "wisp": { + "title": "Wisp サーバ", + "subtitle": "Wisp サーバの URL を入力してください", + "select": "選択" + }, + "transport": { + "title": "輸送", + "desc": "使用するトランスポートを選択します" + }, "theme": { "title": "テーマ", - "subtitle": "目が嫌いにならないようにテーマを選んでください" + "subtitle": "目が嫌いにならないようにテーマを選んでください", + "particles": "粒子", + "particlesDesc": "粒子の壁紙を選択してください", + "particlesNone": "なし" }, "httpProxy": { "title": "(高度な) HTTPプロキシ", @@ -117,5 +130,10 @@ "q": "ネビュラが遅いです。", "a": "間違ったサーバーに接続している可能性があります。接続しているベアサーバーを確認し、最も近い国であることを確認してください。" } + }, + "credits": { + "devs": "サイト開発者", + "jpTranslators": "日本語翻訳者", + "esTranslators": "スペイン語翻訳者" } } diff --git a/src/pages/Settings/Credits.tsx b/src/pages/Settings/Credits.tsx new file mode 100644 index 0000000..175a5d0 --- /dev/null +++ b/src/pages/Settings/Credits.tsx @@ -0,0 +1,99 @@ +import { motion } from "framer-motion"; +import { tabContentVariant, settingsPageVariant } from "./Variants"; +import Dropdown from "./Dropdown"; +import { useTranslation } from "react-i18next"; +import { PersonCard } from "./PersonCard"; + +export const Credits = ({ id, active }) => { + const { t } = useTranslation(); + + return ( + + +
+
+

{t("credits.devs")}

+
+ + + + + +
+

{t("credits.jpTranslators")}

+
+ + +
+

{t("credits.esTranslators")}

+
+ + +
+ +

Ultraviolet

+
+ +

Rammerhead

+
+ +

Dynamic

+
+ +

epoxy-tls

+
+ +

libcurl.js

+
+
+
+
+
+ ); +}; diff --git a/src/pages/Settings/Customization.tsx b/src/pages/Settings/Customization.tsx index 49acb14..feffc73 100644 --- a/src/pages/Settings/Customization.tsx +++ b/src/pages/Settings/Customization.tsx @@ -16,7 +16,7 @@ function Customization({ id, active }) { ]; const particles = [ - { id: "none", label: "None" }, + { id: "none", label: t("settings.theme.particlesNone") }, { id: "/crismas.json", label: t("themes.crismas") } ]; @@ -44,10 +44,10 @@ function Customization({ id, active }) {
- Particles + {t("settings.theme.particles")}
- Choose a particles wallpaper. + {t("settings.theme.particlesDesc")}
diff --git a/src/pages/Settings/PersonCard.tsx b/src/pages/Settings/PersonCard.tsx new file mode 100644 index 0000000..5b4077f --- /dev/null +++ b/src/pages/Settings/PersonCard.tsx @@ -0,0 +1,18 @@ +interface props { + name: string; + url: string; + profile: string; +} + +export const PersonCard = (props) => { + return ( +
+

+ + + {props.name} + +

+
+ ); +}; diff --git a/src/pages/Settings/Proxy.tsx b/src/pages/Settings/Proxy.tsx index 2dedd2d..cddd44a 100644 --- a/src/pages/Settings/Proxy.tsx +++ b/src/pages/Settings/Proxy.tsx @@ -123,20 +123,20 @@ const Proxy = ({ id, active }) => { {transport !== "bare" && (
- Wisp Server + {t("settings.wisp.title")}
- Enter the url of a Wisp server + {t("settings.wisp.subtitle")}
)}
- Transport + {t("settings.transport.title")}
- Select the transport to use + {t("settings.transport.desc")}
- Select + {t("settings.wisp.select")}
diff --git a/src/pages/Settings/styles.css b/src/pages/Settings/styles.css index 2a8a6fb..793b83f 100644 --- a/src/pages/Settings/styles.css +++ b/src/pages/Settings/styles.css @@ -89,7 +89,7 @@ img { padding: 16px; display: flex; align-items: center; - font-size: 20px; + font-size: 14px; overflow: hidden; position: relative; } diff --git a/src/pages/Settings/tabs.tsx b/src/pages/Settings/tabs.tsx index 617ab52..57d3828 100644 --- a/src/pages/Settings/tabs.tsx +++ b/src/pages/Settings/tabs.tsx @@ -7,6 +7,8 @@ import { GoBrowser } from "react-icons/go"; import { AiOutlineLaptop } from "react-icons/ai"; import { FaPalette } from "react-icons/fa"; import { FaGear } from "react-icons/fa6"; +import { IoMdPerson } from "react-icons/io"; +import { Credits } from "./Credits"; const tabs = [ { @@ -36,6 +38,13 @@ const tabs = [ icon: , color: "#f56868", content: Misc + }, + { + title: "settings.tabs.credits", + id: "credits", + icon: , + color: "#fefefe", + content: Credits } ];