Skip to content

Extracting state logic into a reducer (100% finished) #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
ff1cb8a
translate title (0% finished)
habibium Oct 29, 2023
51661f0
translate intro (0% finished)
habibium Oct 29, 2023
88d1fce
feat: :sparkles: translate YouWillLearn (0% finished)
habibium Oct 31, 2023
add0eea
feat: :sparkles: Translated part of 1st section (0% finished)
habibium Nov 1, 2023
2b96ef2
feat: :sparkles: Finished 6%
habibium Nov 3, 2023
dcc87cf
feat: :sparkles: Finished 14%
habibium Nov 4, 2023
4580fc6
feat: :sparkles: Finished 17%
habibium Nov 5, 2023
6c5db97
feat: :sparkles: Finished 24%
habibium Nov 14, 2023
a430723
feat: :sparkles: Finished 27%
habibium Jan 13, 2024
223310e
feat: :sparkles: Finished 35%
habibium Jan 13, 2024
84a312c
feat: :sparkles: Finished 48%
habibium Jan 14, 2024
2287825
feat: :sparkles: Finished 54%
habibium Jan 16, 2024
73486dd
feat: :sparkles: Finished 67%
habibium Jan 18, 2024
b15f2df
feat: ✨ Finished 70%
habibium Jan 31, 2024
390c46e
feat: :sparkles: Finished 72%
habibium Feb 1, 2024
13758fb
feat: :sparkles: Finished 73%
habibium Feb 2, 2024
749171d
feat: ✨ Finished 77%
habibium Jul 11, 2024
0331216
feat: ✨ Translated 83%
habibium Jul 11, 2024
33999e6
feat: ✨ Translated 85%
habibium Jul 11, 2024
46550d3
feat: ✨ Translate challenge 1 of 4
habibium Jul 12, 2024
a38349c
feat: ✨ Translate challenge 2 of 4 (partial)
habibium Jul 12, 2024
49e88b0
feat: ✨ Translate challenge 2 of 4 (partial)
habibium Jul 12, 2024
f1510dd
feat: ✨ Translated Challenge 2 of 4 (partial)
habibium Jul 15, 2024
7a25576
feat: ✨ Translated Challenge 2 of 4
habibium Jul 15, 2024
53b068f
feat: ✨ Translate Challenge 3 of 4 (1st paragraph)
habibium Jul 15, 2024
702ead0
feat: ✨ Translate Challenge 3 of 4 (2nd paragraph)
habibium Jul 15, 2024
c272431
feat: ✨ Translate Challenge 3 of 4 (3rd paragraph)
habibium Jul 15, 2024
1d0d10e
feat: ✨ Translate Challenge 3 of 4 (hint)
habibium Jul 15, 2024
5008d6c
feat: ✨ Translate Challenge 3 of 4
habibium Jul 16, 2024
b71edb6
feat: ✨ Translate Challenge 4 of 4 (question)
habibium Jul 16, 2024
ab74ab4
feat: ✨ Translate Challenge 4 of 4 (hint)
habibium Jul 16, 2024
31f7592
feat: ✨ Translate 100% (Challenge 4 of 4)
habibium Jul 16, 2024
826fb5c
fix: ✨ update colons
habibium Jul 16, 2024
c0f49e3
feat: ✨ Translate Challenge component
habibium Jul 16, 2024
86fa226
feat: ✨ Translate Challenges component
habibium Jul 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions src/components/MDX/Challenges/Challenge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function Challenge({
className="text-xl text-primary dark:text-primary-dark mb-2 mt-0 font-medium"
id={currentChallenge.id}>
<div className="font-bold block md:inline">
{isRecipes ? 'Example' : 'Challenge'} {currentChallenge.order} of{' '}
{isRecipes ? 'উদাহরণ' : 'চ্যালেঞ্জ'} {currentChallenge.order} /{' '}
{totalChallenges}
<span className="text-primary dark:text-primary-dark">: </span>
</div>
Expand All @@ -63,14 +63,14 @@ export function Challenge({
<div>
<Button className="me-2" onClick={toggleHint} active={showHint}>
<IconHint className="me-1.5" />{' '}
{showHint ? 'Hide hint' : 'Show hint'}
{showHint ? 'হিন্ট লুকান' : 'হিন্ট দেখুন'}
</Button>
<Button
className="me-2"
onClick={toggleSolution}
active={showSolution}>
<IconSolution className="me-1.5" />{' '}
{showSolution ? 'Hide solution' : 'Show solution'}
{showSolution ? 'সমাধান লুকান' : 'সমাধান দেখুন'}
</Button>
</div>
) : (
Expand All @@ -80,7 +80,7 @@ export function Challenge({
onClick={toggleSolution}
active={showSolution}>
<IconSolution className="me-1.5" />{' '}
{showSolution ? 'Hide solution' : 'Show solution'}
{showSolution ? 'সমাধান লুকান' : 'সমাধান দেখুন'}
</Button>
)
)}
Expand All @@ -94,7 +94,7 @@ export function Challenge({
)}
onClick={handleClickNextChallenge}
active>
Next {isRecipes ? 'Example' : 'Challenge'}
পরবর্তী {isRecipes ? 'উদাহরণ' : 'চ্যালেঞ্জ'}
<IconArrowSmall displayDirection="end" className="block ms-1.5" />
</Button>
)}
Expand All @@ -104,21 +104,19 @@ export function Challenge({
{showSolution && (
<div className="mt-6">
<h3 className="text-2xl font-bold text-primary dark:text-primary-dark">
Solution
সমাধান
</h3>
{currentChallenge.solution}
<div className="flex justify-between items-center mt-4">
<Button onClick={() => setShowSolution(false)}>
Close solution
</Button>
<Button onClick={() => setShowSolution(false)}>সমাধান লুকান</Button>
{hasNextChallenge && (
<Button
className={cn(
isRecipes ? 'bg-purple-50' : 'bg-link dark:bg-link-dark'
)}
onClick={handleClickNextChallenge}
active>
Next Challenge
পরবর্তী চ্যালেঞ্জ
<IconArrowSmall
displayDirection="end"
className="block ms-1.5"
Expand Down
4 changes: 3 additions & 1 deletion src/components/MDX/Challenges/Challenges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export function Challenges({
children,
isRecipes,
noTitle,
titleText = isRecipes ? 'Try out some examples' : 'Try out some challenges',
titleText = isRecipes
? 'কিছু উদাহরণ চর্চা করুন'
: 'কিছু চ্যালেঞ্জ চর্চা করুন',
titleId = isRecipes ? 'examples' : 'challenges',
}: ChallengesProps) {
const challenges = parseChallengeContents(children);
Expand Down
Loading
Loading