Skip to content

Commit

Permalink
fix(curriculum): Update description for Step 1 of the Luhn Algorithm …
Browse files Browse the repository at this point in the history
…project (freeCodeCamp#54733)
  • Loading branch information
MohamedRahimm committed May 15, 2024
2 parents 4b4f9ad + 98e5ac1 commit 64b161c
Show file tree
Hide file tree
Showing 222 changed files with 4,734 additions and 1,043 deletions.
7 changes: 7 additions & 0 deletions client/i18n/locales/english/intro.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,13 @@
"In this mini project, you will get to review JavaScript fundamentals like functions, variables, conditionals and more by building a gradebook app.",
"This will give you an opportunity to solve small problems and get a better understanding of the basics."
]
},
"review-dom-manipulation-by-building-a-rock-paper-scissors-game": {
"title": "Review DOM Manipulation by Building a Rock, Paper, Scissors Game",
"intro": [
"In the previous projects you learned how to work with basic DOM manipulation. Now it is time to review what you have learned by building a Rock, Paper, Scissors game.",
"In this mini project, you will review conditionals, functions, <code>getElementById</code>, and more. This project will give you an opportunity to solve small problems and get a better understanding of the basics."
]
}
}
},
Expand Down
6 changes: 4 additions & 2 deletions client/i18n/locales/english/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@
"update-email": "Update my Email",
"verify-email": "Verify Email",
"submit-and-go": "Submit and go to next challenge",
"submit-and-go-2": "Submit and go to next challenge (Ctrl + Enter)",
"submit-and-go-3": "Submit and go to next challenge (Command + Enter)",
"go-to-next": "Go to next challenge",
"go-to-next-2": "Go to next challenge (Ctrl + Enter)",
"go-to-next-3": "Go to next challenge (Command + Enter)",
"ask-later": "Ask me later",
"start-coding": "Start coding!",
"go-to-settings": "Go to settings to claim your certification",
Expand Down Expand Up @@ -293,8 +297,6 @@
}
},
"profile": {
"you-not-public": "You have not made your portfolio public.",
"username-not-public": "{{username}} has not made their portfolio public.",
"you-change-privacy": "You need to change your privacy setting in order for your portfolio to be seen by others. This is a preview of how your portfolio will look when made public.",
"username-change-privacy": "{{username}} needs to change their privacy setting in order for you to view their portfolio.",
"supporter": "Supporter",
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/profile/components/camper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function Camper({
</div>
{(isDonating || isTopContributor) && (
<FullWidthRow>
<h2 className='text-center'>{t('profile.badges')}</h2>
<h2>{t('profile.badges')}</h2>
<div className='badge-card-container'>
{isDonating && (
<div className='badge-card'>
Expand Down
14 changes: 5 additions & 9 deletions client/src/components/profile/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Helmet from 'react-helmet';
import type { TFunction } from 'i18next';
import { useTranslation } from 'react-i18next';

import { Container, Row } from '@freecodecamp/ui';
import { Alert, Container, Row } from '@freecodecamp/ui';
import { FullWidthRow, Link, Spacer } from '../helpers';
import { User } from './../../redux/prop-types';
import Timeline from './components/time-line';
Expand All @@ -26,8 +26,7 @@ interface MessageProps {
const UserMessage = ({ t }: Pick<MessageProps, 't'>) => {
return (
<FullWidthRow>
<h2 className='text-center'>{t('profile.you-not-public')}</h2>
<p className='alert alert-info'>{t('profile.you-change-privacy')}</p>
<Alert variant='info'>{t('profile.you-change-privacy')}</Alert>
<Spacer size='medium' />
</FullWidthRow>
);
Expand All @@ -39,12 +38,9 @@ const VisitorMessage = ({
}: Omit<MessageProps, 'isSessionUser'>) => {
return (
<FullWidthRow>
<h2 className='text-center' style={{ overflowWrap: 'break-word' }}>
{t('profile.username-not-public', { username: username })}
</h2>
<p className='alert alert-info'>
{t('profile.username-change-privacy', { username: username })}
</p>
<Alert variant='info'>
{t('profile.username-change-privacy', { username })}
</Alert>
<Spacer size='medium' />
</FullWidthRow>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Introduction to the Review DOM Manipulation by Building a Rock, Paper, Scissors Game
block: review-dom-manipulation-by-building-a-rock-paper-scissors-game
superBlock: javascript-algorithms-and-data-structures-v8
---

## Introduction to the Review DOM Manipulation by Building a Rock, Paper, Scissors Game

This is a test for the new project-based curriculum.
26 changes: 21 additions & 5 deletions client/src/templates/Challenges/components/completion-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
import Progress from '../../../components/Progress';
import GreenPass from '../../../assets/icons/green-pass';
import { Spacer } from '../../../components/helpers';

import { MAX_MOBILE_WIDTH } from '../../../../config/misc';
import './completion-modal.css';
import callGA from '../../../analytics/call-ga';

Expand Down Expand Up @@ -166,6 +166,25 @@ class CompletionModal extends Component<

const isMacOS = navigator.userAgent.includes('Mac OS');

const isDesktop = window.innerWidth > MAX_MOBILE_WIDTH;

let buttonText;
if (isDesktop) {
if (isMacOS) {
buttonText = isSignedIn
? t('buttons.submit-and-go-3')
: t('buttons.go-to-next-3');
} else {
buttonText = isSignedIn
? t('buttons.submit-and-go-2')
: t('buttons.go-to-next-2');
}
} else {
buttonText = isSignedIn
? t('buttons.submit-and-go')
: t('buttons.go-to-next');
}

return (
<Modal
onClose={close}
Expand Down Expand Up @@ -200,10 +219,7 @@ class CompletionModal extends Component<
data-cy='submit-challenge'
onClick={() => submitChallenge()}
>
{isSignedIn ? t('buttons.submit-and-go') : t('buttons.go-to-next')}
<span className='hidden-xs'>
{isMacOS ? ' (Command + Enter)' : ' (Ctrl + Enter)'}
</span>
{buttonText}
</Button>
<Spacer size='xxSmall' />
{this.state.downloadURL ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dashedName": "build-a-cash-register-project",
"usesMultifileEditor": true,
"helpCategory": "JavaScript",
"order": 19,
"order": 20,
"time": "30 hours",
"template": "",
"required": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dashedName": "build-a-palindrome-checker-project",
"usesMultifileEditor": true,
"helpCategory": "JavaScript",
"order": 6,
"order": 7,
"time": "30 hours",
"template": "",
"required": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dashedName": "build-a-pokemon-search-app-project",
"usesMultifileEditor": true,
"helpCategory": "JavaScript",
"order": 22,
"order": 23,
"time": "30 hours",
"template": "",
"required": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dashedName": "build-a-roman-numeral-converter-project",
"usesMultifileEditor": true,
"helpCategory": "JavaScript",
"order": 10,
"order": 11,
"time": "30 hours",
"template": "",
"required": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dashedName": "build-a-telephone-number-validator-project",
"usesMultifileEditor": true,
"helpCategory": "JavaScript",
"order": 15,
"order": 16,
"time": "30 hours",
"template": "",
"required": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"hasEditableBoundaries": true,
"dashedName": "learn-advanced-array-methods-by-building-a-statistics-calculator",
"helpCategory": "JavaScript",
"order": 13,
"order": 14,
"time": "5 hours",
"template": "",
"required": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"hasEditableBoundaries": true,
"dashedName": "learn-asynchronous-programming-by-building-an-fcc-forum-leaderboard",
"helpCategory": "JavaScript",
"order": 21,
"order": 22,
"time": "5 hours",
"template": "",
"required": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"hasEditableBoundaries": true,
"dashedName": "learn-basic-algorithmic-thinking-by-building-a-number-sorter",
"helpCategory": "JavaScript",
"order": 12,
"order": 13,
"time": "5 hours",
"template": "",
"required": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"hasEditableBoundaries": true,
"dashedName": "learn-basic-oop-by-building-a-shopping-cart",
"helpCategory": "JavaScript",
"order": 16,
"order": 17,
"time": "5 hours",
"template": "",
"required": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"usesMultifileEditor": true,
"hasEditableBoundaries": true,
"dashedName": "learn-basic-string-and-array-methods-by-building-a-music-player",
"order": 4,
"order": 5,
"time": "5 hours",
"template": "",
"required": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"hasEditableBoundaries": true,
"dashedName": "learn-fetch-and-promises-by-building-an-fcc-authors-page",
"helpCategory": "JavaScript",
"order": 20,
"order": 21,
"time": "5 hours",
"template": "",
"required": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"hasEditableBoundaries": true,
"dashedName": "learn-functional-programming-by-building-a-spreadsheet",
"helpCategory": "JavaScript",
"order": 14,
"order": 15,
"time": "2 hours",
"template": "",
"required": [],
Expand Down

0 comments on commit 64b161c

Please sign in to comment.