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

              
                <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 

-->
<head>
  <title>FCC: Tribute Page</title>
  <link href="https://fonts.googleapis.com/css?family=Amatic+SC|Josefin+Sans&display=swap" rel="stylesheet">
</head>
<div id="main">
  <div id="header">
  <h1 id="title">Fred Rogers</h1>
  <blockquote>"To love someone is to strive to accept that person exactly the way he or she is, right here and now." - <cite>Rev. Fred Rogers</cite></blockquote>
  </div>
  <div id="img-div">
    <img id="image" src="https://pmcvariety.files.wordpress.com/2018/06/wontyoube.jpg?w=1000&h=563&crop=1" alt="Fred Rogers holding his puppet Daniel Tiger">
        <p id="img-caption">Fred Rogers holding his puppet Daniel Tiger</p>
  </div>
  <div id="tribute-info"><strong>The lasting legacy of Fred Rogers</strong>
       <p>Fred Rogers changed the lives of countless people with his television show, Mister Rogers' Neighborhood. Unimpressed with the quality of children's television, he wanted to create something better. And he really did. To this day, Mister Rogers' Neighborhood remains the best children's show ever created. The program focused on the child's developing psyche, feelings, sense of moral and ethical reasoning, civility, tolerance, sharing, and self-worth. He did not shy away from difficult topics, such as the death, sibling rivalry, having a new sibling, moving and going to a new school, and divorce.</p>
    
    <p>Born <time datetime="1928-03-20">March 20<sup>th</sup>, 1928</time>, Fred McFeely Rogers was a television personality, a musician, a puppeteer, writer, producer, and a Presbyterian minister. He was best known for his show, Mister Rogers' Neighborhood, which ran from 1968-2001. He had a difficult childhood and experienced bullying due to his weight.</p>

<p>The slow-paced, calm nature of his show is in sharp contrast to today's flashy, action-packed shows. Most children's entertainment focuses on holding the child's attention through fast scene changes, zany antics, and instant gratification, while Mister Rogers' Neighborhood focused on substance, and creating a real relationship between Mister Rogers and the viewer. Rogers emphasized young children's social and emotional needs, and did not focus on cognitive learning. He wrote and edited each of the 895 episodes produced, played the piano, performed most of the songs, wrote 200 songs and 13 operas, created all of the characters (both puppet and human), played most of the major puppet roles, performed as host for each episode, and produced and approved every detail of the program.</p>

<p>One of the things that stands out most about Fred Rogers is the way he always spoke to children with respect (and spoke to adults in the same way). He never spoke down to children, he was never patronizing. He never came across as a "teacher", but rather he was a friendly neighbor who just enjoyed spending time with the viewer. He taught people to love wholeheartedly and without pretense.</p>
  </div>
  <div id="footer">
  <blockquote>"Whenever a great tragedy strikes -- war, famine, mass shootings, or even an outbreak of populist rage -- millions of people turn to Fred's messages about life. Then the web is filled with his words and images. With fascinating frequency, his written messages and video clips surge across the Internet, reaching hundreds of thousands of people who, confronted with a tough issue or ominous development, open themselves to Rogers's messages of quiet contemplation, of simplicity, of active listening and the practice of human kindness." - <cite>Maxwell King, biographer</cite></blockquote>
     <p id="footerlink">To read more about Fred Rogers and his legacy, please read <a href="https://en.wikipedia.org/wiki/Fred_Rogers" id="tribute-link" target="_blank">Fred Rogers's Wikipedia page</a>.</p>
    </div>
</div>
              
            
!

CSS

              
                #main {
  grid-gap: 1rem;
  display: grid;
  grid-template-rows: auto auto auto;
  grid-template-columns: minmax(320px, 1000px) auto;
}
#header {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  grid-gap: 1rem;
}
#img-div {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  grid-gap: 1rem;
  justify-self: center;
}
#image {
  width: 100%;
  display: block;
}
img {
  max-width: 1000px;
  border-radius: 10%;
}
#img-caption {
  text-align: center;
  padding: 5px;
}
#tribute-info {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  grid-gap: 1rem;
  background: #ded1a0;
  background-image: linear-gradient(#ded1a0, #efe2ba);
  padding: 5px;
}
#footer {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  grid-gap: 1rem;
}

@media (max-width: 1000px) {
  #main {
  grid-gap: 1rem;
  display: grid;
  grid-template-rows: repeat(5, auto);
  grid-template-columns: 100%;
}
#header {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  grid-gap: 1rem;
}
#img-div {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  grid-gap: 1rem;
  justify-self: center;
}
#image {
  width: 100%;
  display: block;
}
img {
  max-width: 1000px;
  border-radius: 10%;
}
#img-caption {
  text-align: center;
  padding: 5px;
}
#tribute-info {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  grid-gap: 1rem;
  background: #ded1a0;
  background-image: linear-gradient(#ded1a0, #efe2ba);
  padding: 5px;
}
#footer {
  grid-column: 1 / 2;
  grid-row: 4 / 5;
  grid-gap: 1rem;
}
}

h1, h2 {
  font-family: 'Amatic SC', Calibri;
  text-align: center;
}
h1 {
  font-size: 72px;
  color: #f13c20;
}
blockquote {
  width: 50%;
  margin: auto;
  padding: 5px;
}
#footerlink {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}
body {
  font-family: 'Josefin Sans', Calibri;
  background: #efe2ba;
  font-size: 14pt;
}
a:link {
  color: #4056a1;
}
a:visited {
  color: #4056a1;
}
a:hover {
  color: #f13c20;
}
a:active {
  color: #d79922;
}
              
            
!

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