Skip to content

Commit 91fa535

Browse files
Merge pull request #36 from topcoder-platform/PROD-2456_orig-course
PROD-2456 configure shortened course -> dev
2 parents 86a30a2 + 6902061 commit 91fa535

File tree

7 files changed

+54
-45
lines changed

7 files changed

+54
-45
lines changed

client/utils/help-category-map.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
"data-analysis-with-python-course": "Python",
5858
"python-for-penetration-testing": "Python",
5959
"learn-html-by-building-a-cat-photo-app": "HTML-CSS",
60+
"learn-html-by-building-a-cat-photo-app-qa": "HTML-CSS",
6061
"learn-basic-css-by-building-a-cafe-menu": "HTML-CSS",
62+
"learn-basic-css-by-building-a-cafe-menu-qa": "HTML-CSS",
6163
"learn-css-variables-by-building-a-city-skyline": "HTML-CSS",
6264
"basic-javascript-rpg-game": "JavaScript",
6365
"functional-programming-spreadsheet": "JavaScript",

curriculum/challenges/_meta/learn-html-by-building-a-cat-photo-app-qa/meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Learn HTML by Building a Cat Photo App",
2+
"name": "Learn HTML by Building a Cat Photo App QA",
33
"isUpcomingChange": false,
44
"usesMultifileEditor": true,
55
"hasEditableBoundaries": true,
@@ -11,11 +11,11 @@
1111
"superBlock": "2022/responsive-web-design-qa",
1212
"challengeOrder": [
1313
[
14-
"dddddddddddddddddddddddd",
14+
"cccccccccccccccccccccccc",
1515
"Step 1"
1616
],
1717
[
18-
"cccccccccccccccccccccccc",
18+
"dddddddddddddddddddddddd",
1919
"Step 2"
2020
]
2121
]}
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,44 @@
11
---
22
id: cccccccccccccccccccccccc
3-
title: Step 2
3+
title: Step 1
44
challengeType: 0
5-
dashedName: step-2
5+
dashedName: step-1
6+
order: 1
67
---
78

89
# --description--
910

10-
Add a `head` element within the `html` element, so you can add a `title` element. The `title` element's text should be `Cafe Menu`.
11+
As you learned in the last few steps of the Cat Photo App, there is a basic structure needed to start building your web page.
1112

12-
# --hints--
13-
14-
You should have an opening `<head>` tag.
15-
16-
```js
17-
assert(code.match(/<head>/i));
18-
```
19-
20-
You should have a closing `</head>` tag.
21-
22-
```js
23-
assert(code.match(/<head>/i));
24-
```
13+
Add the `<!DOCTYPE html>` tag, and an `html` element.
2514

26-
You should have an opening `<title>` tag.
27-
28-
```js
29-
assert(code.match(/<title>/i));
30-
```
15+
# --hints--
3116

32-
You should have a closing `</title>` tag.
17+
You should have the `DOCTYPE` declaration.
3318

3419
```js
35-
assert(code.match(/<\/title>/i));
20+
assert(code.match(/<!DOCTYPE html>/i));
3621
```
3722

38-
Your `title` element should be nested in your `head` element.
23+
You should have an opening `<html>` tag.
3924

4025
```js
41-
assert(code.match(/<head>\s*<title>.*<\/title>\s*<\/head>/si));
26+
assert(code.match(/<html>/i));
4227
```
4328

44-
Your `title` element should have the text `Cafe Menu`. You may need to check your spelling.
29+
You should have a closing `<html>` tag. Remember that closing tags have a `/` following the opening `<` bracket.
4530

4631
```js
47-
assert.match(document.querySelector('title')?.innerText, /Cafe Menu/i);
32+
assert(code.match(/<\/html>/i));
4833
```
4934

5035
# --seed--
5136

5237
## --seed-contents--
5338

5439
```html
55-
<!DOCTYPE html>
56-
<html>
5740
--fcc-editable-region--
5841

5942
--fcc-editable-region--
60-
</html>
43+
6144
```
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,62 @@
11
---
22
id: dddddddddddddddddddddddd
3-
title: Step 1
3+
title: Step 2
44
challengeType: 0
5-
dashedName: step-1
5+
dashedName: step-2
6+
order: 2
67
---
78

89
# --description--
910

10-
As you learned in the last few steps of the Cat Photo App, there is a basic structure needed to start building your web page.
11-
12-
Add the `<!DOCTYPE html>` tag, and an `html` element.
11+
Add a `head` element within the `html` element, so you can add a `title` element. The `title` element's text should be `Cafe Menu`.
1312

1413
# --hints--
1514

16-
You should have the `DOCTYPE` declaration.
15+
You should have an opening `<head>` tag.
16+
17+
```js
18+
assert(code.match(/<head>/i));
19+
```
20+
21+
You should have a closing `</head>` tag.
22+
23+
```js
24+
assert(code.match(/<head>/i));
25+
```
26+
27+
You should have an opening `<title>` tag.
1728

1829
```js
19-
assert(code.match(/<!DOCTYPE html>/i));
30+
assert(code.match(/<title>/i));
2031
```
2132

22-
You should have an opening `<html>` tag.
33+
You should have a closing `</title>` tag.
2334

2435
```js
25-
assert(code.match(/<html>/i));
36+
assert(code.match(/<\/title>/i));
2637
```
2738

28-
You should have a closing `<html>` tag. Remember that closing tags have a `/` following the opening `<` bracket.
39+
Your `title` element should be nested in your `head` element.
2940

3041
```js
31-
assert(code.match(/<\/html>/i));
42+
assert(code.match(/<head>\s*<title>.*<\/title>\s*<\/head>/si));
43+
```
44+
45+
Your `title` element should have the text `Cafe Menu`. You may need to check your spelling.
46+
47+
```js
48+
assert.match(document.querySelector('title')?.innerText, /Cafe Menu/i);
3249
```
3350
3451
# --seed--
3552
3653
## --seed-contents--
3754
3855
```html
56+
<!DOCTYPE html>
57+
<html>
3958
--fcc-editable-region--
4059

4160
--fcc-editable-region--
42-
61+
</html>
4362
```

curriculum/challenges/english/14-responsive-web-design-22-qa/learn-html-by-building-a-cat-photo-app-qa/eeeeeeeeeeeeeeeeeeeeeeee.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
id: eeeeeeeeeeeeeeeeeeeeeeee
33
challengeType: 0
44
dashedName: step-1
5+
title: Step 1
6+
order: 1
57
---
68

79
# --description--

curriculum/challenges/english/14-responsive-web-design-22-qa/learn-html-by-building-a-cat-photo-app-qa/ffffffffffffffffffffffff.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ id: ffffffffffffffffffffffff
33
title: Step 2
44
challengeType: 0
55
dashedName: step-2
6+
order: 2
67
---
78

89
# --description--

utils/preformatted-block-names.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
"json-apis-and-ajax": "JSON APIs and Ajax",
1919
"learn-accessibility-by-building-a-quiz": "Learn Accessibility by Building a Quiz",
2020
"learn-basic-css-by-building-a-cafe-menu": "Learn Basic CSS by Building a Cafe Menu",
21+
"learn-basic-css-by-building-a-cafe-menu-qa": "Learn Basic CSS by Building a Cafe Menu QA",
2122
"learn-css-animation-by-building-a-ferris-wheel": "Learn CSS Animation by Building a Ferris Wheel",
2223
"learn-css-flexbox-by-building-a-photo-gallery": "Learn CSS Flexbox by Building a Photo Gallery",
2324
"learn-css-grid-by-building-a-magazine": "Learn CSS Grid by Building a Magazine",
2425
"learn-css-transforms-by-building-a-penguin": "Learn CSS Transforms by Building a Penguin",
2526
"learn-css-variables-by-building-a-city-skyline": "Learn CSS Variables by Building a City Skyline",
2627
"learn-html-by-building-a-cat-photo-app": "Learn HTML by Building a Cat Photo App",
28+
"learn-html-by-building-a-cat-photo-app-qa": "Learn HTML by Building a Cat Photo App QA",
2729
"learn-html-forms-by-building-a-registration-form": "Learn HTML Forms by Building a Registration Form",
2830
"learn-intermediate-css-by-building-a-picasso-painting": "Learn Intermediate CSS by Building a Picasso Painting",
2931
"learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet": "Learn More About CSS Pseudo Selectors By Building A Balance Sheet",

0 commit comments

Comments
 (0)