From 7581ed9b30a5a1ee350e04b702790cc493276f3d Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Tue, 26 May 2015 00:33:13 -0700 Subject: [PATCH] quick challenge hot fixes --- public/css/main.less | 2 +- seed_data/challenges/basic-html5-and-css.json | 4 +++- seed_data/challenges/bootstrap.json | 11 ++++++----- seed_data/challenges/full-stack-javascript.json | 8 ++++---- views/home.jade | 2 +- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/public/css/main.less b/public/css/main.less index 932e87bc73..2b9fa9d826 100644 --- a/public/css/main.less +++ b/public/css/main.less @@ -916,7 +916,7 @@ iframe.iphone { } .button-spacer { - padding: 3px 0 2px 0; + padding: 5px 0 2px 0; } .spacer { diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json index b19acf63fe..e4131a415e 100644 --- a/seed_data/challenges/basic-html5-and-css.json +++ b/seed_data/challenges/basic-html5-and-css.json @@ -34,6 +34,7 @@ "h2 elements are slightly smaller than h1 elements. There are also h3, h4, h5 and h6 elements." ], "tests": [ + "assert(($('h2').length > 0), 'Create an h2 elements.')", "assert.isTrue((/cat(\\s)?photo(\\s)?app/gi).test($('h2').text()), 'Your h2 element should have the text \"CatPhotoApp\"')", "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1 element should have the text \"Hello World\"')" ], @@ -47,11 +48,12 @@ "name": "Waypoint: Inform with the Paragraph Element", "difficulty": 0.011, "description": [ - "Create a paragraph element below the h2 element, and give it the text \"Hello Paragraph\".", + "Create a paragraph element below the h2 element, and give it the text \"Hello Paragraph\". As soon as you create the opening <p> tag, one of our tests will pass (since this is valid HTML). Be sure to close the element by adding a closing </p> tag.", "Paragraph elements are the preferred element for normal-sized paragraph text on websites.", "You can create a paragraph element like so: <p>I'm a p tag!</p>" ], "tests": [ + "assert(($('p').length > 0), 'Create an h2 elements.')", "assert.isTrue((/hello(\\s)+paragraph/gi).test($('p').text()), 'Your paragraph element should have the text \"Hello Paragraph\"')" ], "challengeSeed": [ diff --git a/seed_data/challenges/bootstrap.json b/seed_data/challenges/bootstrap.json index 480117ee2c..6e1ada3983 100644 --- a/seed_data/challenges/bootstrap.json +++ b/seed_data/challenges/bootstrap.json @@ -302,12 +302,13 @@ "name": "Waypoint: Taste the Bootstrap Button Color Rainbow", "difficulty": 0.051, "description": [ - "Add Bootstrap's btn-block class to both of your buttons.", - "Normally, your buttons are only as wide as the text they contain. By making them block elements, your button will stretch to fill your page's entire horizontal space.", - "Note that these buttons still need the btn class." + "Add Bootstrap's btn-primary class to your button.", + "The btn-primary class is the main color you'll use in your app. It is useful for highlighting actions you want your user to take.", + "Note that this button will still need the btn class." ], "tests": [ - "assert($('.btn-primary').length > 0, 'your new button should have the class \"btn-primary\".')" + "assert($('.btn-primary').length > 0, 'Your new button should have the class \"btn-primary\".')", + "assert($('.btn').length > 0, 'Your new button should have the class \"btn\".')" ], "challengeSeed": [ "", @@ -376,7 +377,7 @@ "name": "Waypoint: Call out Optional Actions with Button Info", "difficulty": 0.052, "description": [ - "Create a new block-level Bootstrap button below your \"like\" button with the text \"Info\", and add Bootstrap's btn-info class to it.", + "Create a new block-level Bootstrap button below your \"like\" button with the text \"Info\", and add Bootstrap's btn-info and btn-block classes to it.", "Bootstrap comes with several pre-defined colors for buttons. The btn-info class is used to call attention to optional actions that the user can take.", "Note that these buttons still need the btn and btn-block classes." ], diff --git a/seed_data/challenges/full-stack-javascript.json b/seed_data/challenges/full-stack-javascript.json index feeb71ba1b..d342617d0b 100644 --- a/seed_data/challenges/full-stack-javascript.json +++ b/seed_data/challenges/full-stack-javascript.json @@ -82,7 +82,7 @@ "Wait for the workspace to finish processing and select it on the left sidebar, below the Create New Workspace button.", "Click the \"Start Editing\" button.", "In the lower right hand corner you should see a terminal window. In this window use the following commands. You don't need to know what these mean at this point.", - "Run this command: sudo npm install how-to-npm -g", + "Run this command: npm install how-to-npm -g", "Now start this tutorial by running how-to-npm", "Note that you can resize the c9.io's windows by dragging their borders.", "Make sure that you are always in your project's \"workspace\" directory. You can always navigate back to this directory by running this command: cd ~/workspace.", @@ -94,12 +94,12 @@ "Complete \"Listing Dependencies\"", "Complete \"NPM Test\"", "Complete \"Package Niceties\"", - "Complete \"Publish\"", - "Complete \"Version\"", + "Complete \"Publish\". Note that you may have to return to the \"Dev Environment\" challenge and run npm adduser first.", + "Complete \"Version\". Note that npm version is supposed to automatically update your package.json but it doesn’t. You have to manually edit the version number in your package.json before you can verify and continue.", "Complete \"Publish Again\"", "Complete \"Dist Tag\"", "Complete \"Dist Tag Removal\"", - "Complete \"Outdated\"", + "Complete \"Outdated\". Note that npm outdated produces no result, so you you may have to guess the outdated package, or ask how-to-npm to reveal the answer.", "Complete \"Update\"", "Complete \"RM\"", "Complete \"Finale\"", diff --git a/views/home.jade b/views/home.jade index 434a117257..3740c64e3b 100644 --- a/views/home.jade +++ b/views/home.jade @@ -28,7 +28,7 @@ block content a.btn.btn-cta.signup-btn.btn-block(href="/challenges") Go to my next challenge else a.btn.btn-cta.signup-btn.btn-block(href="/login") Start learning to code (it's free) - .spacer + .button-spacer a.btn.btn-cta.btn-success.btn-block(href="/nonprofits") My nonprofit needs coding help .big-break h2 Campers you'll hang out with: