fix(learn): consolidate comments for responsive web design cert (#38256)

Related to PR #38040

This PR is an attempt to consolidate/remove as many comments in the challenge seed code in the Responsive Web Design certification challenges, to be able to create a small translation lookup object for translating the English comments to other languages.
This commit is contained in:
Randell Dawson
2020-02-27 07:20:46 -08:00
committed by GitHub
parent 9606e27a0e
commit 41718abf76
37 changed files with 99 additions and 129 deletions

View File

@ -60,11 +60,11 @@ tests:
<p>Tell us the best date for the competition</p> <p>Tell us the best date for the competition</p>
<label for="pickdate">Preferred Date:</label> <label for="pickdate">Preferred Date:</label>
<!-- Add your code below this line --> <!-- Only change code below this line -->
<!-- Add your code above this line --> <!-- Only change code above this line -->
<input type="submit" name="submit" value="Submit"> <input type="submit" name="submit" value="Submit">
</form> </form>

View File

@ -71,13 +71,13 @@ tests:
<main> <main>
<section> <section>
<!-- Add your code below this line --> <!-- Only change code below this line -->
<div> <div>
<!-- Stacked bar chart will go here --> <!-- Stacked bar chart will go here -->
<br> <br>
<p>Breakdown per week of time to spend training in stealth, combat, and weapons.</p> <p>Breakdown per week of time to spend training in stealth, combat, and weapons.</p>
</div> </div>
<!-- Add your code above this line --> <!-- Only change code above this line -->
</section> </section>
<section id="stealth"> <section id="stealth">
@ -123,15 +123,11 @@ tests:
</header> </header>
<main> <main>
<section> <section>
<!-- Add your code below this line -->
<figure> <figure>
<!-- Stacked bar chart will go here --> <!-- Stacked bar chart will go here -->
<br> <br>
<figcaption>Breakdown per week of time to spend training in stealth, combat, and weapons.</figcaption> <figcaption>Breakdown per week of time to spend training in stealth, combat, and weapons.</figcaption>
</figure> </figure>
<!-- Add your code above this line -->
</section> </section>
<section id="stealth"> <section id="stealth">
<h2>Stealth &amp; Agility Training</h2> <h2>Stealth &amp; Agility Training</h2>

View File

@ -85,7 +85,7 @@ tests:
<section> <section>
<h2>Master Camper Cat's Beginner Three Week Training Program</h2> <h2>Master Camper Cat's Beginner Three Week Training Program</h2>
<figure> <figure>
<!-- Stacked bar chart of weekly training--> <!-- Stacked bar chart of weekly training -->
<p>[Stacked bar chart]</p> <p>[Stacked bar chart]</p>
<br /> <br />
<figcaption>Breakdown per week of time to spend training in stealth, combat, and weapons.</figcaption> <figcaption>Breakdown per week of time to spend training in stealth, combat, and weapons.</figcaption>
@ -181,7 +181,7 @@ tests:
<section> <section>
<h2>Master Camper Cat's Beginner Three Week Training Program</h2> <h2>Master Camper Cat's Beginner Three Week Training Program</h2>
<figure> <figure>
<!-- Stacked bar chart of weekly training--> <!-- Stacked bar chart of weekly training -->
<p>[Stacked bar chart]</p> <p>[Stacked bar chart]</p>
<br /> <br />
<figcaption>Breakdown per week of time to spend training in stealth, combat, and weapons.</figcaption> <figcaption>Breakdown per week of time to spend training in stealth, combat, and weapons.</figcaption>

View File

@ -48,11 +48,11 @@ tests:
<article> <article>
<h2>Mortal Kombat Tournament Survey Results</h2> <h2>Mortal Kombat Tournament Survey Results</h2>
<!-- Add your code below this line --> <!-- Only change code below this line -->
<p>Thank you to everyone for responding to Master Camper Cat's survey. The best day to host the vaunted Mortal Kombat tournament is Thursday, September 15<sup>th</sup>. May the best ninja win!</p> <p>Thank you to everyone for responding to Master Camper Cat's survey. The best day to host the vaunted Mortal Kombat tournament is Thursday, September 15<sup>th</sup>. May the best ninja win!</p>
<!-- Add your code above this line --> <!-- Only change code above this line -->
<section> <section>
<h3>Comments:</h3> <h3>Comments:</h3>
@ -101,13 +101,9 @@ const datetimeAttr = $(timeElement).attr("datetime");
</header> </header>
<article> <article>
<h2>Mortal Kombat Tournament Survey Results</h2> <h2>Mortal Kombat Tournament Survey Results</h2>
<!-- Add your code below this line -->
<p>Thank you to everyone for responding to Master Camper Cat's survey. The best day to host the vaunted Mortal Kombat tournament is <time datetime="2016-09-15">Thursday, September 15<sup>th</sup></time>. May the best ninja win!</p> <p>Thank you to everyone for responding to Master Camper Cat's survey. The best day to host the vaunted Mortal Kombat tournament is <time datetime="2016-09-15">Thursday, September 15<sup>th</sup></time>. May the best ninja win!</p>
<!-- Add your code above this line -->
<section> <section>
<h3>Comments:</h3> <h3>Comments:</h3>
<article> <article>

View File

@ -71,7 +71,7 @@ tests:
<input type="text" id="email" name="email"> <input type="text" id="email" name="email">
<!-- Add your code below this line --> <!-- Only change code below this line -->
<div> <div>
<p>What level ninja are you?</p> <p>What level ninja are you?</p>
<input id="newbie" type="radio" name="levels" value="newbie"> <input id="newbie" type="radio" name="levels" value="newbie">
@ -81,7 +81,7 @@ tests:
<input id="master" type="radio" name="levels" value="master"> <input id="master" type="radio" name="levels" value="master">
<label for="master">Master</label> <label for="master">Master</label>
</div> </div>
<!-- Add your code above this line --> <!-- Only change code above this line -->
<input type="submit" name="submit" value="Submit"> <input type="submit" name="submit" value="Submit">
@ -125,8 +125,6 @@ tests:
<label for="email">Email:</label> <label for="email">Email:</label>
<input type="text" id="email" name="email"> <input type="text" id="email" name="email">
<!-- Add your code below this line -->
<fieldset> <fieldset>
<legend>What level ninja are you?</legend> <legend>What level ninja are you?</legend>
<input id="newbie" type="radio" name="levels" value="newbie"> <input id="newbie" type="radio" name="levels" value="newbie">
@ -136,8 +134,6 @@ tests:
<input id="master" type="radio" name="levels" value="master"> <input id="master" type="radio" name="levels" value="master">
<label for="master">Master</label> <label for="master">Master</label>
</fieldset> </fieldset>
<!-- Add your code above this line -->
<input type="submit" name="submit" value="Submit"> <input type="submit" name="submit" value="Submit">
</form> </form>

View File

@ -46,9 +46,9 @@ tests:
button:hover { button:hover {
animation-name: background-color; animation-name: background-color;
animation-duration: 500ms; animation-duration: 500ms;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
@keyframes background-color { @keyframes background-color {
100% { 100% {

View File

@ -62,9 +62,9 @@ tests:
top: 10%; top: 10%;
left: 25%; left: 25%;
/* change code below */ /* Change code below this line */
background: var(--pengiun-skin); background: var(--pengiun-skin);
/* change code above */ /* Change code above this line */
width: 50%; width: 50%;
height: 45%; height: 45%;
@ -75,9 +75,9 @@ tests:
top: 40%; top: 40%;
left: 23.5%; left: 23.5%;
/* change code below */ /* Change code below this line */
background: var(--pengiun-skin); background: var(--pengiun-skin);
/* change code above */ /* Change code above this line */
width: 53%; width: 53%;
height: 45%; height: 45%;

View File

@ -47,11 +47,9 @@ tests:
} }
.penguin { .penguin {
/* Only change code below this line */
/* add code below */ /* Only change code above this line */
/* add code above */
position: relative; position: relative;
margin: auto; margin: auto;
display: block; display: block;

View File

@ -43,10 +43,9 @@ tests:
```html ```html
<style> <style>
.penguin { .penguin {
/* Only change code below this line */
/* add code below */ /* Only change code above this line */
/* add code above */
position: relative; position: relative;
margin: auto; margin: auto;
display: block; display: block;

View File

@ -38,10 +38,9 @@ tests:
```html ```html
<style> <style>
:root { :root {
/* Only change code below this line */
/* add code below */ /* Only change code above this line */
/* add code above */
} }
body { body {

View File

@ -62,9 +62,9 @@ tests:
top: 10%; top: 10%;
left: 25%; left: 25%;
/* change code below */ /* Change code below this line */
background: black; background: black;
/* change code above */ /* Change code above this line */
width: 50%; width: 50%;
height: 45%; height: 45%;
@ -75,9 +75,9 @@ tests:
top: 40%; top: 40%;
left: 23.5%; left: 23.5%;
/* change code below */ /* Change code below this line */
background: black; background: black;
/* change code above */ /* Change code above this line */
width: 53%; width: 53%;
height: 45%; height: 45%;
@ -88,9 +88,9 @@ tests:
top: 0%; top: 0%;
left: -5%; left: -5%;
/* change code below */ /* Change code below this line */
background: black; background: black;
/* change code above */ /* Change code above this line */
width: 30%; width: 30%;
height: 60%; height: 60%;
@ -103,9 +103,9 @@ tests:
top: 0%; top: 0%;
left: 75%; left: 75%;
/* change code below */ /* Change code below this line */
background: black; background: black;
/* change code above */ /* Change code above this line */
width: 30%; width: 30%;
height: 60%; height: 60%;

View File

@ -47,11 +47,9 @@ tests:
@media (max-width: 350px) { @media (max-width: 350px) {
:root { :root {
/* Only change code below this line */
/* add code below */ /* Only change code above this line */
/* add code above */
} }
} }

View File

@ -42,11 +42,11 @@ tests:
<style> <style>
.penguin { .penguin {
/* change code below */ /* Only change code below this line */
--penguin-skin: black; --penguin-skin: black;
--penguin-belly: gray; --penguin-belly: gray;
--penguin-beak: yellow; --penguin-beak: yellow;
/* change code above */ /* Only change code above this line */
position: relative; position: relative;
margin: auto; margin: auto;

View File

@ -56,10 +56,10 @@ tests:
width: 100%; width: 100%;
background: LightGray; background: LightGray;
display: grid; display: grid;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
</style> </style>

View File

@ -49,10 +49,10 @@ tests:
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
</style> </style>
<div class="container"> <div class="container">

View File

@ -47,10 +47,10 @@ tests:
background: LightGray; background: LightGray;
display: grid; display: grid;
grid-template-columns: 100px 100px 100px; grid-template-columns: 100px 100px 100px;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
</style> </style>

View File

@ -50,10 +50,10 @@ tests:
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
grid-gap: 10px; grid-gap: 10px;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
</style> </style>

View File

@ -50,10 +50,10 @@ tests:
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
grid-gap: 10px; grid-gap: 10px;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
</style> </style>

View File

@ -42,10 +42,10 @@ tests:
.item2 { .item2 {
background: LightSalmon; background: LightSalmon;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
.item3{background:PaleTurquoise;} .item3{background:PaleTurquoise;}

View File

@ -40,10 +40,10 @@ tests:
.item3 { .item3 {
background: PaleTurquoise; background: PaleTurquoise;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
.item4{background:LightPink;} .item4{background:LightPink;}

View File

@ -55,10 +55,10 @@ tests:
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
</style> </style>

View File

@ -49,10 +49,10 @@ tests:
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
</style> </style>

View File

@ -54,11 +54,11 @@ tests:
width: 100%; width: 100%;
background: LightGray; background: LightGray;
display: grid; display: grid;
/* change the code below this line */ /* Only change code below this line */
grid-template-columns: repeat(3, minmax(60px, 1fr)); grid-template-columns: repeat(3, minmax(60px, 1fr));
/* change the code above this line */ /* Only change code above this line */
grid-template-rows: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
grid-gap: 10px; grid-gap: 10px;
} }
@ -114,11 +114,11 @@ tests:
width: 100%; width: 100%;
background: LightGray; background: LightGray;
display: grid; display: grid;
/* change the code below this line */ /* Only change code below this line */
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
/* change the code above this line */ /* Only change code above this line */
grid-template-rows: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
grid-gap: 10px; grid-gap: 10px;
} }

View File

@ -59,11 +59,11 @@ tests:
width: 100%; width: 100%;
background: Silver; background: Silver;
display: grid; display: grid;
/* change the code below this line */ /* Only change code below this line */
grid-template-columns: repeat(3, minmax(60px, 1fr)); grid-template-columns: repeat(3, minmax(60px, 1fr));
/* change the code above this line */ /* Only change code above this line */
grid-template-rows: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
grid-gap: 10px; grid-gap: 10px;
} }

View File

@ -65,10 +65,10 @@ tests:
.item3 { .item3 {
background: PaleTurquoise; background: PaleTurquoise;
grid-area: content; grid-area: content;
/* enter your code below this line */ /* Only change code below this line */
/* enter your code above this line */ /* Only change code above this line */
} }
.item4 { .item4 {

View File

@ -46,10 +46,10 @@ tests:
font-size: 40px; font-size: 40px;
width: 100%; width: 100%;
background: LightGray; background: LightGray;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
</style> </style>

View File

@ -61,13 +61,12 @@ tests:
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
grid-gap: 10px; grid-gap: 10px;
/* change code below this line */
grid-template-areas: grid-template-areas:
/* Only change code below this line */
"header header header" "header header header"
"advert content content" "advert content content"
"footer footer footer"; "footer footer footer";
/* change code above this line */ /* Only change code above this line */
} }
</style> </style>

View File

@ -53,11 +53,11 @@ tests:
width: 100%; width: 100%;
background: LightGray; background: LightGray;
display: grid; display: grid;
/* change the code below this line */ /* Only change code below this line */
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
/* change the code above this line */ /* Only change code above this line */
grid-template-rows: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
grid-gap: 10px; grid-gap: 10px;
} }

View File

@ -50,10 +50,10 @@ tests:
.item5 { .item5 {
background: PaleGreen; background: PaleGreen;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
.container { .container {

View File

@ -67,11 +67,11 @@ tests:
width: 100%; width: 100%;
background: LightGray; background: LightGray;
display: grid; display: grid;
/* change the code below this line */ /* Only change code below this line */
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
/* change the code above this line */ /* Only change code above this line */
grid-template-rows: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
grid-gap: 10px; grid-gap: 10px;
} }

View File

@ -56,11 +56,11 @@ tests:
width: 100%; width: 100%;
background: LightGray; background: LightGray;
display: grid; display: grid;
/* modify the code below this line */ /* Only change code below this line */
grid-template-columns: auto 50px 10% 2fr 1fr; grid-template-columns: auto 50px 10% 2fr 1fr;
/* modify the code above this line */ /* Only change code above this line */
grid-template-rows: 50px 50px; grid-template-rows: 50px 50px;
} }
</style> </style>

View File

@ -54,10 +54,10 @@ tests:
.item5 { .item5 {
background: PaleGreen; background: PaleGreen;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
.container { .container {

View File

@ -61,10 +61,10 @@ tests:
.item5 { .item5 {
background: PaleGreen; background: PaleGreen;
/* add your code below this line */ /* Only change code below this line */
/* add your code above this line */ /* Only change code above this line */
} }
.container { .container {

View File

@ -51,10 +51,9 @@ tests:
.item5 { .item5 {
background: PaleGreen; background: PaleGreen;
grid-column: 2 / 4; grid-column: 2 / 4;
/* add your code below this line */ /* Only change code below this line */
/* Only change code above this line */
/* add your code above this line */
} }
.container { .container {
@ -98,9 +97,7 @@ tests:
.item5 { .item5 {
background: PaleGreen; background: PaleGreen;
grid-column: 2 / 4; grid-column: 2 / 4;
/* add your code below this line */
grid-row: 2 / 4; grid-row: 2 / 4;
/* add your code above this line */
} }
.container { .container {

View File

@ -85,14 +85,12 @@ tests:
@media (min-width: 400px){ @media (min-width: 400px){
.container{ .container{
/* change the code below this line */
grid-template-areas: grid-template-areas:
/* Only change code below this line */
"advert header" "advert header"
"advert content" "advert content"
"advert footer"; "advert footer";
/* Only change code above this line */
/* change the code above this line */
} }
} }
</style> </style>
@ -165,14 +163,10 @@ tests:
@media (min-width: 400px){ @media (min-width: 400px){
.container{ .container{
/* change the code below this line */
grid-template-areas: grid-template-areas:
"header header" "header header"
"advert content" "advert content"
"footer footer"; "footer footer";
/* change the code above this line */
} }
} }
</style> </style>

View File

@ -48,7 +48,9 @@ tests:
font-size: 20px; font-size: 20px;
} }
/* Add media query below */ /* Only change code below this line */
/* Only change code above this line */
</style> </style>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis tempus massa. Aenean erat nisl, gravida vel vestibulum cursus, interdum sit amet lectus. Sed sit amet quam nibh. Suspendisse quis tincidunt nulla. In hac habitasse platea dictumst. Ut sit amet pretium nisl. Vivamus vel mi sem. Aenean sit amet consectetur sem. Suspendisse pretium, purus et gravida consequat, nunc ligula ultricies diam, at aliquet velit libero a dui.</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis tempus massa. Aenean erat nisl, gravida vel vestibulum cursus, interdum sit amet lectus. Sed sit amet quam nibh. Suspendisse quis tincidunt nulla. In hac habitasse platea dictumst. Ut sit amet pretium nisl. Vivamus vel mi sem. Aenean sit amet consectetur sem. Suspendisse pretium, purus et gravida consequat, nunc ligula ultricies diam, at aliquet velit libero a dui.</p>

View File

@ -56,9 +56,10 @@ tests:
.bar { .bar {
width: 25px; width: 25px;
height: 100px; height: 100px;
/* Add your code below this line */ /* Only change code below this line */
/* Add your code above this line */
/* Only change code above this line */
display: inline-block; display: inline-block;
background-color: blue; background-color: blue;
} }
@ -72,10 +73,7 @@ tests:
.enter() .enter()
.append("div") .append("div")
.attr("class", "bar") .attr("class", "bar")
// Add your code below this line
.style("height", (d) => (d + "px")) .style("height", (d) => (d + "px"))
// Add your code above this line
</script> </script>
</body> </body>
``` ```
@ -94,9 +92,7 @@ tests:
.bar { .bar {
width: 25px; width: 25px;
height: 100px; height: 100px;
/* Add your code below this line */
margin: 2px; margin: 2px;
/* Add your code above this line */
display: inline-block; display: inline-block;
background-color: blue; background-color: blue;
} }