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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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 

-->
<main id="main"> 
  <h1 id="title">John Horton Conway</h1>
  <figure id="img-div">
    <img class="portrait" id="image"src="https://upload.wikimedia.org/wikipedia/commons/0/04/John_H_Conway_2005_%28cropped%29.jpg"/>
    <figurecaption id="img-caption">Portrait of John Horton Conway</figurecaption>
  </figure>
  <article id="tribute-info">
    <section>John Horton Conway FRS (26 December 1937 – 11 April 2020) was an English mathematician active in the theory of finite groups, knot theory, number theory, combinatorial game theory and coding theory. He also made contributions to many branches of recreational mathematics, most notably the invention of the cellular automaton called the Game of Life.
    </section>
    <section class="text-content">
      <h2>Timeline of Conway's Life (not the Game)</h2>
      <ul>
        <li><strong class="year">1937</strong>Born in Liverpool, England.</li>
        <li><strong class="year">1948</strong>Develops ambition to become a mathematician.</li>
        <li><strong class="year">1958</strong>Is awarded a BA and, supervised by Harold Davenport, begins to undertake research in number theory. During his years studying at the Cambridge Mathematical Tripos, he develops an interest for games and became an avid backgammon player, spending hours playing the game in the common room. </li>
        <li><strong class="year">1964</strong>Is awarded his doctorate and appointed as College Fellow and Lecturer in Mathematics at Sidney Sussex College, Cambridge.</li>
        <li><strong class="year">1970</strong>Develops the <a href="https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life" target="_blank">Game of Life</a>, which was published in Scientific American and spawned hundreds of computer programs, web sites, and articles. Conway is said to have hated the "Game of Life" for overshadowing some of his deeper and more important ideas.</li>
        <li><strong class="year">1971</strong>Receives the Berwick Prize from the London Mathematical Society, which is awarded for outstanding pieces of mathematical research.</li>
        <li><strong class="year">1974</strong>His book <a href="https://en.wikipedia.org/wiki/On_Numbers_and_Games" target="_blank">On Numbers and Games</a> is published. It introduces the notion that numbers are a subclass of games which introduce the axioms for "greater than" and "less than".</li>
        <li><strong class="year">1981</strong>Is elected a Fellow of the Royal Society, which is granted to to individuals who have made a 'substantial contribution to the improvement of natural knowledge, including mathematics, engineering science, and medical science'..</li>
        <li><strong class="year">1986</strong>Leaving Cambridge to take up the appointment to the John von Neumann Chair of Mathematics at Princeton University.</li>
        <li><strong class="year">1987</strong>First recipient of the Pólya Prize.</li>
        <li><strong class="year">2000</strong>Receives the Leroy P. Steele Prize for Mathematical Exposition (2000) of the American Mathematical Society.</li>
        <li><strong class="year">2004</strong>Conway and Simon B. Kochen, another Princeton mathematician, prove the free will theorem, a startling version of the "no hidden variables" principle of quantum mechanics.</li>
        <li><strong class="year">2020</strong>Develops symptoms of COVID-19 on April 8th and dies a mere 3 days later on April 11th, 2020 at the age of 82 in New Brunswick, New Jersey. </li>
      </ul>
    </section>
    <figure>
      <img src="https://imgs.xkcd.com/comics/rip_john_conway.gif" />
      <figurecaption>Tribute to Conway by <a href="https://xkcd.com/2293/">xkcd</a></figurecaption>
    </figure>
    <blockquote>A versatile mathematician who combines a deep combinatorial insight with algebraic virtuosity, particularly in the construction and manipulation of "off-beat" algebraic structures which illuminate a wide variety of problems in completely unexpected ways. He has made distinguished contributions to the theory of finite groups, to the theory of knots, to mathematical logic (both set theory and automata theory) and to the theory of games (as also to its practice).<cite>Nomination to the Royal Society</cite></blockquote>
  </article>
  <footer> 
    <span class="disclaimer">Large sections of this page are shamelessly copied from this</span>
    <br>
    <a id="tribute-link" href="https://en.wikipedia.org/wiki/John_Horton_Conway" target="_blank">Wikipedia article on John Horton Conway</a>
  </footer>
 </main>
              
            
!

CSS

              
                * {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  box-sizing: border-box;
}


html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.6;
  color: hsl(0, 0%, 20%);
  background-color: hsl(0, 0%, 100%);
}

::selection {
  background-color: hsla(80, 100%, 50%, 50%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-top: 2em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1em;
}

p,
ul,
ol,
pre {
  margin-top: 0.75em;
}

li {
  margin-top: 0.25em;
}

code {
  display: inline;
  font-size: 1.25em;
}

code, pre {
  background-color: hsl(204, 15%, 94%);
  padding: 0.3em 0.4em;
  border-radius: 0.2em;

  font-family: monospace;
}


a {
  color: hsl(210, 100%, 50%);
  text-decoration: none;
}

a:hover {
  /*border-bottom: 2px hsl(210, 100%, 55%) solid;*/
  text-decoration: underline
}

a:visited {
  color: hsl(210, 100%, 40%);
}

ul,
ol {
  list-style-position: outside;
  padding-left: 1.75em; 
}

ul > li,
ol > li {
  padding-left: 0.5em;
}

ul > li {
  list-style: disc;
}

hr {
  margin: 50px 0;
  border: none;
  border-top: 1px solid hsl(0, 0%, 90%);
}


/*************************************************/

main {
  max-width: 80ch;
  margin: 0 auto 2rem;
}
@media (max-width: 90ch) {
  main {
    padding: 0 2em;
  }
}

h1 {
  text-align: center;
  margin: 2rem 0;
}

figure {
  text-align: center;
  margin: 2rem 0;
}

figure img {
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  margin: 0 auto;
  display: block;
}

img .portrait {
  filter: grayscale(100%);
}

figurecaption {
  display: inline-block;
  margin-top: 0.2em;
  color: hsl(0, 0%, 50%);
}

ul {
  padding-left: 3em;
}

ul > li {
  list-style: none;
  list-style-position: outside;
  padding-left: 0;
}

ul > li > .year {
  display: inline-block;
  margin-left: -3em;
  min-width: 3em;
}

blockquote {
  margin: 2rem 3rem 1rem;
}

blockquote::before{
  margin: 0;
  padding: 0;
  line-height: 0;
  content: "\201C";
  font-size: 50px;
  display: block;
  position: relative;
  top: 20px;
  left: -30px;
  font-family: "Times New Roman", serif;
  color: hsl(0, 0%, 50%);
}

cite::before {
  content: " \2013  ";
}

footer {
  padding: 2rem 0;
  text-align: center;
}

.disclaimer {
  color: hsl(0, 0%, 50%);
  font-size: smaller;
}
              
            
!

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