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

              
                <div class="bg-gray-200 px-4 py-4">
      <div
        class="md:max-w-6xl md:mx-auto md:flex md:items-center md:justify-between"
        x-data="{ open: false }"
        x-cloak
      >
        <div class="flex justify-between items-center">
          <a href="#" class="inline-block py-2 text-gray-800 text-2xl font-bold"
            >Stats.</a
          >
          <div
            class="inline-block cursor-pointer md:hidden"
            x-on:click="open = true"
          >
            <div class="bg-gray-400 w-8 mb-2" style="height: 2px;"></div>
            <div class="bg-gray-400 w-8 mb-2" style="height: 2px;"></div>
            <div class="bg-gray-400 w-8" style="height: 2px;"></div>
          </div>
        </div>

        <div x-show="open" x-on:click.away="open = false">
          <a href="#" class="block py-2 text-blue-800">How it Works</a>
          <a href="#" class="block py-2 text-gray-500 hover:text-gray-600"
            >Solutions</a
          >
          <a href="#" class="block py-2 text-gray-500 hover:text-gray-600"
            >Pricing</a
          >
          <a href="#" class="block py-2 text-gray-500 hover:text-gray-600"
            >Desktop</a
          >

          <div class="flex items-center justify-between pt-4">
            <a
              href="#"
              class="w-1/2 inline-block py-2 px-4 text-gray-600 hover:text-blue-800 bg-gray-100 hover:bg-gray-300 rounded-lg text-center mr-2 font-bold"
              >Login</a
            >
            <a
              href="#"
              class="w-1/2 truncate inline-block py-2 px-4 text-white bg-red-500 hover:bg-red-600 rounded-lg text-center font-bold"
              >Start a free trial</a
            >
          </div>
        </div>

        <div>
          <div class="hidden md:block">
            <a
              href="#"
              class="inline-block py-1 md:py-4 text-gray-600 mr-6 font-bold"
              >How it Works</a
            >
            <span x-data="{ open: false }" class="relative">
              <a
                href="#"
                x-on:click.prevent="open = true"
                class="inline-block py-1 md:py-4 text-gray-500 hover:text-gray-600 mr-6"
                >Solutions
                <span x-show="open">&minus;</span>
                <span x-show="!open">&plus;</span>
              </a>
              <div
                class="z-20 w-40 bg-white absolute mt-8 -ml-3 top-0 left-0 rounded-lg shadow-lg py-2 overflow-hidden block"
                x-show="open"
                x-on:click.away="open = false"
              >
                <a
                  href="#"
                  class="px-4 block py-2 text-gray-600 hover:text-blue-700 hover:bg-blue-100"
                  >Link One</a
                >
                <a
                  href="#"
                  class="px-4 block py-2 text-gray-600 hover:text-blue-700 hover:bg-blue-100"
                  >Link Two</a
                >
                <a
                  href="#"
                  class="px-4 block py-2 text-gray-600 hover:text-blue-700 hover:bg-blue-100"
                  >Link Three</a
                >
                <a
                  href="#"
                  class="px-4 block py-2 text-gray-600 hover:text-blue-700 hover:bg-blue-100"
                  >Link Four</a
                >
              </div>
            </span>
            <a
              href="#"
              class="inline-block py-1 md:py-4 text-gray-500 hover:text-gray-600 mr-6"
              >Pricing</a
            >
            <a
              href="#"
              class="inline-block py-1 md:py-4 text-gray-500 hover:text-gray-600 mr-6"
              >Desktop</a
            >
          </div>
        </div>
        <div class="hidden md:block">
          <a
            href="#"
            class="inline-block py-1 md:py-4 text-gray-500 hover:text-gray-600 mr-6"
            >Login</a
          >
          <a
            href="#"
            class="inline-block py-2 px-4 text-gray-700 bg-white hover:bg-gray-100 rounded-lg"
            >Start a free trial</a
          >
        </div>
      </div>
    </div>

    <div class="bg-gray-200 md:overflow-hidden">
      <div class="px-4 py-16">
        <div class="relative md:max-w-2xl md:mx-auto text-center">
          <h1
            class="font-bold text-gray-700 text-2xl md:text-5xl leading-tight mb-6"
          >
            A simple and smart tool that will help grow your business
          </h1>

          <p class="text-gray-600 md:text-xl md:px-18">
            Lorem ipsum, dolor sit amet consectetur adipisicing elit hello.
          </p>

          <div
            class="hidden md:block h-40 w-40 rounded-full bg-blue-800 absolute right-0 bottom-0 -mb-64 -mr-48"
          ></div>

          <div
            class="hidden md:block h-5 w-5 rounded-full bg-yellow-500 absolute top-0 right-0 -mr-40 mt-32"
          ></div>
        </div>
      </div>

      <svg
        class="fill-current bg-gray-200 text-white hidden md:block"
        xmlns="http://www.w3.org/2000/svg"
        viewBox="0 0 1440 320"
      >
        <path
          fill-opacity="1"
          d="M0,64L120,85.3C240,107,480,149,720,149.3C960,149,1200,107,1320,85.3L1440,64L1440,320L1320,320C1200,320,960,320,720,320C480,320,240,320,120,320L0,320Z"
        ></path>
      </svg>
    </div>

    <div
      class="max-w-4xl mx-auto bg-white shadow-lg relative z-20 hidden md:block"
      style="margin-top: -320px; border-radius: 20px;"
    >
      <div
        class="h-20 w-20 rounded-full bg-yellow-500 absolute top-0 left-0 -ml-10 -mt-10"
        style="z-index: -1;"
      ></div>

      <div
        class="h-5 w-5 rounded-full bg-blue-500 absolute top-0 left-0 -ml-32 mt-12"
        style="z-index: -1;"
      ></div>

      <div class="h-10 bg-white rounded-t-lg border-b border-gray-100"></div>
      <div class="flex" style="height: 550px;">
        <div class="w-32 bg-gray-200 p-6 overflow-hidden rounded-bl-lg">
          <div class="text-center mb-10">
            <div class="w-10 h-10 rounded-full bg-blue-800 mb-4 mx-auto"></div>
            <div class="h-2 rounded-full bg-blue-800"></div>
          </div>

          <div class="text-center mb-10">
            <div class="w-10 h-10 rounded-full bg-gray-300 mb-4 mx-auto"></div>
            <div class="h-2 rounded-full bg-gray-300"></div>
          </div>

          <div class="text-center mb-10">
            <div class="w-10 h-10 rounded-full bg-gray-300 mb-4 mx-auto"></div>
            <div class="h-2 rounded-full bg-gray-300"></div>
          </div>

          <div class="text-center">
            <div class="w-10 h-10 rounded-full bg-gray-300 mb-4 mx-auto"></div>
            <div class="h-2 rounded-full bg-gray-300"></div>
          </div>
        </div>
        <div class="flex-1 py-6 px-8">
          <div class="flex flex-wrap -mx-4">
            <div class="w-2/3 px-4">
              <div class="flex flex-wrap -mx-4 mb-10">
                <div class="w-1/4 px-4">
                  <div class="text-center mb-10 bg-white shadow rounded-lg p-6">
                    <div
                      class="w-10 h-10 rounded-full bg-green-600 mb-4 mx-auto"
                    ></div>
                    <div class="h-2 rounded-full bg-gray-200"></div>
                  </div>
                </div>
                <div class="w-1/4 px-4">
                  <div class="text-center mb-10 bg-white shadow rounded-lg p-6">
                    <div
                      class="w-10 h-10 rounded-full bg-blue-600 mb-4 mx-auto"
                    ></div>
                    <div class="h-2 rounded-full bg-gray-200"></div>
                  </div>
                </div>
                <div class="w-1/4 px-4">
                  <div class="text-center mb-10 bg-white shadow rounded-lg p-6">
                    <div
                      class="w-10 h-10 rounded-full bg-orange-400 mb-4 mx-auto"
                    ></div>
                    <div class="h-2 rounded-full bg-gray-200"></div>
                  </div>
                </div>
                <div class="w-1/4 px-4">
                  <div class="text-center mb-10 bg-white shadow rounded-lg p-6">
                    <div
                      class="w-10 h-10 rounded-full bg-blue-800 mb-4 mx-auto"
                    ></div>
                    <div class="h-2 rounded-full bg-gray-200"></div>
                  </div>
                </div>
              </div>

              <div class="h-32 percentage mb-10 pt-2">
                <div class="h-4 bg-gray-200 w-64 mb-4 block"></div>
                <div class="h-4 bg-gray-200 w-32 mb-4 block"></div>
                <div class="h-4 bg-gray-200 w-40 mb-4 block"></div>
                <div class="h-4 bg-gray-200 w-20 mb-4 block"></div>
              </div>

              <div class="w-full flex flex-wrap mb-6">
                <div class="w-1/2">
                  <div class="flex items-center">
                    <div class="h-8 w-8 rounded-full bg-gray-200 mr-4"></div>
                    <div>
                      <div class="h-2 w-16 bg-gray-200 mb-1 rounded-full"></div>
                      <div class="h-2 w-10 bg-gray-100 rounded-full"></div>
                    </div>
                  </div>
                </div>
                <div class="w-1/2">
                  <div class="flex items-center">
                    <div class="h-8 w-8 rounded-full bg-gray-200 mr-4"></div>
                    <div>
                      <div class="h-2 w-16 bg-gray-200 mb-1 rounded-full"></div>
                      <div class="h-2 w-10 bg-gray-100 rounded-full"></div>
                    </div>
                  </div>
                </div>
              </div>

              <div class="w-full flex flex-wrap">
                <div class="w-1/2">
                  <div class="flex items-center">
                    <div class="h-8 w-8 rounded-full bg-gray-200 mr-4"></div>
                    <div>
                      <div class="h-2 w-16 bg-gray-200 mb-1 rounded-full"></div>
                      <div class="h-2 w-10 bg-gray-100 rounded-full"></div>
                    </div>
                  </div>
                </div>
                <div class="w-1/2">
                  <div class="flex items-center">
                    <div class="h-8 w-8 rounded-full bg-gray-200 mr-4"></div>
                    <div>
                      <div class="h-2 w-16 bg-gray-200 mb-1 rounded-full"></div>
                      <div class="h-2 w-10 bg-gray-100 rounded-full"></div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="w-1/3 px-4">
              <div class="rounded-lg shadow-lg p-6">
                <div class="block w-12 h-2 rounded-full bg-gray-200 mb-6"></div>

                <svg
                  height="150"
                  width="150"
                  viewBox="0 0 20 20"
                  class="mx-auto mb-12"
                >
                  <circle r="10" cx="10" cy="10" fill="#4299e1" />
                  <circle
                    r="5"
                    cx="10"
                    cy="10"
                    fill="transparent"
                    stroke="#2b6cb0"
                    stroke-width="10"
                    stroke-dasharray="11 31.4"
                    transform="rotate(-90) translate(-20)"
                  />
                </svg>

                <div class="flex flex-wrap -mx-2 mb-10">
                  <div class="w-1/3 px-2">
                    <div class="block h-2 rounded-full bg-gray-200"></div>
                  </div>
                  <div class="w-1/3 px-2">
                    <div class="block h-2 rounded-full bg-gray-200"></div>
                  </div>
                  <div class="w-1/3 px-2">
                    <div class="block h-2 rounded-full bg-gray-200"></div>
                  </div>
                </div>
              </div>

              <div class="flex justify-between my-10">
                <div>
                  <div class="h-2 w-10 bg-gray-300 rounded-full mb-2"></div>
                  <div class="h-2 w-16 bg-gray-300 rounded-full mb-2"></div>
                  <div class="h-2 w-8 bg-gray-300 rounded-full"></div>
                </div>
                <div>
                  <div
                    class="ml-auto h-2 w-5 bg-gray-300 rounded-full mb-2"
                  ></div>
                  <div
                    class="ml-auto h-2 w-6 bg-gray-300 rounded-full mb-2"
                  ></div>
                  <div class="ml-auto h-2 w-8 bg-gray-300 rounded-full"></div>
                </div>
              </div>

              <div class="text-right flex justify-end">
                <div class="rounded-lg h-8 w-20 px-4 bg-gray-200 mr-2"></div>
                <div class="rounded-lg h-8 w-20 px-4 bg-green-400"></div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="px-4 md:hidden">
      <div
        class="-mt-10 max-w-4xl mx-auto bg-white shadow-lg relative z-20"
        style="border-radius: 20px;"
      >
        <div class="h-10 bg-white rounded-t-lg border-b border-gray-100"></div>
        <div class="flex" style="height: 340px;">
          <div class="w-16 bg-gray-200 px-2 py-6 overflow-hidden rounded-bl-lg">
            <div class="text-center mb-6">
              <div class="w-4 h-4 rounded-full bg-blue-800 mb-2 mx-auto"></div>
              <div class="h-2 w-8 mx-auto rounded-full bg-blue-800"></div>
            </div>
            <div class="text-center mb-6">
              <div class="w-4 h-4 rounded-full bg-gray-300 mb-2 mx-auto"></div>
              <div class="h-2 w-8 mx-auto rounded-full bg-gray-300"></div>
            </div>
            <div class="text-center mb-6">
              <div class="w-4 h-4 rounded-full bg-gray-300 mb-2 mx-auto"></div>
              <div class="h-2 w-8 mx-auto rounded-full bg-gray-300"></div>
            </div>
            <div class="text-center">
              <div class="w-4 h-4 rounded-full bg-gray-300 mb-2 mx-auto"></div>
              <div class="h-2 w-8 mx-auto rounded-full bg-gray-300"></div>
            </div>
          </div>
          <div class="flex-1 py-6 px-4">
            <div class="flex flex-wrap -mx-2">
              <div class="w-1/3 px-2">
                <div
                  class="text-center mb-6 bg-white shadow rounded-lg px-2 py-3"
                >
                  <div
                    class="w-4 h-4 rounded-full bg-green-600 mb-2 mx-auto"
                  ></div>
                  <div class="h-2 w-8 mx-auto rounded-full bg-gray-200"></div>
                </div>
              </div>
              <div class="w-1/3 px-2">
                <div
                  class="text-center mb-6 bg-white shadow rounded-lg px-2 py-3"
                >
                  <div
                    class="w-4 h-4 rounded-full bg-blue-600 mb-2 mx-auto"
                  ></div>
                  <div class="h-2 w-8 mx-auto rounded-full bg-gray-200"></div>
                </div>
              </div>
              <div class="w-1/3 px-2">
                <div
                  class="text-center mb-6 bg-white shadow rounded-lg px-2 py-3"
                >
                  <div
                    class="w-4 h-4 rounded-full bg-orange-600 mb-2 mx-auto"
                  ></div>
                  <div class="h-2 w-8 mx-auto rounded-full bg-gray-200"></div>
                </div>
              </div>
            </div>

            <div class="flex flex-wrap -mx-2 mb-6">
              <div class="w-1/2 px-2">
                <div class="shadow h-24 p-2 rounded-lg">
                  <div class="h-20 percentage pt-2">
                    <div class="h-2 bg-gray-200 w-24 mb-2 block"></div>
                    <div class="h-2 bg-gray-200 w-12 mb-2 block"></div>
                    <div class="h-2 bg-gray-200 w-20 mb-2 block"></div>
                    <div class="h-2 bg-gray-200 w-8 mb-2 block"></div>
                  </div>
                </div>
              </div>
              <div class="w-1/2 px-2">
                <div class="rounded-lg shadow px-2 py-2">
                  <div
                    class="block w-8 h-2 rounded-full bg-gray-200 mb-2"
                  ></div>

                  <div class="mb-2">
                    <svg
                      height="50"
                      width="50"
                      viewBox="0 0 20 20"
                      class="mx-auto"
                    >
                      <circle r="10" cx="10" cy="10" fill="#ddd" />
                      <circle
                        r="5"
                        cx="10"
                        cy="10"
                        fill="transparent"
                        stroke="#eee"
                        stroke-width="10"
                        stroke-dasharray="11 31.4"
                        transform="rotate(-90) translate(-20)"
                      />
                    </svg>
                  </div>

                  <div class="flex flex-wrap -mx-2">
                    <div class="w-1/3 px-2">
                      <div class="block h-2 rounded-full bg-gray-200"></div>
                    </div>
                    <div class="w-1/3 px-2">
                      <div class="block h-2 rounded-full bg-gray-200"></div>
                    </div>
                    <div class="w-1/3 px-2">
                      <div class="block h-2 rounded-full bg-gray-200"></div>
                    </div>
                  </div>
                </div>
              </div>
            </div>

            <div class="w-full flex flex-wrap mb-2">
              <div class="w-1/2">
                <div class="flex items-center">
                  <div class="h-4 w-4 rounded-full bg-gray-200 mr-4"></div>
                  <div>
                    <div class="h-2 w-10 bg-gray-200 mb-1 rounded-full"></div>
                    <div class="h-2 w-6 bg-gray-100 rounded-full"></div>
                  </div>
                </div>
              </div>
              <div class="w-1/2">
                <div class="flex items-center">
                  <div class="h-4 w-4 rounded-full bg-gray-200 mr-4"></div>
                  <div>
                    <div class="h-2 w-10 bg-gray-200 mb-1 rounded-full"></div>
                    <div class="h-2 w-6 bg-gray-100 rounded-full"></div>
                  </div>
                </div>
              </div>
            </div>

            <div class="w-full flex flex-wrap mb-6">
              <div class="w-1/2">
                <div class="flex items-center">
                  <div class="h-4 w-4 rounded-full bg-gray-200 mr-4"></div>
                  <div>
                    <div class="h-2 w-10 bg-gray-200 mb-1 rounded-full"></div>
                    <div class="h-2 w-6 bg-gray-100 rounded-full"></div>
                  </div>
                </div>
              </div>
              <div class="w-1/2">
                <div class="flex items-center">
                  <div class="h-4 w-4 rounded-full bg-gray-200 mr-4"></div>
                  <div>
                    <div class="h-2 w-10 bg-gray-200 mb-1 rounded-full"></div>
                    <div class="h-2 w-6 bg-gray-100 rounded-full"></div>
                  </div>
                </div>
              </div>
            </div>

            <div class="text-right flex justify-end">
              <div class="rounded-lg h-6 w-16 px-4 bg-gray-200 mr-2"></div>
              <div class="rounded-lg h-6 w-16 px-4 bg-green-400"></div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <p class="text-center p-4 text-gray-600 mt-10">
      Created by
      <a
        class="border-b text-blue-500"
        href="https://twitter.com/mithicher"
        target="_blank"
        >@mithicher</a
      >. Inspired by dribble shot
      <a
        href="https://dribbble.com/shots/8807920-Quickpay-Hero-section/attachments/1015863"
        target="_blank"
        class="border-b text-blue-500"
        >https://dribbble.com/vadimdrut</a
      >
    </p>
              
            
!

CSS

              
                * {
  -webkit-tab-highlight-color: transparent;
  /* font-family: "ProximaNova", sans-serif; */
}

[x-cloak] {
  display: none;
}

.grid--gray {
  background-image: radial-gradient(#ddd 3px, transparent 3px);
  background-size: 24px 24px;
}

.percentage {
  background: repeating-linear-gradient(
    to right,
    #f4f4f4,
    #f4f4f4 1px,
    #fff 1px,
    #fff 12%
  );
}

.donut {
  background: radial-gradient(white 40%, transparent 41%),
    conic-gradient(#dd6b20 0% 35%, #4fd1c5 35% 60%, #3182ce 60% 100%);
  border-radius: 50%;
}

              
            
!

JS

              
                
              
            
!
999px

Console