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

              
                 <!-- header and nav bar -->
<header>
  <div class= "flex-container-nav">
  <a class="nav-links" href= "#tribute-info">ABOUT</a>
  <a class="nav-links" href= "#second">QUOTES</a> 
  <a class="nav-links" href= "#third">RESOURCES</a>     
  </div>
</header>

<!-- graphic with words -->
<main id= "main">
  <div id= "quote-mobile"> “A ship in port is safe, but that's not what ships are built for. Sail out to sea and do new things”</div>
  <div id= "img-div"> 
  <!-- title image -->
  <img id= "image"      src="https://i.imgur.com/69LWvfX.png"          title="source: imgur.com" alt= " Artistic rendering of Admiral Grace Hopper in front of her teams handwritten code">
  <div id= "title" class="TR"> “A ship in port is safe, but that's not what ships are built for. <br> Sail out to sea and do new things”</div>
  <div class="caption-center">
  <h1> ADMIRAL GRACE HOPPER</h1>
  <h2>COMPUTER SCIENCE PIONEER</h2></div>
  <a id="img-caption">Hopper in 1984
  </a>
</div> 
  
<!-- section 1 about -->
<div class= "flex-container">
  <div class= "flex-child-text" id="tribute-info">
  <p> Grace Murray Hopper was a naval officer, teacher, mathematician, and programmer, whose contributions profoundly shaped the direction of computer science. As a naval officer during WW2, she worked with the Harvard Mark 1 team on calculations essential to the war effort. Later, she was part of the seminal UNIVAC project, where she conceptualized and developed the first compiler to translate English into machine language, opening access to computer programming to the population beyond specialists and mathematicians. Hopper continued to pioneer in her field and connect those emerging technologies with the wider world in both the private sector and as a member of the Navy reserve, including work towards a universal computer language, COBOL in the 1960s and 70s, for which she wrote the world's first computer programming manual. Originally told she was too old and too small to serve, she retired a rear admiral at the age of 79, the oldest serving member of the U.S Armed Forces. Throughout her life she educated students, businesses, and the public, serving as a mentor for emerging programmers and a vital link between the then-esoteric world of computing and its applications to the public. Click 
  <a id="tribute-link" href= "https://news.yale.edu/2017/02/10/grace-murray-hopper-1906-1992-legacy-innovation-and-service" target="_blank" aria-label= "more information about Grace Hopper">the source for this summary</a> to read more about “Amazing Grace” Hopper.
   </p>    
   </div>
  <!-- main image 3 -->
   <div class= "flex-child-image">
   <a href="https://imgur.com/cCNjIwD"><img src="https://i.imgur.com/cCNjIwD.png" title= "Grace Hopper in 1978 by Lynn Gilbert, CC Source: Wikimedia Commons"/></a></div></div>

 <!-- section 2, quotes -->
<div class="flex-container2"> 
  <div id="second" class="flex-child-text2">       
  <h3>“The only phrase I’ve ever disliked is, ‘Why, we’ve always done it that way.’ I always tell young people, ‘Go ahead and do it. You can always apologize later.” </h3>
  <p class="flex-child-text2">Did you know Admiral Hopper is credited with popularizing the phrase “It's better to ask forgiveness than permission” and the use of the term “bug” in computing?<br>
  Hopper was a font of prescient and witty <a id="tribute-link2" href="https://kidadl.com/articles/inspirational-grace-hopper-quotes-from-the-computer-programmer-and-real-admiral" target="_blank" aria-label="A link to more quotes">quotes.</a>
    
  </p>   
  </div>
  
  <!-- main image 2 -->
  <div class= "flex-child-image2">
    <a href="https://imgur.com/WndB4Ow"><img src="https://i.imgur.com/WndB4Ow.png" title="Grace Hopper and UNIVAC, Author Unknown (Smithsonian Institution) CC source: Wikimedia Comons"/>
  </a>
  </div>
  </div>
  
  <!-- section 3, resources -->
 
  <div class= "flex-container3"> 
    <div id= "third" class= "flex-child-text3"><h3>"If you ask me what accomplishment I'm most proud of, the answer would be all the young people I've trained over the years; that's more important than writing the first compiler."</h3>
 <p><br>Grace Hopper has inspired programs, scholarships and awards for the next generation of women in tech. 
The <a id="tribute-link3" 
  href= "https://ghc.anitab.org/" target= "_blank" aria-label= "more information about Anita Borg Grace Hopper Celebration"> Grace Hopper Celebration of Women in Computing</a> is an annual conference that “brings the research and career interests of women in computing to the forefront.”
There are a number of 
  <a id="tribute-link4" href="https://worldscholarshipforum.com/grace-hopper-scholarships/" target= "_blank" aria-label= "more information about scholarships"> scholarships</a> available for attending the conference.
The <a id="tribute-link5" href= "https://www.gracehopper.com/" target= "_blank" aria-label= "more information about Fullstack Academy">Grace Hopper program at Fullstack Academy</a> strives to close the gap for women, trans, and non-binary people by offering software engineering training without any upfront tuition cost. Students pay the tuition interest free upon gaining employment. Diva Tech Talk maintains an excellent <a id="tribute-link6" href= "http://www.divatechtalk.com/resources" target= "_blank" aria-label= "list of scholarships">list</a> with more resources for women interested in learning to code.</p>
  
</div>
   <!-- main image 3 -->
   
<div class= "flex-child-image3"> <a href="https://imgur.com/Qn5gDJ8"><img src="https://i.imgur.com/Qn5gDJ8.png?1" title="Grace Hopper Program 2010 Source: https://www.yumpu.com/en/document/view/8306763/abi-one-ghc-program-v14indd-grace-hopper-celebration-of-"/></a> 
    </div></div></main>                               

  
  
<!-- Footer -->

<footer id= "footer"> 
 <p class= "footer-text">Built for <a href="https://freecodecamp.org/"><img id= img-fcc src="https://design-style-guide.freecodecamp.org/downloads/fcc_primary_large.jpg" alt="FreeCodeCamp logo"/></a>'s tribute page project 2021</p>
</footer>


<!--notes: crop comntainer works, but i lost the nested caption, so cropped in Gimp instead and embedded now image to preserve caption. why doesn't the image scale to total width at 100vw when using figure, but works with div. div made me have to lose figcaption and find a work around for caption that passed the tests-->
 






              
            
!

CSS

              
                /* colors 
#97aabd - light blue
#CB877B - light pink
#02182d - dark blue
#9e5a63 - darker pink
#314455 - cobalt blue
#644e5b - purple
*/

*{
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  color: inherit;
}


header{
    background-color: #02182d;
}

#main{
    line-height: 1.5;
    font-family: font-family: 'Josefin Sans', Tahoma, sans-serif;
    margin: 0;
    max-width: 100vw;
    min-width: 100vw; 
    text-align: center;
    height: 100%;
    background: blue; 
}

.flex-container-nav{
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: right;
}

#img-div {
  position: relative;  
}

.nav-links {
  text-decoration: none;
  color: white;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.4vw;
  padding: 20px 50px 20px 50px;
  font-weight: 500;
  margin-top: 0;
}
.nav-links:hover {
  background-color: #644e5b;
  color: #ffffff;
}

.BL {
   position: absolute;
   bottom: 16%;
   left: 16%;
   Color: #97AABD;
   font-size: 1vw;
}

/* top quote, ship in port */
.TR {
   position: absolute;
   top: 4%;
   bottom: 55%;
   right: 7%;
   font-family: 'Josefin Sans', sans-serif;
   color: #02182d;
   font-style: italic;
   font-weight: 600;
   font-size: 3vw;
   text-shadow: 0 1px 0 #FFF;
}

/* quote for above graphic on smaller screens, quote in graphic media query to disappear */
#quote-mobile{
   color: #02182d; 
   background-color: white;
   font-style: italic;
   font-weight: 600;
   /*font-size: 4.5vw;*/
   font-size: 18.72px;
   font-family: 'Josefin Sans', sans-serif;
   padding: 10px;
   text-align: left;
}

 /* name title Admiral Grace Hopper*/ 
.caption-center {
   position: absolute;
   top: 29%;
   left: 57%;
   right: 10%;
   bottom: 10%;
   font-family: 'Josefin Sans', sans-serif;
   font-weight: 600;
   color: white;
   font-size: 3.4vw;
   text-shadow: 0 2px 0 #02182d;
}

 /* sub title computer science pioneer*/ 
h2
{
  position: absolute;
  top: 92%;
  left: 8%;
  bottom: 0%;
  color: #FFF;
  font-size: 1.9vw;
  line-height: 1;
  padding: 0px 0px 0px 0px;
  text-align: center;
  font-family: "Josefin Sans", Tahoma; 
}

h3
{
  font-style: italic;
  color: white;
  text-align: left;
}

/* caption*/ 
#img-caption{ 
  position: absolute;
  line-height: 1.5;  
  font-family: "Josefin Sans", Tahoma, sans-serif;
  text-align: left;
  top: 96%;
  left: 3%;
  bottom: 0%;
  font-size: 1.4vw;
  color: #9e5a63 ;
  text-shadow: none;
}

#image {
  position: relative;
  width: 100vw;
  height: auto;
  max-width: 100vw;
  display: block;
}

.flex-container
{
  display: flex;
  height: fit-content;
}

.flex-child-text
{
  padding: 2vw;
  font-family:'Josefin Sans', sans-serif;
  color: #CB877B;
  background-color: white;
  text-size-adjust: auto;
  font-size: 1.5vw;
  text-align: left; 
}

.flex-child-image 
{   
  width: 100%;
  height: fit-container;
  float: right;
  background-color: #fff;

}

.flex-container2
{
  display: flex;
  flex-direction: row-reverse;
}

.flex-child-text2
{
  padding: 2vw;
  font-family:'Josefin Sans', sans-serif;
  color: #CB877B;
  background-color: #314455;
  font-size: 1.5vw;
  text-align: left;
}

.flex-child-image2 
{
 width: 100%;
 background-color: #314455;
}

.flex-container3
{
  display: flex;
  flex-direction: row;
}

.flex-child-image3 
{     
  width: 100%;
  float: right;
  background-color: #644e5b;
}

.flex-child-text3
{
  padding: 2vw;
  font-size: 1.5vw;
  font-family:'Josefin Sans', sans-serif;
  color: #CB877B;
  background-color: #644e5b;
  text-align: left; 
}

 /*no duplicate IDs fir ARIA text/ accessibility*/ 

#tribute-link{
  color: #97aabd;
}
#tribute-link:hover {
  color: #02182d;
}
#tribute-link2{
  color: #97aabd;
}

#tribute-link2:hover {
  color: #02182d;
}
#tribute-link3{
  color: #97aabd;
}

#tribute-link3:hover {
  color: #02182d;
}
#tribute-link4{
  color: #97aabd;
}

#tribute-link4:hover {
  color: #02182d;
}
#tribute-link5{
  color: #97aabd;
}

#tribute-link5:hover {
  color: #02182d;
}
#tribute-link6{
  color: #97aabd;
}

#tribute-link6:hover {
  color: #02182d;
}

#tribute-info {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.5vw;
  background-color:#fff;
  padding-top: 3.5vw;
  float: right; 
}

#second {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.5vw;
  background-color:#314455;
  padding-top: 3.5vw;
  float: right;
}

#third {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.5vwpx;
  background-color: #644e5b; 
  padding-top: 3.5vw;
}

.footer-text{
  color: white;
  top: 10%;
  font-family: 'Josefin Sans', sans-serif;
  text-align: center;
  color: #FFF;
  font-size: 1vw;
}
#footer {
  background-color: #02182d;
  padding: 20px;
  
}
#img-fcc{
  width: 12%;
  display: center;
}

@media screen and (min-width: 600px) 
{ #quote-mobile{
  display:none;
  }
}
@media screen and (max-width: 600px)
{.nav-links{
  text-decoration: none;
  color: white;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 3vw;
  padding: 20px 50px 20px 50px;
  font-weight: 500;
  margin-top: 0;
}
  
@media screen and (max-width: 1500px) 
{ .flex-container  {
    flex-direction: column;
  }
 
 .flex-container2  {
    flex-direction: column;
  }
  
   .flex-container3 {
  flex-direction: column;
  }
  #img-caption{
    display: none;
  }
}
  @media screen and (max-width: 600px) 
{
  .TR  {
    display: none;
  }
   
  h2 {
    display: none;
  }
 
  #img-caption{
    display: none;
  }
  #img-fcc{
  width: 30%;
  display: center;
}

              
            
!

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