a small set of exercises pertinent to front end development!
- your computer
git
- nodejs
- a web browser
- clone &
cd [this-directory!]
- create a new branch,
git checkout -b challenge-answers
- run these commands:
npm install
npm test
- this will open up a browser. please follow the onscreen instructions.
- your objective is to make all tests pass. when they have all passed, part 1 is complete.
- by default we will use
chrome
. if you want to usefirefox
orsafari
, please edittestem.json
accordingly for the exercise. - disregard any security warnings at the top of the chrome browser--these are expected.
- by default we will use
- to complete the tasks, it's highly recommended to use the debug utilities included in your browser. make use of
debugger
statements in your code, as your code will be bundled before it is shipped to your browser. - lastly, the test suite will automatically re-compile and run in the browser every time you make a change. be aware of this 😄.
- please read the descriptions & comments fully before starting to code!
each css exercise lives in the folder corresponding to the exercise. please edit just the .html
pages to complete the solutions. do not feel obligated to optimize for all browsers. instead, use succint solutions, but feel free to annotate limitations of your solution inline in your code, if any at all.
the exercises are as follows:
-
centering -
centering/strategy1.html
- make a black circle of any size appear on screen
- center it in both dimensions on the page in
centering/strategy1.html
- extra credit, do it again with a different technique in
centering/strategy2.html
- extra credit, do it again with a different technique in
-
svg-scale -
svg-scale/index.html
- make the SVG scale to 3/4 the viewport width, maintaining the original aspect ratio
-
header -
header/index.html
- make the
header
sticky such that it remains at the top of the page as the user scrolls down.
- make the
-
responsive -
responsive/index.html
- write CSS to realize the intent of the markup in the file.
Please submit your answers as a patch for e-mail instead of a (public) pull request
- git commit -a -m "challenge answers"
- git format-patch master
submit the patch output.