Skip to content

Instantly share code, notes, and snippets.

@godwin-c
Last active January 9, 2019 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save godwin-c/ee69ae3f9928404e74ef2cd116587eae to your computer and use it in GitHub Desktop.
Save godwin-c/ee69ae3f9928404e74ef2cd116587eae to your computer and use it in GitHub Desktop.
Test Suite Template
<html>
<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
-->
<div id="main">
<header id="title">
<h1>Dr. Norman Borlaug</h1>
<h4>The man who saved a billion lives</h4>
</header>
<div id="img-div">
<img id="image" src="https://c2.staticflickr.com/4/3689/10613180113_fdf7bcd316_b.jpg" alt="Dr Nomarn in a farm">
<div id="img-caption">
Dr Norman, second from the Left in picture.
</div>
</div>
<div class="container">
<div id="tribute-info">
<h3> Life and times of Dr. Norman</h3>
<div>
<ul>
<li>
<b> 1941 - </b> Born in Cresco, Iowa
</li>
<li>
<b>1933 - </b> Leaves his family's farm to attend the University of Minnesota, thanks to a Depression era program known as the "National Youth Administration"
</li>
<li>
<b> 1935 - </b> Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food changed them", he said. "All of this left scars on me."
</li>
<li>
<b>1937 - </b> Finishes university and takes a job in the US Forestry Service
</li>
<li>
<b>1938 - </b> Marries wife of 69 years Margret Gibson. Gets laid off due to budget cuts. Inspired by Elvin Charles Stakman, he returns to school study under Stakman, who teaches him about breeding pest-resistent plants.
</li>
<li>
<b>1941 - </b> Tries to enroll in the military after the Pearl Harbor attack, but is rejected. Instead, the military asked his lab to work on waterproof glue, DDT to control malaria, disenfectants, and other applied science.
</li>
<li>
<b>1942 - </b> Receives a Ph.D. in Genetics and Plant Pathology
</li>
<li>
<b>1944 - </b> Rejects a 100% salary increase from Dupont, leaves behind his pregnant wife, and flies to Mexico to head a new plant pathology program. Over the next 16 years, his team breeds 6,000 different strains of disease resistent wheat
- including different varieties for each major climate on Earth.
</li>
</ul>
</div>
</div>
</div>
<div id="footer_section">
<i>"Borlaug's life and achievement are testimony to the far-reaching contribution that one man's towering intellect, persistence and scientific vision can make to human peace and progress."</i>
<p>
-- Indian Prime Minister Manmohan Singh
</p>
If you have time, you should read more about this incredible human being on his <a id="tribute-link" href="https://en.wikipedia.org/wiki/Norman_Borlaug" target="_blank">Wikipedia entry</a>.
</div>
</div>
</html>
// !! 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.
h1,
#img-caption,
h4,
h3 {
text-align: center;
}
header {
padding: 10px;
}
#main {
background-color: #ccccff;
padding: 10px;
}
#img-div {
background-color: #ffffff;
width: 1fr;
padding: 10px;
width: 3fr;
}
img {
height: auto;
max-width: 100%;
margin-left: auto;
margin-right: auto;
display: block;
}
.container {
display: grid;
grid-template-columns: 1fr 2fr 1fr;
grid-template-rows: auto 1fr;
grid-gap: 5px;
grid-template-areas:
". content ."
"footer footer footer";
}
#tribute-info {
grid-area: content;
}
#footer_section {
grid-area: footer;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment