Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <main class="flex flex-col h-screen">
  <div class="grid grid-cols-1 md:grid-cols-2">
    <div class="md:row-start-1 md:col-start-2 md:col-end-2 p-12">
      <div class="flex flex-col justify-center h-full">
        <i class="fab fa-twitter text-4xl lg:text-6xl text-blue-400 mb-14"></i>
        <h1 class="text-5xl lg:text-7xl font-bold mb-12">
          Lo que está pasando ahora
        </h1>
        <h2 class="text-2xl lg:text-3xl font-bold mb-4 lg:mb-8">
          Únete a Twitter hoy mismo.
        </h2>
        <div class="flex flex-col">
          <button class="
                  p-4
                  mb-4
                  bg-blue-400
                  text-white
                  font-bold
                  rounded-full
                  text-sm
                  lg:w-2/5
                ">
            Regístrate
          </button>
          <button class="
                  p-4
                  mb-4
                  border border-blue-400
                  text-blue-400
                  font-bold
                  rounded-full
                  text-sm
                  lg:w-2/5
                ">
            Iniciar sesión
          </button>
        </div>
      </div>
    </div>
    <div class="md:row-start-1 md:col-start-1 md:col-end-1" style="height: 95vh">
      <div class="bg-cover h-full bg-center brightness-50" style="background-image: url(https://source.unsplash.com/random)">
        <div class="flex justify-center items-center h-full">
          <i class="fab fa-twitter text-4xl lg:text-9xl text-white mb-14"></i>
        </div>
      </div>
    </div>
  </div>

  <nav class="p-2">
    <ul class="flex flex-wrap justify-center">
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Acerca de</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Centro de ayuda</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Condiciones de Servicio</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Política de Privacidad</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Política de cookies</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Información de anuncios</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Blog</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Estado</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Empleos</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Recursos para marcas</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Publicidad</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Marketing</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Twitter para empresas</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Desarrolladores</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Guía</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">Configuración</a>
      </li>
      <li class="text-xs text-gray-500 mx-2 my-1">
        <a class="border-b-2 border-transparent hover:border-gray-400" href="/">© 2021 Twitter, Inc.</a>
      </li>
    </ul>
  </nav>
</main>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console