Last active
April 17, 2021 17:17
-
-
Save thusmiley/6f9a12ef5b23866b0d864d37e7cdf75b to your computer and use it in GitHub Desktop.
Tribute Page Project - FreeCodeCamp (Solution)
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Tribute Page</title> | |
<link rel="stylesheet" href="styles.css" /> | |
</head> | |
<body id="main"> | |
<section id="title"> | |
<h1>Dr. Norman Borlaug</h1> | |
<p id="tribute-info">The man who saved a billion lives</p> | |
<header> | |
<figure id="img-div"> | |
<img id="image" src="./doctor.jpeg" alt="doctor" /> | |
<figcaption id="img-label"> | |
Dr. Norman Borlaug, third from the left, trains biologists in Mexico | |
on how to increase wheat yields - part of his life-long war on | |
hunger. | |
</figcaption> | |
</figure> | |
</section> | |
</header> | |
<main> | |
<section id="main-content"> | |
<article id="time-line"> | |
<h3 id="article-title">Here's a time line of Dr. Borlaug's life:</h3> | |
<ul id="time-line-list" class="text-content"> | |
<li> | |
<time datetime="1914"><b>1914</b></time> - Born in Cresco, Iowa | |
</li> | |
<li> | |
<time datetime="1933"><b>1933</b></time> - 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> | |
<time datetime="1935"><b>1935</b></time> - 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> | |
<time datetime="1937"><b>1937</b></time> - Finishes university and | |
takes a job in the US Forestry Service | |
</li> | |
<li> | |
<time datetime="1938"><b>1938</b></time> - 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> | |
<time datetime="1941"><b>1941</b></time> - 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, disinfectants, and other applied science. | |
</li> | |
<li> | |
<time datetime="1942"><b>1942</b></time> - Receives a Ph.D. in | |
Genetics and Plant Pathology | |
</li> | |
<li> | |
<time datetime="1944"><b>1944</b></time> - 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> | |
<li> | |
<time datetime="1953"><b>1953</b></time> - Discovers a way to | |
grown wheat twice each season, doubling wheat yields | |
</li> | |
<li> | |
<time datetime="1962"><b>1962</b></time | |
>- Crosses a short, sturdy dwarf breed of wheat with a | |
high-yeidling American breed, creating a strain that responds well | |
to fertilizer. It goes on to provide 95% of Mexico's wheat. | |
</li> | |
<li> | |
<time datetime="1970"><b>1970</b></time> - Visits Delhi and brings | |
his high-yielding strains of wheat to the Indian subcontinent in | |
time to help mitigate mass starvation due to a rapidly expanding | |
population | |
</li> | |
<li> | |
<time datetime="1983"><b>1983</b></time> - Receives the Nobel | |
Peace Prize | |
</li> | |
<li> | |
<time datetime="1984"><b>1984</b></time | |
>- Helps seven African countries dramatically increase their maize | |
and sorghum yields | |
</li> | |
<li> | |
<time datetime="2005"><b>2005</b></time> - Becomes a distinguished | |
professor at Texas A&M University | |
</li> | |
<li> | |
<time datetime="2007"><b>2007</b></time> - States "we will have to | |
double the world food supply by 2050." Argues that genetically | |
modified crops are the only way we can meet the demand, as we run | |
out of arable land. Says that GM crops are not inherently | |
dangerous because "we've been genetically modifying plants and | |
animals for a long time. Long before we called it science, people | |
were selecting the best breeds." | |
</li> | |
<li> | |
<time datetime="2009"><b>2009</b></time | |
>- Dies at the age of 95. | |
</li> | |
</ul> | |
</article> | |
<blockquote id="tribute" class="text-content"> | |
<em> | |
"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." | |
</em> | |
<br /> | |
<cite><em>-- Indian Prime Minister Manmohan Singhem</em></cite> | |
</blockquote> | |
</section> | |
</main> | |
<footer> | |
<h3 id="footer-content"> | |
If you have time, you should read more about this incredible human being | |
on his | |
<a href="#" target="_blank" id="tribute-link">Wikipedia entry</a>. | |
</h3> | |
</footer> | |
</body> | |
</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
#main { | |
--content-background: rgb(236, 235, 235); | |
--contrast-background: white; | |
margin: 10px; | |
background-color: var(--content-background); | |
display: flex; | |
flex-direction: column; | |
} | |
header { | |
background-color: var(--contrast-background); | |
} | |
h1 { | |
margin-top: 10px; | |
font-size: 40px; | |
} | |
#title { | |
text-align: center; | |
padding: 10px; | |
} | |
#main-content { | |
max-width: 600px; | |
margin: auto; | |
} | |
footer { | |
padding-top: 20px; | |
padding-bottom: 20px; | |
text-align: center; | |
} | |
#footer-content { | |
margin: auto; | |
max-width: 800px; | |
text-align: center; | |
} | |
.text-content { | |
text-align: justify; | |
} | |
li { | |
margin-top: 10px; | |
} | |
#image { | |
max-width: 100%; | |
height: auto; | |
display: block; | |
margin: auto; | |
} | |
time { | |
font-weight: bold; | |
} | |
#tribute-link:hover { | |
color: blueviolet; | |
} | |
#tribute-link { | |
color: rgba(0, 89, 255, 0.548); | |
} | |
#img-label { | |
padding-top: 20px; | |
padding-bottom: 20px; | |
text-align: center; | |
} | |
#article-title { | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment