Skip to content

Commit

Permalink
fix(#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
tikrack committed Feb 9, 2025
1 parent fc9f7c7 commit ceea2c5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 13 deletions.
19 changes: 6 additions & 13 deletions src/components/auth/LoginSidebar.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";

// eslint-disable-next-line react/prop-types
const LoginSidebar = ({ verify }) => {
const [progress, setProgress] = useState(0);
const [readyLevel2, setReadyLevel2] = useState(false);
const [logoClass, setLogoClass] = useState("");
const [descriptionClass, setDescriptionClass] = useState("");
const { t } = useTranslation();

useEffect(() => {
if (!verify) {
Expand Down Expand Up @@ -103,19 +105,14 @@ const LoginSidebar = ({ verify }) => {
"text-white text-[20px] text-center mt-[50px] font-bold"
}
>
سلام اولین زبان فارسی جهان!
{t("salam")}
</p>
<p
className={
"text-white text-[15px] font-[400] text-justify mt-4 px-7 leading-[1.8]"
}
>
تا حالا با سلام کار کردی؟ میدونی چقدر خفنه؟ شاید بگی اخه به چه
درد من میخوره ولی بزار بهت بگم طراحی؟ نویسنده ای؟ معلمی؟ دانش
اموزی؟ دوست داری یه جایی باشه هرچی خواستی بسازی؟ دوست داری سایت
شخصیتو بسازی؟ یا اصلا برنامه نویسی؟ چی ازین بهتر که بتونی با
زبان مادریت کد بزنی؟ هم سریع تره هم بهتره دیگه! تازه یادگیریش هم
راحت تره.
{t("salamDescription")}
</p>
</>
) : (
Expand All @@ -125,18 +122,14 @@ const LoginSidebar = ({ verify }) => {
"text-white text-[20px] text-center mt-[50px] font-bold"
}
>
اماده ای به یه دنیای جدید سفر کنی؟
{t("salam2")}
</p>
<p
className={
"text-white text-[15px] font-[400] text-center mt-4 px-7 leading-[1.8]"
}
>
سلام یه دنبای جدیده! که هیچکی مثلشو ندیده
<br />
پس چرا زودتر کاراتو نمیکنی؟ وقت وقت مهاجراته ها!
<br />
اما اینبار به سلام نه به ...
{t("salamDescription2")}
</p>
</>
)}
Expand Down
21 changes: 21 additions & 0 deletions src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ const resources = {
familyRequire: "Family Cannot Be Empty",
saved: "Save Successfully.",
codeError: "Your Code Have A Bug.",
salam: "Salam, the first Persian language in the world!",
salamDescription: `Have you ever worked with Salam? Do you know how cool it is? You might say, what does it matter to me, but let me tell you about the design? are you a writer are you a teacher student? Would you like to have a place where you can build anything you want? Do you want to make your own website? Or programming at all? What's better than being able to code in your mother tongue? Faster and better! It is easier to learn.`,
salam2: "Are you ready to travel to a new world?",
salamDescription2: `Hello, a new trace! No one has seen anything like it
<br />
So why don't you do your job sooner? It's time for immigrants!
<br />
But this time to hello, not to...`,
},
},
fa: {
Expand Down Expand Up @@ -64,6 +72,19 @@ const resources = {
familyRequire: "نام خانوادگی نباید خالی باشد.",
saved: "ذخیره شد.",
codeError: "کد دارای خروجی است.",
salam: "سلام اولین زبان فارسی جهان!",
salamDescription: `تا حالا با سلام کار کردی؟ میدونی چقدر خفنه؟ شاید بگی اخه به چه
درد من میخوره ولی بزار بهت بگم طراحی؟ نویسنده ای؟ معلمی؟ دانش
اموزی؟ دوست داری یه جایی باشه هرچی خواستی بسازی؟ دوست داری سایت
شخصیتو بسازی؟ یا اصلا برنامه نویسی؟ چی ازین بهتر که بتونی با
زبان مادریت کد بزنی؟ هم سریع تره هم بهتره دیگه! تازه یادگیریش هم
راحت تره.`,
salam2: "اماده ای به یه دنیای جدید سفر کنی؟",
salamDescription2: `سلام یه دنبای جدیده! که هیچکی مثلشو ندیده
<br />
پس چرا زودتر کاراتو نمیکنی؟ وقت وقت مهاجراته ها!
<br />
اما اینبار به سلام نه به ...`,
},
},
};
Expand Down

0 comments on commit ceea2c5

Please sign in to comment.