Skip to content
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

feat(curriculum): add registration form practice project #42876

Merged
merged 24 commits into from
Oct 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5f10213
feat(curriculum): add registration-form practice project
ShaunSHamilton Jul 14, 2021
1af341b
add parts 001-006
ShaunSHamilton Jul 15, 2021
cbb26f3
rebase for editor fixes :)
ShaunSHamilton Jul 16, 2021
94ae9f3
add parts 007-009
ShaunSHamilton Jul 16, 2021
8bdfbcd
add parts 010-013
ShaunSHamilton Jul 19, 2021
5297c3d
add parts 014-024, fix 013
ShaunSHamilton Jul 21, 2021
d2f1f39
rebase against upstream/main
ShaunSHamilton Jul 21, 2021
24b508a
add parts 025-043
ShaunSHamilton Jul 23, 2021
5e97637
add parts 043-046
ShaunSHamilton Jul 24, 2021
afeae47
add parts 0047-057 without tests
ShaunSHamilton Jul 27, 2021
d13245a
fix tests and adjust index.md file I do not understand
ShaunSHamilton Jul 27, 2021
7a9bcca
add css tests to parts 037-040
ShaunSHamilton Aug 5, 2021
6f3a693
add tests parts 040-057
ShaunSHamilton Aug 9, 2021
30c578e
Merge branch 'main' into feat/reg-form
ShaunSHamilton Sep 15, 2021
9079e21
remove space around ERM
ShaunSHamilton Sep 15, 2021
359be34
add true assertion until document iframe is fixed
ShaunSHamilton Sep 15, 2021
f54e6f9
merge branch 'main' of upstream into feat/reg-form
ShaunSHamilton Sep 24, 2021
05a0603
add critical review suggestions
ShaunSHamilton Sep 24, 2021
9a6b644
use clear, Tom-like language for 038
ShaunSHamilton Sep 24, 2021
5008f7f
rebase upstream/main against feat/reg-form
ShaunSHamilton Oct 6, 2021
bca5502
change order to match author's age
ShaunSHamilton Oct 6, 2021
aa1eb03
apply suggestions with personal pazzaz
ShaunSHamilton Oct 6, 2021
8c248b9
add that thing Nich forgets
ShaunSHamilton Oct 6, 2021
fec281d
use innerText
ShaunSHamilton Oct 6, 2021
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
1 change: 1 addition & 0 deletions client/i18n/locales/english/intro.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"title": "CSS Variables Skyline",
"intro": ["", ""]
},
"registration-form": { "title": "Registration Form", "intro": ["", ""] },
"accessibility-quiz": {
"title": "Accessibility Quiz",
"intro": ["", ""]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Introduction to the Registration Form
block: Registration Form
superBlock: Responsive Web Design
isBeta: true
---

## Introduction to the Registration Form

This is a test for the new project-based curriculum.
3 changes: 2 additions & 1 deletion client/utils/help-category-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,6 @@
"periodic-table-database": "Relational Databases",
"learn-github-by-building-a-list-of-inspirational-quotes": "Relational Databases",
"number-guessing-game": "Relational Databases",
"accessibility-quiz": "HTML-CSS"
"accessibility-quiz": "HTML-CSS",
"registration-form": "HTML-CSS"
}
242 changes: 242 additions & 0 deletions curriculum/challenges/_meta/registration-form/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
{
"name": "Registration Form",
"isUpcomingChange": true,
"dashedName": "registration-form",
"order": 23,
"time": "5 hours",
"template": "",
"required": [],
"superBlock": "responsive-web-design",
"superOrder": 1,
"isBeta": true,
"challengeOrder": [
[
"60eebd07ea685b0e777b5583",
"Part 1"
],
[
"60f027099a15b00485563dd2",
"Part 2"
],
[
"60f027c87bc98f050395c139",
"Part 3"
],
[
"60f0286404aefb0562a4fdf9",
"Part 4"
],
[
"60f02e7361b68405e27b62a5",
"Part 5"
],
[
"60f030d388cb74067cf291c3",
"Part 6"
],
[
"60f1922fcbd2410527b3bd89",
"Part 7"
],
[
"60f1a5e2d2c23707a4f9a660",
"Part 8"
],
[
"60f1a9cbd23023082e149fee",
"Part 9"
],
[
"60f5c3e399ff1a05629964e4",
"Part 10"
],
[
"60f5cb8875ab6a0610f05071",
"Part 11"
],
[
"60f5d2776c854e069560fbe6",
"Part 12"
],
[
"60f5dc35c07ac1078f140916",
"Part 13"
],
[
"60f803d5241e6a0433a523a1",
"Part 14"
],
[
"60f805f813eaf2049bc2ceea",
"Part 15"
],
[
"60f80e0081e0f2052ae5b505",
"Part 16"
],
[
"60f81167d0d4910809f88945",
"Part 17"
],
[
"60f81616cff80508badf9ad5",
"Part 18"
],
[
"60f83e7bfc09900959f41e20",
"Part 19"
],
[
"60f84ec41116b209c280ba91",
"Part 20"
],
[
"60f852f645b5310a8264f555",
"Part 21"
],
[
"60f85a62fb30c80bcea0cedb",
"Part 22"
],
[
"60f8604682407e0d017bbf7f",
"Part 23"
],
[
"60f8618d191b940d62038513",
"Part 24"
],
[
"60fab4a123ce4b04526b082b",
"Part 25"
],
[
"60fab8367d35de04e5cb7929",
"Part 26"
],
[
"60fab9f17fa294054b74228c",
"Part 27"
],
[
"60fabf0dd4959805dbae09e6",
"Part 28"
],
[
"60fac4095512d3066053d73c",
"Part 29"
],
[
"60fac56271087806def55b33",
"Part 30"
],
[
"60fac8d7fdfaee0796934f20",
"Part 31"
],
[
"60faca286cb48b07f6482970",
"Part 32"
],
[
"60facde2d0dc61085b41063f",
"Part 33"
],
[
"60facf914c7b9b08d7510c2c",
"Part 34"
],
[
"60fad0a812d9890938524f50",
"Part 35"
],
[
"60fad1cafcde010995e15306",
"Part 36"
],
[
"60fad6dfcc0d930a59becf12",
"Part 37"
],
[
"60fad8e6148f310bba7890b1",
"Part 38"
],
[
"60fad99e09f9d30c1657e790",
"Part 39"
],
[
"60fadb18058e950c73925279",
"Part 40"
],
[
"60fadce90f85c50d0bb0dd4f",
"Part 41"
],
[
"60fadd972e6ffe0d6858fa2d",
"Part 42"
],
[
"60fadfa2b540b70dcfa8b771",
"Part 43"
],
[
"60fc219d333e37046f474a6e",
"Part 44"
],
[
"60fc22d1e64d1b04cdd4e602",
"Part 45"
],
[
"60fc236dc04532052926fdac",
"Part 46"
],
[
"60ffe1bc30415f042faea936",
"Part 47"
],
[
"60ffe3936796ac04959285a9",
"Part 48"
],
[
"60ffe4f4ec18cd04dc470c56",
"Part 49"
],
[
"60ffe69ee377c6055e192a46",
"Part 50"
],
[
"60ffe7d8aae62c05bcc9e7eb",
"Part 51"
],
[
"60ffe8a5ceb0e90618db06d9",
"Part 52"
],
[
"60ffe947a868ec068f7850f6",
"Part 53"
],
[
"60ffe9cb47809106eda2f2c9",
"Part 54"
],
[
"60ffec2825da1007509ddd06",
"Part 55"
],
[
"60ffecefac971607ae73c60f",
"Part 56"
],
[
"60ffefd6479a3d084fb77cbc",
"Part 57"
]
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
id: 60eebd07ea685b0e777b5583
title: Part 1
challengeType: 0
dashedName: part-1
---

# --description--

Welcome to the Registration Form project! Start by adding the `!DOCTYPE html` declaration at the top of the document so the browser knows what type of document it's reading.

# --hints--

Your code should contain the `DOCTYPE` reference.

```js
assert(code.match(/<!DOCTYPE/gi));
```

You should include a space after the `DOCTYPE` reference.

```js
assert(code.match(/<!DOCTYPE\s+/gi));
```

You should define the document type to be `html`.

```js
assert(code.match(/html/gi));
```

You should close the `DOCTYPE` declaration with a `>` after the type.

```js
assert(code.match(/html\s*>/gi));
```

# --seed--

## --seed-contents--

```html
--fcc-editable-region--

--fcc-editable-region--
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
id: 60f027099a15b00485563dd2
title: Part 2
challengeType: 0
dashedName: part-2
---

# --description--

Add opening and closing `html` tags below the `DOCTYPE` so you have a place to start putting some code.

# --hints--

Your `html` element should be below the `DOCTYPE` declaration.

```js
assert(code.match(/(?<!<html\s*>)<!DOCTYPE\s+html\s*>/gi));
```

Your `html` element should have an opening tag.

```js
assert(code.match(/<html\s*>/gi));
```

Your `html` element should have a closing tag.

```js
assert(code.match(/<\/html\s*>/));
```

Your `html` tags should be in the correct order.

```js
assert(code.match(/<html\s*>\s*<\/html\s*>/));
```

You should only have one `html` element.

```js
// Possibly a redundant test, as browser fixes this
assert(document.querySelectorAll('html').length === 1);
```

# --seed--

## --seed-contents--

```html
--fcc-editable-region--
<!DOCTYPE html>

--fcc-editable-region--
```
Loading