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

              
                  <!-- Content -->
<div class="wrapper">
  <main>
    <header>
      <h1>Guillermo Rodas is a Full-stack JavaScript Engineer from Colombia.</h1> 
      <strong>πŸ‡ΈπŸ‡ͺ Currently living in Stockholm, Sweden.</strong>
    </header>
    <p>Overall in his career, he has witnessed how JavaScript is changing the way we build software in the present and how it is influencing the future.</p>
    <p>
      He has worked mostly as a front-end developer on many UI/UX projects. However, don't hesitate in asking him about architecture, brainstorming, product design, Node.js and even about how to learn new things every day.
    </p>
  </main>

  <!-- footer -->
  <footer></footer>
</div>
              
            
!

CSS

              
                /**
 * index.scss
 * - Add any styles you want here!
 */
:root {
  --primary-color: tomato;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: #f5f5f5;
  color: #566b78;
  font-family: "Helvetica", "Arial", sans-serif;
  line-height: 1.5;
}

h1 {
  margin-top: 1em;
  margin-bottom: 0.75em;
  line-height: 1.25;
}

h1,
h2,
strong {
  color: #333;
}

main {
  margin: 0 auto;
  max-width: 40em;
}

footer {
  display: flex;
  justify-content: center;
  background: #17171a;
  padding: 1em;
  margin-top: 2em;
}

ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

ul > li {
  margin: 0 10px;
}

a {
  display: block;
  color: var(--primary-color);
}

.wrapper {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
              
            
!

JS

              
                function ready(cb) {
  document.addEventListener("DOMContentLoaded", cb);
}

const linkList = [
  {
    url: "index.html",
    text: "Home"
  },
  {
    url: "https://www.twitter.com/glrodasz",
    text: "Twitter"
  },
  {
    url: "https://www.linkedin.com/in/guillermorodas",
    text: "LinkedIn"
  },
  {
    url: "https://github.com/glrodasz",
    text: "GitHub"
  }
];

function createLink({ text, url }) {
  // Creamos un elemento tipo link
  const linkElement = document.createElement("a");
  // Creamos un nodo de texto
  const textNode = document.createTextNode(text);

  // Agregamos el texto al link
  linkElement.appendChild(textNode);
  // Especificamos la url del link
  linkElement.href = url;
  // Especificamos el target
  linkElement.target = "_blank";

  return linkElement;
}

function createListItem(linkElement) {
  // Creamos un elemento tipo item de lista
  const listItemElement = document.createElement("li");

  // Agregamos nuestro link a nuestro item de lista
  listItemElement.appendChild(linkElement);

  return listItemElement;
}

function createList() {
  // Creamos una elemento tipo lista no-ordenada
  const unorderedList = document.createElement("ul");

  // Iteramos nuestra lista de links
  linkList.forEach((link) => {
    // Creamos un elemento tipo link
    const linkElement = createLink(link);
    // Creamos un elemento tipo item de lista
    const listItemElement = createListItem(linkElement);
    // Agregamos nuestro item de lista a la lista no-ordenada
    unorderedList.appendChild(listItemElement);
  });

  return unorderedList;
}

function renderFooter() {
  // Creamos la lista no-ordenada
  const list = createList();
  // Seleccionamos el footer
  const footer = document.querySelector("footer");
  // Agregamos nuestra lista no-ordenada al footer
  footer.appendChild(list);
}

// Cuando nuestro contenido este listo pintamos el footer
ready(renderFooter);
              
            
!
999px

Console