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

              
                3<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<main id="main">
  <header id="header">
    <h1 id="title"><span class="title_style1">Dr. Cornel</span><span class="title_style2"> West</span></h1>
    <p id="title-quote"><span class="title_style3">"Justice is what Love</span><span class="title_style4"> looks like in Public"</span></p>

    <figure id="header_img">
      <img  id="header_img1" src="https://i.ibb.co/g6wB0dK/f-CC-Tribute-Phot-Layout.jpg" alt="Cornel West address a group Credit:Jim Ruymen, UPI/Landov; Cornel West speaks at the Performing Arts Center at Rockwell Hall at Buffalo State College on Nov. 6, 2008; Cornel West at the Time 100 Gala in 2009 in New York" width="1369" height="1000">
      <img id="header_img2" src="https://i.ibb.co/s3Yx65x/f-CC-Tribute-Img913x667.jpg" alt="Cornel West address a group Credit:Jim Ruymen, UPI/Landov; Cornel West speaks at the Performing Arts Center at Rockwell Hall at Buffalo State College on Nov. 6, 2008; Cornel West at the Time 100 Gala in 2009 in New York" width="913" height="677">
      </figure>
    <figcaption id="img-caption">Faces of Dr. West (clockwise from upper left): Answering the tough questions, speaking elequently, and bringing the levity.
    </figcaption>
  </header>
  <h2>Professor • Philosopher • Author • Activist</h2>
  <p id="intro">There is a difficulty in separating the major tangents of Dr. West’s life, as he has continually exhibited the ability to interweave his threads of expertise into a beautifully articulated whole. Here then is the highlights of a career spanning decades and touching the lives of millions. (Quoted freely from: <a id="tribute-link" target="_blank" href="https://www.encyclopedia.com/people/social-sciences-and-law/education-biographies/cornel-west">Encyclopedia.com's page on Dr. West)</a></p>
  <div id="tribute-info">
    <h3>Background</h3>
    <ul>
      <li>Born Cornel Ronald West, June 2, 1953, in Tulsa, OK; son of Clifton L., Jr. and Irene (Bias) West; divorced twice; married third wife; children: Clifton Louis. Education: Harvard College, A.B., 1973; Princeton University, M.A., 1975, Ph.D., 1980. Politics: Democratic Socialists of America (DSA). Religion: Baptist.</li>
      <li>Assistant professor of philosophy of religion at Union Theological Seminary, 1977-83 and 1988, Yale Divinity School, 1984-87, and University of Paris VIII, spring 1987; director of Afro-American Studies and professor of religion at Princeton University, 1989—. Involved in Theology in the Americas movement. Joined Democratic Socialists of America, 1982; served on national political committee for seven years; became honorary chairperson.</li>
    </ul>
    <h3>Career Highlights</h3>
    <ul>
      <li>Professor of religion and director of Afro-American Studies at Princeton University, Cornel West has dazzled a vast array of audiences from scholars and activists to students and churchgoers with his analytical speeches and writings on issues of morality, race relations, cultural diversity, and progressive politics. A keeper of the prophetic African American religious tradition, West taught the philosophy of religion at both Union Theological Seminary and Yale Divinity School before landing his position at Princeton.</li>
      <li>As a scholar, activist, and teacher of religion, West juggles his theological concerns with his political convictions. While teaching religion at Yale, for instance, he was arrested for participating in a protest rally. West’s blend of philosophy and an “on-the-streets” politics reflects his passion and commitment to his main goal: namely, “uphold[ing] the moral character of the black freedom struggle in America,” as he was quoted as saying in Emerge.</li>
      <li>Refered to fondly as “our black Jeremiah” by Henry Louis Gates, Jr.--chair of Harvard University’s African American Studies Department--West serves dual roles as prophet and intellectual both within and beyond the black community in the United States. His writings, which reflect the theories of early American historian Sacvan Bercovitch, combine a dual castigation for moral failure with an optimism that insists on the possibility—through struggle— of making real a world of higher morality.</li>
      <li>In a 1991 book written with West, African American social critic bell hooks wrote that “the word ‘prophetic’ has emerged as that expression which best names both West’s intellectual project, his spiritual commitment, and his revolutionary political agenda.” Their book. Breaking Bread: Insurgent Black Intellectual Life, draws its title from West’s own model for an effective— and sorely-needed—relevant black intellectual community.</li>
      <li>West envisions the most effective role for the black intellectual as a “critical, organic catalyst” in what he calls the “insurgency model.” In this model, intellectuals would challenge the status quo, voicing opposition to an inherently racist civil authority. The rebellion would then lead to the creation in the long term of a “post-(not anti-) Western civilization” and the revitalization in the short term of institutions that foster insightful critical thought and serve the cause of black insurgency.</li>
    </ul>
  </div>
  <footer>
    <p>For further reading on Dr. West, please visit <a id="resource-link" target="_blank" href="http://www.cornelwest.com/">his official website</a>.</p>
    <p class="footer_credits">&copy;2020 seven stevens and weir works</p>
  </footer>
</main>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
#main {
  top: 0;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  background: #fcfafc;
  position: relative;
}
figure {
  margin: 0;
}
#header {
  display: grid;
  grid-template-columns: repeat(25%, minmax(20em, 1fr));
  grid-template-rows: repeat(33%, minmax(10em, 1fr));
  grid-template-areas:
    "title title img img"
    "titleQ titleQ img img"
    "cap cap cap cap";
  background: #beb3c3;
  width: 100%;
}
h1 {
  margin: 0;
}
#title {
  grid-area: title;
  font-family: "Bowlby One SC", cursive;
  margin-left: 0.5em;
}
h1 span {
  display: table;
  line-height: 1.5em;
}
.title_style1 {
  font-size: calc(2rem + 2.25vw);
}
.title_style2 {
  font-size: calc(2.5rem + 2.25vw);
}
p span {
  display: table;
}
.title_style3 {
  margin-left: 3em;
}
.title_style4 {
  margin-left: 6em;
}
#title-quote {
  grid-area: titleQ;
  font-size: calc(1.5rem + 1vw);
  font-family: "Permanent Marker", cursive;
  align-self: start;
  margin: 0;
  padding: 0;
  width: 100%;
}
img {
  max-width: 100%;
  height: auto;
}
#header_img {
  grid-area: img;
}
#header_img1 {
  display: initial;
}
#header_img2 { 
  display: none;
}
#img-caption {
  grid-area: cap;
  align-self: end;
  text-align: center;
  font-size: 1em;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0.5em;
  padding-top: 1.5em;
}
#tribute-info {
  width: 75%;
  border: 1em solid #e2dee3;
  padding: 0.75em;
  margin: auto;
}
h2 {
  font-size: 3em;
  font-family: Georgia, serif;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5em;
  background: #e2dee3;
  width: 100%;
}
h3 {
  display: inline;
  font-size: 2.5em;
  font-family: Georgia, serif;
  text-align: left;
  margin-left: 0.5em;
  padding: 0 0.5em;
  border: 0.1em solid black;
}
#intro {
  font-size: 1.25em;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 65%;
  padding: 1em;
}
ul {
  font-size: 1.25em;
  text-align: left;
  margin-left: 1em;
  margin-right: auto;
  /*width: 70%;*/
}
li {
  padding: 1em;
}
footer {
  display: flex;
  justify-content: space-evenly;
  background: #beb3c3;
  margin-top: 1em;
}
footer p {
  text-align: left;
  font-size: 1em;
  padding: 1em 0;
  margin-left: 1em;
}
.footer_credits {
  font-size: 1em;
  font-family: "Grenze", serif;
  text-align: right;
  padding: 1em 0;
  margin-right: 1em;
}
@media screen and (max-width: 64em) {
  #header {
    grid-template-columns: repeat(33%, minmax(20em, 1fr));
    grid-template-rows: repeat(33%, minmax(10em, 1fr));
    grid-template-areas:
      "title img img"
      "titleQ img img"
      "cap cap cap";
  }
  .title_style1 {
  font-size: calc(2rem + 2vw);
  }
  .title_style2 {
  font-size: calc(2.5rem + 2vw);
  }
  .title_style3 {
  margin-left: 1.5em;
  }
  .title_style4 {
  margin-left: 3em;
  }
  #title-quote {
    font-size: calc(1.25rem + 1vw);
  }
  #img-caption {
    padding-left: 1em;
    padding-right: 1em;
    font-size: .75em;
  }
  h2 {
  font-size: 2em;
  }
  h3 {
    font-size: 1.5em;
  }
  #intro, ul {
  font-size: 1em;
  }
  footer p {
  margin-left: .5em;
  }
  .footer_credits {
  margin-right: .5em;
  }
  #header_img1 {
  display: none;
  }
  #header_img2 { 
    display: initial;
  }
}
@media screen and (max-width: 48em) {
  #header {
    grid-template-columns: repeat(50%, minmax(20em, 1fr));
    grid-template-rows: repeat(33%, minmax(10em, 1fr));
    grid-template-areas:
      "title img"
      "titleQ img"
      "cap cap";
  }
  .title_style1 {
  font-size: calc(2rem + 1vw);
  }
  .title_style2 {
  font-size: calc(2.5rem + 1vw);
  }
  .title_style3 {
  margin-left: 1em;
  }
  .title_style4 {
  margin-left: 2em;
  }
  #title-quote {
    font-size: calc(1rem + 1vw);
  }
}
@media screen and (max-width: 32em) {
  .title_style1 {
  font-size: calc(1.5rem + 0.75vw);
  }
  .title_style2 {
  font-size: calc(2rem + 0.75vw);
  }
  .title_style3 {
  margin-left: .5em;
  }
  .title_style4 {
  margin-left: 1em;
  }
  #title-quote {
    font-size: calc(0.75rem + 0.75vw);
  }
  h2 {
  font-size: 1.5em;
  }
  h3 {
    font-size: 1em;
  }
  #intro, ul {
  font-size: 0.75em;
  }
  footer p {
  font-size: 0.5em;
  }
  .footer_credits {
  font-size: 0.5em;
  }
}

              
            
!

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