Created
June 21, 2018 19:20
-
-
Save swkeever/8527c8a91e67348a2d70a6535ac7292f to your computer and use it in GitHub Desktop.
Tribute to Isaac Newton
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> | |
<!-- | |
Hello Camper! | |
For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! | |
- The freeCodeCamp Team | |
--> | |
<html> | |
<main id="main"> | |
<title id="title">Isaac Newton</title> | |
<h1 id="title"> | |
Isaac Newton | |
</h1> | |
<div id="img-div"> | |
<img src="https://upload.wikimedia.org/wikipedia/commons/3/39/GodfreyKneller-IsaacNewton-1689.jpg" alt="" id="image"> | |
<p id="img-caption"> | |
Portrait of Newton by Godfrey Kneller | |
</p> | |
</div> | |
<body> | |
<p id="tribute-info"> | |
Sir Isaac Newton was an English mathematician, astronomer, theologian, author and physicist (described in his own day as a "natural philosopher") who is widely recognised as one of the most influential scientists of all time, and a key figure in the scientific | |
revolution. His book Philosophiæ Naturalis Principia Mathematica ("Mathematical Principles of Natural Philosophy"), first published in 1687, laid the foundations of classical mechanics. Newton also made pathbreaking contributions to optics, and | |
he shares credit with Gottfried Wilhelm Leibniz for developing the infinitesimal calculus. | |
</p> | |
<a href="https://en.wikipedia.org/wiki/Isaac_Newton" target="_blank" id="tribute-link"> | |
<p>Isaac Newton's Wikipedia Page</p> | |
</a> | |
</body> | |
</main> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// !! IMPORTANT README: | |
// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. | |
/*********** | |
INSTRUCTIONS: | |
- Select the project you would | |
like to complete from the dropdown | |
menu. | |
- Click the "RUN TESTS" button to | |
run the tests against the blank | |
pen. | |
- Click the "TESTS" button to see | |
the individual test cases. | |
(should all be failing at first) | |
- Start coding! As you fulfill each | |
test case, you will see them go | |
from red to green. | |
- As you start to build out your | |
project, when tests are failing, | |
you should get helpful errors | |
along the way! | |
************/ | |
// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example! | |
// Once you have read the above messages, you can delete all comments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url("https://fonts.googleapis.com/css?family=Rock+Salt"); | |
body { | |
background-image: url("https://upload.wikimedia.org/wikipedia/commons/2/22/Hubble_Extreme_Deep_Field_%28full_resolution%29.png"); | |
background-size: 350px; | |
background-color: #cccccc; | |
background-repeat: repeat; | |
} | |
#main { | |
color: black; | |
background: #fff; | |
font-family: Georgia; | |
padding: 10px; | |
opacity: 0.97; | |
border: 3px double #000; | |
} | |
#title { | |
text-align: center; | |
font-size: 200%; | |
font-family: "Rock Salt", cursive; | |
margin: 0px 0px -20px 0px; | |
/* color: black; */ | |
} | |
#img-div { | |
} | |
#image { | |
display: block; | |
max-width: 40%; | |
height: auto; | |
margin-left: auto; | |
margin-right: auto; | |
padding: 1px; | |
border: 1px solid #021a40; | |
} | |
#img-caption { | |
text-align: center; | |
font-weight: 100; | |
font-size: 14px; | |
/* font-style: italic; */ | |
color: #555; | |
margin: 0px 0px 0px 0px; | |
} | |
#tribute-info { | |
text-align: justify; | |
} | |
#tribute-link { | |
text-align: right; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment