Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Kalam&family=Playfair+Display&family=Satisfy&family=Space+Mono:wght@700&display=swap" rel="stylesheet">

<main id="main">
  
  <!--Home Section-->
    <!--Home Section box-->
  <div class="home-box">
    
    <header>
      <h1 id="title">Katherine Johnson</h1>
      <h2>A Tribute</h2>
    </header>
    
    <div id="img-div">
      <img id="image" src="https://i.postimg.cc/gcDwKn3n/Tribute-Page2-Home.png">
      <figcaption id="img-caption">An illustration of Katherine Johnson </figcaption>
       <p>"Like what you do, and then you will do your best" ~Katherine Johnson"</p>
    </div>
 </div>
  
  
  <!--About Section-->
    <!--About Section heading-->
    <h3>About Katherine Johnson</h3>
  
  <!--About box: Early Life-->
  <div id="tribute-info" class="about-boxes">
  <div class="about-box about-box1">
    <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Katherine_Johnson_1983.jpg/1920px-Katherine_Johnson_1983.jpg">
    <h4>Early Life</h4>
    <p>Katherine Johnson showed strong mathematical abilities at an early age. She was the first African-American woman to attend graduate school at West Virginia University.</p>
  </div>
  
  <!--About box: Career-->
  <div class="about-box about-box2">
    <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/Katherine_Johnson_at_NASA%2C_in_1966.jpg/1920px-Katherine_Johnson_at_NASA%2C_in_1966.jpg">
    <h4>Career</h4>
    <p>Johnson worked as a "human computer", establishing a career as a research mathematician at NASA. She charted paths for astronauts' safe return to Earth.</p>
  </div>
  
  <!--About box: Legacy-->
  <div class="about-box about-box3">
    <img src="https://i.postimg.cc/wMCTB8SR/Katherine-Johnson-medal-jpeg-modified.jpg">
    <h4>Legacy</h4>
    <p>Two NASA facillities have been named in Johnson's honor. In 2015, she was awarded with the Presidential Medal of Freedom</p>
  </div>
  </div>
  
  
  <!--Timeline Section-->
    <!--Timeline section header-->
  <h3>Timeline</h3>
  
  <!--Timeline-box-->
  <div class="timeline-box">
    <h4>1977</h4>
    <p>NASA Group Achievement Award presented to the Lunar Spacecraft and Operations team – for pioneering work in the field of navigation supporting the spacecraft that orbited and mapped the Moon in preparation for the Apollo program</p>
  </div>
  
  <!--Timeline-box-->
  <div class="timeline-box">
    <h4>1998</h4>
    <p>Honorary Doctor of Laws, from SUNY Farmingdale</p>
  </div>
  
  <!--Timeline-box-->
  <div class="timeline-box">
    <h4>1999</h4>
    <p>West Virginia State College Outstanding Alumnus of the Year</p>
  </div>
  
  <!--Timeline-box-->
  <div class="timeline-box">
    <h4>2006</h4>
    <p>Honorary Doctor of Science by the Capitol College, Laurel, Maryland</p>
  </div>
  
   <!--Timeline-box-->
  <div class="timeline-box">
    <h4>2010</h4>
    <p>Honorary Doctorate of Science from Old Dominion University, Norfolk, Virginia</p>
  </div>
  
  <!--Timeline-box-->
  <div class="timeline-box">
    <h4>2014</h4>
    <p>De Pizan Honor from National Women's History Museum</p>
  </div>
  
  <!--Timeline-box-->
  <div class="timeline-box">
    <h4>2015</h4>
    <p>NCWIT Pioneer in Tech Award</p>
  </div>
  
  
  
  <!--See more Section-->
    <!--See more section header-->
  <h3 class="see-more-header">More About Katherine Johnson</h3>
  
  <!--See more-box-->
  <div class="see-more-box">
    <p><a id="tribute-link" target="_blank" href="https://www.nasa.gov/content/katherine-johnson-biography">Nasa Page</p>
    <p><a target="_blank" href="https://en.wikipedia.org/wiki/Katherine_Johnson">Wikipedia Page</a></p>
    <p><a target="_blank" href="https://www.imdb.com/title/tt4846340/">Hidden Figures IMDb</a></p>
  </div>
  
  
</main>
              
            
!

CSS

              
                body{
  color: #FFFDE6;
  padding: 0px 2px 2px 2px;
  background: black;
  background: rgb(52,16,67);
background: linear-gradient(90deg, rgba(52,16,67,1) 0%, rgba(48,15,60,1) 0%, rgba(0,0,0,1) 33%);
}


/* Front Page */
/* Home box */
.home-box{
  text-align: center;
}

.home-box h1{
  font-family: 'Satisfy', cursive;
  font-size: 70px;
  margin-bottom: 0;
}

.home-box h2{
  margin-top: 0;
  font-size: 30px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
}

.home-box p{
  font-family: 'Playfair Display', serif;
  font-size: 25px;
}

/* Home image */
#img-div{
  margin: 0px;
  overflow: hidden;
}

#image{
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 40px;
  object-fit: contain;
  margin: 0 auto;
  opacity: 0.9;
  display: block;
}

#img-caption{
  text-align: right;
  font-size: 18px;
}


/* Section styles */
h3{
  text-align: center;
  margin-top: 100px;
   font-size: 30px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
}


/* About styles */

.about-box{
  margin-bottom: 90px;
  width: 100%;
}

.about-box img{
  width: 50%;
  margin-left: 25%;
}

.about-box h4{
  text-align: center;
  font-size: 30px;
}

.about-box p {
  text-align: left;
  width: 80%;
  margin-left: 45px;
  padding-left: 15px;
  font-size: 25px;
}


/* Timeline styles */
.timeline-box{
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 5px;
  width: 85%;
  margin: 0 auto;
  margin-bottom: -100px;
}

.timeline-box h4{
  font-size: 65px;
  margin-right: 15px;
  font-family: 'Kalam', cursive;
}

.timeline-box p{
  font-size: 25px;
}


/* See more styles */
.see-more-header{
  margin-top: 160px;
}

.see-more-box{
  text-align: center;
}

.see-more-box p{
  font-size: 25px;
}

.see-more-box a{
  text-decoration: none;
  color: #f9f7dc;
}

.see-more-box a:hover{
  color: #f4dcf9;
  text-decoration: underline;
}


/* Media queries */
@media only screen and (min-width: 900px){
  .about-boxes{
    display:flex;
    align-items: flex-start;
  }
  
  .about-box{
  margin-bottom: 30px;
  width: 100%;
  }
  
  .about-box3{
    margin-top: 1.2%;
  }
  
  .about-box2{
    margin-top: -0.3%; 
  }
  
  .timeline-box{
    width: 50%;
  }
  
}
              
            
!

JS

              
                // !! 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. 

              
            
!
999px

Console