From b579317e11fbaf9784e52fa4bb3d5219eb177168 Mon Sep 17 00:00:00 2001 From: Manish Giri Date: Thu, 2 May 2019 05:24:38 -0400 Subject: [PATCH] fix(curriculum): Add solutions to Bootstrap challenges (#35789) * fix(curriculum): Add solutions to Bootstrap challenges --- ...-default-bootstrap-button-style.english.md | 22 ++++- ...-optional-actions-with-btn-info.english.md | 63 ++++++++++++++- ...-block-element-bootstrap-button.english.md | 61 +++++++++++++- .../create-a-bootstrap-row.english.md | 7 +- ...to-target-with-jquery-selectors.english.md | 22 ++++- .../create-a-custom-heading.english.md | 61 +++++++++++++- .../create-bootstrap-wells.english.md | 14 +++- .../ditch-custom-css-for-bootstrap.english.md | 56 ++++++++++++- .../give-each-element-a-unique-id.english.md | 24 +++++- ...a-bootstrap-container-fluid-div.english.md | 6 +- .../label-bootstrap-buttons.english.md | 24 +++++- .../label-bootstrap-wells.english.md | 24 +++++- ...nts-responsively-with-bootstrap.english.md | 81 ++++++++++++++++++- .../make-images-mobile-responsive.english.md | 60 +++++++++++++- .../responsively-style-checkboxes.english.md | 75 ++++++++++++++++- ...esponsively-style-radio-buttons.english.md | 66 ++++++++++++++- .../split-your-bootstrap-row.english.md | 10 ++- ...le-text-inputs-as-form-controls.english.md | 75 ++++++++++++++++- ...-bootstrap-button-color-rainbow.english.md | 61 +++++++++++++- ...-span-to-target-inline-elements.english.md | 58 ++++++++++++- .../use-comments-to-clarify-code.english.md | 25 +++++- ...with-bootstrap-fluid-containers.english.md | 58 ++++++++++++- ...angerous-action-with-btn-danger.english.md | 63 ++++++++++++++- 23 files changed, 970 insertions(+), 46 deletions(-) diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/apply-the-default-bootstrap-button-style.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/apply-the-default-bootstrap-button-style.english.md index cc4221e82d..96e3d19949 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/apply-the-default-bootstrap-button-style.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/apply-the-default-bootstrap-button-style.english.md @@ -65,7 +65,25 @@ tests: ## Solution
-```js -// solution required +```html +
+

jQuery Playground

+
+
+
+ + + +
+
+
+
+ + + +
+
+
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/call-out-optional-actions-with-btn-info.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/call-out-optional-actions-with-btn-info.english.md index 68d622ddbe..ad9b82b701 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/call-out-optional-actions-with-btn-info.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/call-out-optional-actions-with-btn-info.english.md @@ -109,7 +109,66 @@ tests: ## Solution
-```js -// solution required +```html + + + +
+

CatPhotoApp

+ +

Click here for cat photos.

+ + A cute orange cat lying on its back. + + Three kittens running towards the camera. + + + +

Things cats love:

+
    +
  • cat nip
  • +
  • laser pointers
  • +
  • lasagna
  • +
+

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+ + + + + + + +
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-block-element-bootstrap-button.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-block-element-bootstrap-button.english.md index 91324f157e..71ef523fd1 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-block-element-bootstrap-button.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-block-element-bootstrap-button.english.md @@ -114,7 +114,64 @@ tests: ## Solution
-```js -// solution required +```html + + + +
+

CatPhotoApp

+ +

Click here for cat photos.

+ + A cute orange cat lying on its back. + + Three kittens running towards the camera. + +

Things cats love:

+
    +
  • cat nip
  • +
  • laser pointers
  • +
  • lasagna
  • +
+

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+ + + + + + + +
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-bootstrap-row.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-bootstrap-row.english.md index f766f07c62..bb22b06306 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-bootstrap-row.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-bootstrap-row.english.md @@ -55,7 +55,10 @@ tests: ## Solution
-```js -// solution required +```html +
+

jQuery Playground

+
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-class-to-target-with-jquery-selectors.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-class-to-target-with-jquery-selectors.english.md index 03759dfd9f..9e24240eed 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-class-to-target-with-jquery-selectors.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-class-to-target-with-jquery-selectors.english.md @@ -63,7 +63,25 @@ tests: ## Solution
-```js -// solution required +```html +
+

jQuery Playground

+
+
+
+ + + +
+
+
+
+ + + +
+
+
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-custom-heading.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-custom-heading.english.md index 7c27322c68..7b96bb8bd4 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-custom-heading.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-a-custom-heading.english.md @@ -106,7 +106,64 @@ tests: ## Solution
-```js -// solution required +```html + + + + +
+
+
+

CatPhotoApp

+
+
+ A cute orange cat lying on its back. +
+
+ Three kittens running towards the camera. +
+
+ +
+
+ +
+
+ +
+
+

Things cats love:

+
    +
  • cat nip
  • +
  • laser pointers
  • +
  • lasagna
  • +
+

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+ + + + + + + +
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-bootstrap-wells.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-bootstrap-wells.english.md index b95f822569..223e1b9aeb 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-bootstrap-wells.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/create-bootstrap-wells.english.md @@ -59,7 +59,17 @@ tests: ## Solution
-```js -// solution required +```html +
+

jQuery Playground

+
+
+
+
+
+
+
+
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/ditch-custom-css-for-bootstrap.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/ditch-custom-css-for-bootstrap.english.md index 77293f6f2c..d3b1ffce9a 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/ditch-custom-css-for-bootstrap.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/ditch-custom-css-for-bootstrap.english.md @@ -123,7 +123,59 @@ tests: ## Solution
-```js -// solution required +```html + + + +
+

CatPhotoApp

+ + A cute orange cat lying on its back. + + Three kittens running towards the camera. +
+
+ +
+
+ +
+
+ +
+
+

Things cats love:

+
    +
  • cat nip
  • +
  • laser pointers
  • +
  • lasagna
  • +
+

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+ + + + + + + +
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/give-each-element-a-unique-id.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/give-each-element-a-unique-id.english.md index 28f444d574..8fbb007425 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/give-each-element-a-unique-id.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/give-each-element-a-unique-id.english.md @@ -76,7 +76,27 @@ tests: ## Solution
-```js -// solution required +```html +
+

jQuery Playground

+
+
+

#left-well

+
+ + + +
+
+
+

#right-well

+
+ + + +
+
+
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/house-our-page-within-a-bootstrap-container-fluid-div.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/house-our-page-within-a-bootstrap-container-fluid-div.english.md index 1c3754e59e..84e7b2807c 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/house-our-page-within-a-bootstrap-container-fluid-div.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/house-our-page-within-a-bootstrap-container-fluid-div.english.md @@ -51,7 +51,9 @@ tests: ## Solution
-```js -// solution required +```html +
+

jQuery Playground

+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/label-bootstrap-buttons.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/label-bootstrap-buttons.english.md index b35d1342c8..a2e1e7dc32 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/label-bootstrap-buttons.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/label-bootstrap-buttons.english.md @@ -75,7 +75,27 @@ tests: ## Solution
-```js -// solution required +```html +
+

jQuery Playground

+
+
+

#left-well

+
+ + + +
+
+
+

#right-well

+
+ + + +
+
+
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/label-bootstrap-wells.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/label-bootstrap-wells.english.md index 1881882eca..eaae7a2a5a 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/label-bootstrap-wells.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/label-bootstrap-wells.english.md @@ -72,7 +72,27 @@ tests: ## Solution
-```js -// solution required +```html +
+

jQuery Playground

+
+
+

#left-well

+
+ + + +
+
+
+

#right-well

+
+ + + +
+
+
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/line-up-form-elements-responsively-with-bootstrap.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/line-up-form-elements-responsively-with-bootstrap.english.md index 4d4c8871aa..5ae45068e4 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/line-up-form-elements-responsively-with-bootstrap.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/line-up-form-elements-responsively-with-bootstrap.english.md @@ -126,7 +126,84 @@ tests: ## Solution
-```js -// solution required +```html + + + +
+
+
+

CatPhotoApp

+
+
+ A cute orange cat lying on its back. +
+
+ Three kittens running towards the camera. +
+
+ +
+
+ +
+
+ +
+
+

Things cats love:

+
    +
  • cat nip
  • +
  • laser pointers
  • +
  • lasagna
  • +
+

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/make-images-mobile-responsive.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/make-images-mobile-responsive.english.md index e1ed0fda6e..8b807d5a3e 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/make-images-mobile-responsive.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/make-images-mobile-responsive.english.md @@ -109,7 +109,63 @@ tests: ## Solution
-```js -// solution required +```html + + + +
+

CatPhotoApp

+ +

Click here for cat photos.

+ + A cute orange cat lying on its back. + + +

Things cats love:

+
    +
  • cat nip
  • +
  • laser pointers
  • +
  • lasagna
  • +
+

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+ + + + + + + +
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/responsively-style-checkboxes.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/responsively-style-checkboxes.english.md index 67abc36d79..1ece806483 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/responsively-style-checkboxes.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/responsively-style-checkboxes.english.md @@ -114,7 +114,78 @@ tests: ## Solution
-```js -// solution required +```html + + + +
+
+
+

CatPhotoApp

+
+
+ A cute orange cat lying on its back. +
+
+ Three kittens running towards the camera. +
+
+ +
+
+ +
+
+ +
+
+

Things cats love:

+
    +
  • cat nip
  • +
  • laser pointers
  • +
  • lasagna
  • +
+

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/responsively-style-radio-buttons.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/responsively-style-radio-buttons.english.md index 46e14477a6..9f406be911 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/responsively-style-radio-buttons.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/responsively-style-radio-buttons.english.md @@ -109,7 +109,69 @@ tests: ## Solution
-```js -// solution required +```html + + + +
+
+
+

CatPhotoApp

+
+
+ A cute orange cat lying on its back. +
+
+ Three kittens running towards the camera. +
+
+ +
+
+ +
+
+ +
+
+

Things cats love:

+
    +
  • cat nip
  • +
  • laser pointers
  • +
  • lasagna
  • +
+

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+
+
+ +
+
+ +
+
+ + + + + +
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/split-your-bootstrap-row.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/split-your-bootstrap-row.english.md index 95e52d0cd7..488010d355 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/split-your-bootstrap-row.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/split-your-bootstrap-row.english.md @@ -53,7 +53,13 @@ tests: ## Solution
-```js -// solution required +```html +
+

jQuery Playground

+
+
+
+
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/style-text-inputs-as-form-controls.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/style-text-inputs-as-form-controls.english.md index de27021af0..cfe90e9d2b 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/style-text-inputs-as-form-controls.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/style-text-inputs-as-form-controls.english.md @@ -126,7 +126,78 @@ tests: ## Solution
-```js -// solution required +```html + + + +
+
+
+

CatPhotoApp

+
+
+ A cute orange cat lying on its back. +
+
+ Three kittens running towards the camera. +
+
+ +
+
+ +
+
+ +
+
+

Things cats love:

+
    +
  • cat nip
  • +
  • laser pointers
  • +
  • lasagna
  • +
+

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/taste-the-bootstrap-button-color-rainbow.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/taste-the-bootstrap-button-color-rainbow.english.md index 37c436eb79..581d7d3803 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/taste-the-bootstrap-button-color-rainbow.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/taste-the-bootstrap-button-color-rainbow.english.md @@ -107,7 +107,64 @@ tests: ## Solution
-```js -// solution required +```html + + + +
+

CatPhotoApp

+ +

Click here for cat photos.

+ + A cute orange cat lying on its back. + + Three kittens running towards the camera. + +

Things cats love:

+
    +
  • cat nip
  • +
  • laser pointers
  • +
  • lasagna
  • +
+

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+ + + + + + + +
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/use-a-span-to-target-inline-elements.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/use-a-span-to-target-inline-elements.english.md index e44f861c45..f9da35f843 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/use-a-span-to-target-inline-elements.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/use-a-span-to-target-inline-elements.english.md @@ -111,7 +111,61 @@ tests: ## Solution
-```js -// solution required +```html + + + +
+

CatPhotoApp

+ + A cute orange cat lying on its back. + + Three kittens running towards the camera. +
+
+ +
+
+ +
+
+ +
+
+

Things cats love:

+
    +
  • cat nip
  • +
  • laser pointers
  • +
  • lasagna
  • +
+

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+ + + + + + + +
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/use-comments-to-clarify-code.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/use-comments-to-clarify-code.english.md index a0b925f782..3be15df963 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/use-comments-to-clarify-code.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/use-comments-to-clarify-code.english.md @@ -73,7 +73,28 @@ tests: ## Solution
-```js -// solution required +```html + +
+

jQuery Playground

+
+
+

#left-well

+
+ + + +
+
+
+

#right-well

+
+ + + +
+
+
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/use-responsive-design-with-bootstrap-fluid-containers.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/use-responsive-design-with-bootstrap-fluid-containers.english.md index a4832cdfd4..0891846868 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/use-responsive-design-with-bootstrap-fluid-containers.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/use-responsive-design-with-bootstrap-fluid-containers.english.md @@ -107,7 +107,61 @@ tests: ## Solution
-```js -// solution required +```html + + +
+

CatPhotoApp

+ +

Click here for cat photos.

+ +A cute orange cat lying on its back. + +

Things cats love:

+
    +
  • cat nip
  • +
  • laser pointers
  • +
  • lasagna
  • +
+

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+ + + + + + + +
+
```
diff --git a/curriculum/challenges/english/03-front-end-libraries/bootstrap/warn-your-users-of-a-dangerous-action-with-btn-danger.english.md b/curriculum/challenges/english/03-front-end-libraries/bootstrap/warn-your-users-of-a-dangerous-action-with-btn-danger.english.md index bdde82947f..08af9f4004 100644 --- a/curriculum/challenges/english/03-front-end-libraries/bootstrap/warn-your-users-of-a-dangerous-action-with-btn-danger.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/bootstrap/warn-your-users-of-a-dangerous-action-with-btn-danger.english.md @@ -110,7 +110,66 @@ tests: ## Solution
-```js -// solution required +```html + + + +
+

CatPhotoApp

+ +

Click here for cat photos.

+ + A cute orange cat lying on its back. + + Three kittens running towards the camera. + + + +

Things cats love:

+
    +
  • cat nip
  • +
  • laser pointers
  • +
  • lasagna
  • +
+

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+ + + + + + + +
+
```