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

              
                <head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta charset="UTF-8">  
</head>
<body>
  <header>
    <div id="page-theme">
      <p>Tribute Page</p>
    </div>
    <div id="title">
      <div id="title-header">
        <h1>
          Luis Gama 
          <small>Brazilian Abolitionist Hero</small>    
        </h1>
      </div>
    </div>
  </header>  
  <main>
    <div id="main">    
      <div id="img-div">        
        <figure>
          <img src="https://bit.ly/2TV7cSK" alt="Foto de Luis Gama" id="image">
          <figcaption id="img-caption">
            <strong>Luis Gama: </strong>lawyer, speaker, journalist, writer 
            and Patron of the Abolition of Brazilian Slavery
          </figcaption>
        </figure>
      </div>
      <div id="tribute-info">
        <div id="tribute-info-title">
          <h2>Life & Career</h2>
          <hr>
        </div>
        <div id="tribute-info-inner">
        <ul>
          <li>
            <strong>1830: </strong><strong>Luiz Gonzaga Pinto da Gama</strong> 
            born on June 21, in Salvador, Bahia.
          </li>
          <li>
            <strong>1840: </strong>He becomes captive and is sold by his own father.
          </li>
          <li>
            <strong>1847: </strong>He begins his literacy process.
          </li>        
          <li>
            <strong>1848: </strong>Knowing to read and write, it obtains 
            irrefutable proofs of the illegality of its condition, since it was 
            the son of a free woman.
          </li>
          <li><strong>1848: </strong>Already free, serves as a soldier for 6 years.
          </li>
          <li>
            <strong>1849: </strong>He publishes his first work, <em>Primeiras Trovas
            Burlescas</em>, which placed him in the literary pantheon of Brazil only
            twelve years after he had learned to read.
          </li>
          <li>
            <strong>1850: </strong>He married and tried to attend the Law Course of 
            Largo do São Francisco, because he was black, faced the hostility of
            teachers and students, but persisted as a listener. He did not finish 
            the course, but the acquired knowledge allowed him to act in the legal
            defense of black slaves.
          </li>
          <li>
            <strong>1854: </strong>He leaves the corporation after being arrested 
            for insubordination.
          </li>
          <li>
            <strong>1856: </strong>He is appointed clerk of the São Paulo Police
            Department.
          </li>
          <li>
            <strong>1860: </strong>From this decade on, he excelled as a 
            journalist and collaborator of several progressive periodicals, 
            besides his performance in the courts, where according to some 
            estimates he was able to free approximately 1000 slaves. The causes
            were diverse, many involving blacks who could pay emancipation 
            letters, but were prevented by their masters from being released,
            or who had entered national territory after the slave trade 
            ban in 1850.
          </li>
          <li>
            <strong>1864: </strong>Together with caricaturist 
            <a href="https://pt.wikipedia.org/wiki/Angelo_Agostini" 
               target="_blank">Angelo Agostini</a>, he founded the capital's
            first humorous newspaper, entitled <em>Diabo Coxo</em>.
          </li>
          <li>
            <strong>1866: </strong>Still with Agostini, now with 
            <a href="https://pt.wikipedia.org/wiki/Am%C3%A9rico_Bras%C3%ADlio_de_Campos" target="_blank">Américo de 
              Campos</a> adhesion, they founded the weekly newspaper
            <em>Cabrião</em>.
          </li>
          <li>
            <strong>1868: </strong>Participates in the foundation of 
            <a href="https://america.mvu.com.br/" 
               target="_blank">Masonic America Lodge</a>, along with 
            <a href="https://pt.wikipedia.org/wiki/Ruy_Barbosa" 
               target="_blank">Ruy Barbosa</a>, 
            <a href="https://pt.wikipedia.org/wiki/Joaquim_Nabuco" 
               target="_blank">Joaquim Nabuco</a>, and others. 
          </li>
          <li>
            <strong>1882: </strong>Luís Gama died on August 24, at the age of 52.
          </li>
        </ul>       
        </div>          
      </div>
      <div id="further-info">
        <p>For more information on Luís Gama, see his  
          <a href="https://pt.wikipedia.org/wiki/Lu%C3%ADs_Gama" 
             id="tribute-link" target="_blank">page on Wikipedia.      
          </a>
        </p>
      </div>
    </div>      
  </main>
  <footer>
    <div id="footer">
      <div id="footer-left">
        <p>
          Copyleft <span class="copyleft">
          &copy;</span> Luis Gama, 
          Tribute Page 2019
        </p>
      </div>
      <div id="footer-right">
        <p>
          Created by Luciano in 
          <a href="https://learn.freecodecamp.org/"
             target="_blank">FreeCodeCamp</a>          
        </p>
      </div>
    </div>
  </footer>
</body>
              
            
!

CSS

              
                /* Importação de fontes */
@import url('https://fonts.googleapis.com/css?family=Roboto:400,900');
@import url('https://fonts.googleapis.com/css?family=Karla|Lato|Montserrat');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800');

/*
TODO:
  - Inserir um elemento com posicionamento relativo;
  - Utilizar medidas em ou rem;
  - 
*/


/* ---------------------------------------------------------------------------------------------- */
/* Variables */
/* ---------------------------------------------------------------------------------------------- */
:root {
    --bg-color-section: rgba(11, 10, 10, 0.4);  
    --bg-color-footer-bottom: rgb(50, 50, 50);
    --page-width: 800px;
}
/* ---------------------------------------------------------------------------------------------- */
/* Variables */
/* ---------------------------------------------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Open Sans';
  font-size: 1em;
  font-weight: 300;
}

header {  
  width: 100%;  
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#page-theme {
  font-size: 25px;
  font-weight: 300;    
  color: rgb(255, 255, 255);  
  border-bottom: 5px solid rgb(255, 255, 255);
  background: var(--bg-color-footer-bottom); 
  height: 60px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 100px;  
}

header > div#page-theme > p {
  width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
}

#title {
  background: var(--bg-color-section);  
  border-bottom: 5px solid var(--bg-color-footer-bottom);  
}

#title-header {  
  width: var(--page-width);
  margin-left: auto;
  margin-right: auto;  
  height: 200px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#title-header > h1 {
  font-size: 50px;
  font-weight: 800 !important;
}

#title-header > h1 > small {
  display: block;
  font-size: 25px;
  font-weight: 300 !important; 
}

#main {
  padding-top: 50px;
}

#img-div {
  padding-bottom: 50px;  
  padding: 50px 100px 50px 100px;
}

figure {  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#image {
  width: 250px;  
  max-width: 100%; 
  border: 5px solid var(--bg-color-footer-bottom);
}

figcaption {
  color: #656565;
  padding-top: 10px;
}

#tribute-info {
  width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
  padding: 50px 0px 50px 0px;
  line-height: 1.7rem;  
  text-align: justify;
}

#tribute-info-inner {
  margin-top: 25px;
}

#tribute-info-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#tribute-info-title > h2 {  
  font-weight: 500;
  font-size: 30px;
  text-align: center;  
  margin-bottom: 10px;
}

#tribute-info-title > hr {
  border: var(--bg-color-footer-bottom) solid 8px;
  text-align: center !important;
  width: 200px;
}

#tribute-info-inner > ul {
  padding-top: 10px;
}

#tribute-info-inner > ul > li > a:hover, p > a:hover {
  color: rgb(105, 105, 105);
  font-weight: bold;
  text-decoration: underline;  
}

#tribute-info-inner > ul > li {
  padding: 10px 0;
  list-style-type: none;
}

#tribute-info-inner > ul > li > strong {
  font-weight: bold;
}

#further-info {
  background: var(--bg-color-section);  
  padding-top: 50px;  
  text-align: center;
  padding-bottom: 50px;  
  border-top: 5px solid var(--bg-color-footer-bottom);
}

#further-info > p {
  width: 800px;
  margin-left: auto;
  margin-right: auto;  
}

footer {
  height: 60px;
  background: var(--bg-color-footer-bottom);
  color: rgb(255, 255, 255);
  font-size: 13px; 
  border-top: 5px solid rgb(255, 255, 255)
}

#footer {
  height: 100%;
  width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: row;
}

#footer-left {
  display: flex;  
  justify-content: flex-start;
  align-items: center; 
  width: 50%;
  height: 100%;
}

#footer-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 50%;
  height: 100%;
}

.copyleft {
  display:inline-block;
  transform: rotate(180deg);
}

/* ---------------------------------------------------------------------------------------------- */
/* Links  */
/* ---------------------------------------------------------------------------------------------- */
:active {
  text-decoration: none;
  color: #696969;
}
 
a:link {
  color: rgb(0, 0, 0);
  font-weight: bold;
  text-decoration: none;
}

a:visited {
  color: rgb(0, 0, 0);
  font-weight: bold;
  text-decoration: none;
}

/* ---------------------------------------------------------------------------------------------- */
/* Tests */
/* ---------------------------------------------------------------------------------------------- */


/* ---------------------------------------------------------------------------------------------- */
/* Device Apple Iphone 5 */
/* ---------------------------------------------------------------------------------------------- */

@media only screen and (max-width: 480px) {
  #page-theme {
    justify-content: center;  
  }
  
  #page-theme > p {
    font-size: 20px;
  }
  
  #title-header {
    width: 320px;    
  }
  
  #title-header > h1 {
    font-size: 35px;    
    text-align: center;
  }
  
  #title-header > h1 > small {
    font-size: 20px;
  }
  
  main > #main {
    margin-top: 0;
    padding-top: 25px;
  }
  
  #img-div {
    padding: 25px 10px 0 10px;
  }
  
  figcaption#img-caption {
    text-align: center;
  }
  
  #tribute-info {    
    padding: 50px 5px 25px 5px;    
    text-align: justify;
    width: 320px;
  }
  
  #tribute-info-inner {
    margin: 0 10px;    
  }
  
  #further-info {
    padding: 50px 5px;
    width: 320px;
    text-align: center;
  }
  
  #further-info > p {
    width: 320px;
  }
  
  footer {
    width: 320px;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  #footer {
    width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 10px; 
    line-height: 0.9rem;
  }
  
  #footer-left, #footer-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100% !important;    
  }


  #footer > p {
    width: 320px;
    text-align: center;
  }
  
}

@media only screen and (max-width: 840px) {
  #title-header {
    width: 90%;
  }
  
  #tribute-info {
    width: 90%;   
  }
  
  #further-info {
    padding: 50px 5px;
    width: 100%;
    text-align: center;
  }
  
  #further-info > p {
    width: 90%;
    text-align: center;
  }  
  
  footer, #footer {
    width: 100%;
  }
  
  #footer {
    width: 90%;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console