HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div class="grid">
<div class="grid-cell--one">
<a href="http://res.cloudinary.com/jduquain/f_auto,q_auto/flyer-05.jpg" class="inspiration" target="_blank" rel="noopener">Inspiration</a>
<div class="header">
<div class="header__bar"></div>
<div class="header__bar"></div>
<div class="header__bar"></div>
<p class="header__para">Lorem ipsum dolor sit amet, consectetur sedes do eiusmod.</p>
</div>
<div class="header-block--gray"></div>
<div class="header-block--blue"></div>
<div class="header-block--aqua"></div>
<div class="header-block--shadow"></div>
<div class="circle--orange">
<div class="triangle-shadow"></div>
<div class="triangle-main"></div>
</div>
<div class="headline">
<h1>
<span>Head</span>
<span>Line</span>
</h1>
<div class="design">
<h4>Place your text here</h4>
<h2>
<span>Design</span>
<span>Layout</span>
</h2>
<div class="icons">
<div class="icon">
<svg width="35" height="35" id="icon-bulb" viewBox="0 0 32 32">
<path d="M16 0c-6.076 0-11 4.924-11 11 0 4.031 3.688 8.303 5.031 12.055 2.003 5.595 1.781 8.945 5.969 8.945 4.25 0 3.965-3.334 5.969-8.922 1.347-3.76 5.031-8.078 5.031-12.078 0-6.076-4.926-11-11-11zM18.592 27.176l-4.958 0.619c-0.177-0.512-0.367-1.111-0.598-1.893-0.003-0.010-0.007-0.021-0.009-0.031l6.188-0.773c-0.088 0.295-0.182 0.605-0.264 0.883-0.131 0.449-0.248 0.839-0.359 1.195zM12.736 24.908c-0.182-0.602-0.387-1.236-0.615-1.908h7.766c-0.123 0.359-0.246 0.719-0.352 1.059l-6.799 0.849zM16 30c-1.013 0-1.479-0.117-1.997-1.25l4.238-0.531c-0.614 1.654-1.061 1.781-2.241 1.781zM20.672 21h-9.333c-0.498-1.080-1.096-2.16-1.686-3.217-1.305-2.335-2.653-4.75-2.653-6.783 0-4.963 4.037-9 9-9s9 4.037 9 9c0 2.018-1.35 4.446-2.656 6.795-0.584 1.053-1.178 2.131-1.672 3.205zM16 5c0.275 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5c-2.757 0-5 2.243-5 5 0 0.276-0.224 0.5-0.5 0.5s-0.5-0.224-0.5-0.5c0-3.309 2.691-6 6-6z"></path>
</svg>
</div>
<div class="icon">
<svg width="35" height="35" id="icon-bullseye" viewBox="0 0 24 28">
<path d="M16 14c0 2.203-1.797 4-4 4s-4-1.797-4-4 1.797-4 4-4 4 1.797 4 4zM18 14c0-3.313-2.688-6-6-6s-6 2.688-6 6 2.688 6 6 6 6-2.688 6-6zM20 14c0 4.422-3.578 8-8 8s-8-3.578-8-8 3.578-8 8-8 8 3.578 8 8zM22 14c0-5.516-4.484-10-10-10s-10 4.484-10 10 4.484 10 10 10 10-4.484 10-10zM24 14c0 6.625-5.375 12-12 12s-12-5.375-12-12 5.375-12 12-12 12 5.375 12 12z"></path>
</svg>
</div>
<div class="icon">
<svg width="35" height="35" id="icon-magnifying-glass" viewBox="0 0 32 32">
<path d="M10.5 0c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5c2.725 0 5.203-1.052 7.071-2.76 0.022 0.039 0.042 0.080 0.076 0.114l2.151 2.151c-0.18 0.304-0.282 0.648-0.282 1.011 0 0.534 0.208 1.036 0.586 1.414l8.485 8.485c0.377 0.377 0.879 0.585 1.413 0.585s1.036-0.208 1.414-0.586 0.586-0.88 0.586-1.414-0.208-1.036-0.586-1.414l-8.485-8.485c-0.634-0.634-1.659-0.729-2.42-0.299l-2.155-2.155c-0.034-0.034-0.074-0.054-0.114-0.076 1.708-1.868 2.76-4.346 2.76-7.071 0-5.79-4.71-10.5-10.5-10.5zM22.222 20.808l8.485 8.485c0.189 0.189 0.293 0.44 0.293 0.707s-0.104 0.518-0.293 0.707c-0.379 0.377-1.035 0.377-1.414 0l-8.485-8.485c-0.188-0.189-0.293-0.44-0.293-0.707s0.104-0.518 0.293-0.707c0.189-0.188 0.44-0.293 0.707-0.293s0.517 0.104 0.707 0.293zM10.5 20c-5.238 0-9.5-4.262-9.5-9.5s4.262-9.5 9.5-9.5 9.5 4.262 9.5 9.5-4.262 9.5-9.5 9.5zM10.5 3c-4.136 0-7.5 3.364-7.5 7.5s3.364 7.5 7.5 7.5 7.5-3.364 7.5-7.5-3.364-7.5-7.5-7.5zM10.5 17c-3.584 0-6.5-2.916-6.5-6.5s2.916-6.5 6.5-6.5 6.5 2.916 6.5 6.5-2.916 6.5-6.5 6.5z"></path>
</svg>
</div>
<div class="icon">
<svg width="35" height="35" id="icon-map-pin" viewBox="0 0 24 32">
<path d="M12 0c-6.617 0-12 5.394-12 12.022 0 9.927 11.201 19.459 11.678 19.86 0.093 0.079 0.208 0.118 0.322 0.118s0.226-0.038 0.318-0.114c0.477-0.394 11.682-9.762 11.682-19.864 0-6.628-5.383-12.022-12-12.022zM12.002 30.838c-1.841-1.645-11.002-10.259-11.002-18.816 0-6.078 4.935-11.022 11-11.022s11 4.944 11 11.022c0 8.702-9.152 17.193-10.998 18.816zM12 6c-3.309 0-6 2.691-6 6s2.691 6 6 6 6-2.691 6-6-2.691-6-6-6zM12 17c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z"></path>
</svg>
</div>
</div>
<p>Lorem ipsum dolor sit amet, consectetur sed do eiusmod.</p>
</div>
</div>
<div class="footer-block--gray"></div>
<div class="footer-block--striped"></div>
<div class="footer-block--aqua"></div>
<div class="footer-block--blue"></div>
<div class="footer-block--shadow"></div>
<div class="footer-block--black"></div>
<div class="list">
<div class="item">
<div class="circle--small"></div>
<p>Lorem Ipsum</p>
</div>
<div class="item">
<div class="circle--small"></div>
<p>Dolor Sit Amet</p>
</div>
<div class="item">
<div class="circle--small"></div>
<p>Consectetur</p>
</div>
<div class="item">
<div class="circle--small"></div>
<p>Adpisicing</p>
</div>
<div class="item">
<div class="circle--small"></div>
<p>Elit</p>
</div>
</div>
<div class="footer">
<h3>
<span>Occaecat</span>
<span>cupidatat</span>
</h3>
<p>commodo consequ irure dolor in repre</p>
<div class="footer__icons">
<svg class="icon-arrow" style="display: none;">
<defs>
<path fill="#fff" id="arrow-path" d="M23 12c0-3.037-1.232-5.789-3.222-7.778s-4.741-3.222-7.778-3.222-5.789 1.232-7.778 3.222-3.222 4.741-3.222 7.778 1.232 5.789 3.222 7.778 4.741 3.222 7.778 3.222 5.789-1.232 7.778-3.222 3.222-4.741 3.222-7.778zM21 12c0 2.486-1.006 4.734-2.636 6.364s-3.878 2.636-6.364 2.636-4.734-1.006-6.364-2.636-2.636-3.878-2.636-6.364 1.006-4.734 2.636-6.364 3.878-2.636 6.364-2.636 4.734 1.006 6.364 2.636 2.636 3.878 2.636 6.364zM13 16v-5.586l2.293 2.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-4-4c-0.096-0.096-0.206-0.168-0.324-0.217-0.122-0.051-0.253-0.076-0.383-0.076-0.256 0-0.512 0.098-0.707 0.293l-4 4c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l2.293-2.293v5.586c0 0.552 0.448 1 1 1s1-0.448 1-1z"></path>
</defs>
</svg>
<div class="footer__icon">
<svg width="30" height="30" viewBox="-4 -4 38 38">
<use xlink:href="#arrow-path" />
</svg>
</div>
<div class="footer__icon">
<svg width="30" height="30" viewBox="-4 -4 38 38">
<use xlink:href="#arrow-path" />
</svg>
</div>
<div class="footer__icon">
<svg width="30" height="30" viewBox="-4 -4 38 38">
<use xlink:href="#arrow-path" />
</svg>
</div>
<div class="footer__icon">
<svg width="30" height="30" viewBox="-4 -4 38 38">
<use xlink:href="#arrow-path" />
</svg>
</div>
</div>
<p>Esse consequt alias vel animi odit quibusd ah bota ale sur, ut ex asperna quia debitis ea libero sit unde assumen</p>
</div>
</div>
<div class="grid-cell--two">
<div class="celltwo-block--gray-two"></div>
<div class="celltwo-block--striped-two"></div>
<div class="celltwo-block--aqua-two"></div>
<div class="celltwo-block--blue-two"></div>
<div class="celltwo-block--shadow-two"></div>
<div class="celltwo-block--black-two"></div>
<div class="header--two">
<h2>
<span>Your Text</span>
<span>Here</span>
</h2>
<p>Lorem ipsum dolor sit amet, consectetur sed do eiusmod</p>
</div>
<div class="icons-two">
<div class="icon-two">
<svg width="70" height="70" class="icon-piechart" viewBox="-9 -7 48 48">
<path d="M29 17.518c0-0.276-0.224-0.5-0.5-0.5h-13.5v-13.518c0-0.276-0.224-0.5-0.5-0.5-7.995 0-14.5 6.495-14.5 14.479 0 8.278 6.243 14.521 14.521 14.521 7.713 0 14.479-6.768 14.479-14.482zM1 17.479c0-7.266 5.787-13.206 13-13.47v13.509c0 0.276 0.224 0.5 0.5 0.482h13.49c-0.283 6.99-6.455 13-13.469 13-7.708 0-13.521-5.812-13.521-13.521zM17.5 15h13.999c0.276 0.018 0.501-0.224 0.501-0.5 0-7.995-6.505-14.5-14.5-14.5-0.276 0-0.5 0.224-0.5 0.5v14.018c0 0.276 0.224 0.5 0.5 0.482zM18 1.009c7.063 0.259 12.759 5.97 12.994 13.009h-12.994v-13.009z"></path>
</svg>
</div>
<div class="icon-two">
<svg width="70" height="70" class="icon-map-pin" viewBox="-12.5 -8 48 48">
<path d="M12 0c-6.617 0-12 5.394-12 12.022 0 9.927 11.201 19.459 11.678 19.86 0.093 0.079 0.208 0.118 0.322 0.118s0.226-0.038 0.318-0.114c0.477-0.394 11.682-9.762 11.682-19.864 0-6.628-5.383-12.022-12-12.022zM12.002 30.838c-1.841-1.645-11.002-10.259-11.002-18.816 0-6.078 4.935-11.022 11-11.022s11 4.944 11 11.022c0 8.702-9.152 17.193-10.998 18.816zM12 6c-3.309 0-6 2.691-6 6s2.691 6 6 6 6-2.691 6-6-2.691-6-6-6zM12 17c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z"></path>
</svg>
</div>
<div class="icon-two">
<svg width="70" height="70" class="icon-happy" viewBox="-6.6 -6.3 45 45">
<path d="M16-0.034c-8.841 0-16.035 7.192-16.035 16.034s7.194 16.034 16.035 16.034 16.035-7.192 16.035-16.034-7.194-16.034-16.035-16.034zM16 30.966c-8.252 0-14.965-6.714-14.965-14.966s6.713-14.966 14.965-14.966 14.965 6.714 14.965 14.966-6.713 14.966-14.965 14.966zM10.5 16.5c1.103 0 2-0.897 2-2s-0.897-2-2-2-2 0.897-2 2 0.897 2 2 2zM10.5 13.5c0.551 0 1 0.448 1 1s-0.449 1-1 1-1-0.448-1-1 0.449-1 1-1zM21.5 16.5c1.103 0 2-0.897 2-2s-0.897-2-2-2-2 0.897-2 2 0.897 2 2 2zM21.5 13.5c0.551 0 1 0.448 1 1s-0.449 1-1 1-1-0.448-1-1 0.449-1 1-1zM22.823 22.075c-1.696 1.837-4.097 2.891-6.588 2.891-2.53 0-4.956-1.081-6.656-2.967-0.198-0.218-0.537-0.237-0.755-0.038-0.219 0.197-0.237 0.535-0.039 0.755 1.903 2.109 4.618 3.318 7.45 3.318 2.788 0 5.476-1.179 7.373-3.234 0.2-0.217 0.187-0.555-0.030-0.755s-0.555-0.188-0.755 0.030z"></path>
</svg>
</div>
<div class="icon-two">
<svg width="70" height="70" class="icon-paintbrush" viewBox="-12 -9 46 46">
<path d="M15.403 21h4.58c1.053 0 1.909-0.856 2.017-1.909v-17.182c-0.108-1.053-0.964-1.909-2.017-1.909h-17.966c-1.053 0-1.909 0.856-2.017 1.909v17.182c0.108 1.053 0.964 1.909 2.017 1.909h4.962c0.348 0 2.083 0.074 2.083 1.542 0 2.622-0.553 3.842-0.762 4.302l-0.049 0.109 0.403 0.174v0.013l-0.447-0.090c-0.017 0.033-0.030 0.068-0.038 0.104-0.154 0.411-0.232 0.833-0.232 1.257 0.001 2.147 1.231 3.589 3.063 3.589 1.851 0 3.094-1.442 3.094-3.589 0-0.391-0.066-0.78-0.198-1.161-0.005-0.114-0.049-0.22-0.119-0.302-0.026-0.060-0.060-0.125-0.101-0.202-0.219-0.415-0.676-1.277-0.676-4.204 0-0.62 0.64-1.542 2.403-1.542zM1 12.059h20v3.941h-20v-3.941zM2.017 1h17.966c0.501 0 0.909 0.408 1.017 0.909v9.149h-20v-9.149c0.108-0.501 0.516-0.909 1.017-0.909zM12.792 27.214c0.028 0.053 0.052 0.097 0.093 0.189 0 0.001 0.003 0.007 0.007 0.016 0.004 0.013 0.008 0.025 0.013 0.038 0.125 0.313 0.188 0.635 0.188 0.954 0.001 1.252-0.549 2.589-2.093 2.589-1.521 0-2.062-1.337-2.062-2.589 0-0.319 0.063-0.641 0.188-0.954 0.004-0.012 0.009-0.023 0.012-0.035 0.014-0.030 0.031-0.068 0.033-0.072l0.042-0.093c0.232-0.514 0.851-1.876 0.851-4.715-0.002-2.007-1.939-2.542-3.114-2.542 0 0 0 0-0.001 0h-4.932c-0.501 0-0.909-0.408-1.017-0.909v-2.091h20v2.091c-0.108 0.501-0.516 0.909-1.017 0.909h-4.58c-2.497 0-3.403 1.521-3.403 2.542 0 3.175 0.535 4.187 0.792 4.672z"></path>
</svg>
</div>
<div class="icon-two">
<svg width="70" height="70" class="icon-lightbulb" viewBox="-13 -9 48 48">
<path d="M11 0c-5.29 0-11 4.206-11 11 0 3.353 1.334 6.174 3.896 8.312 0.027 0.034 0.058 0.063 0.092 0.088 1.901 2.062 1.997 2.454 2.010 3.361 0.006 0.359 0.003 0.465 0 0.523l-0.004 0.209c-0.015 0.452-0.038 1.209 0.899 1.495l8.094 1.781c0.036 0.008 0.072 0.012 0.107 0.012 0.23 0 0.437-0.159 0.488-0.393 0.060-0.27-0.111-0.537-0.381-0.596l-8.055-1.771c-0.155-0.047-0.168-0.051-0.154-0.498l0.003-0.191c0 0 0.010-0.078 0.002-0.586-0.019-1.269-0.295-1.882-2.309-4.059-0.039-0.048-0.086-0.088-0.138-0.118-2.356-2.003-3.55-4.549-3.55-7.569 0-6.177 5.19-10 10-10 4.916 0 10 3.741 10 10 0 3.978-1.928 6.171-3.518 7.551-0.055 0.026-0.104 0.063-0.147 0.109-2.037 2.204-2.313 2.817-2.332 4.086 0 0.030-0.001 0.065 0 0.103l-0.001 0.035c-0.003 0.076-0.014 0.118-0.013 0.134-0.034-0.005-0.117-0.018-0.117-0.018l-4.195-0.987c-0.272-0.062-0.538 0.104-0.601 0.372s0.103 0.538 0.372 0.602l4.144 0.972c0.055 0.020 0.553 0.182 0.973-0.113 0.183-0.129 0.396-0.382 0.434-0.866l0.003-0.047c0.001-0.032 0.002-0.065 0.002-0.099 0-0.009 0-0.018-0.001-0.026l0.001-0.046c0.013-0.902 0.107-1.294 2.005-3.356 0.009-0.007 0.019-0.014 0.027-0.022 2.667-2.241 3.964-4.984 3.964-8.384 0-6.885-5.593-11-11-11zM15 29.5c0.229 0 0.435-0.157 0.487-0.39 0.062-0.269-0.107-0.537-0.377-0.598l-8-1.814c-0.271-0.060-0.537 0.108-0.598 0.377-0.062 0.269 0.107 0.537 0.377 0.598l8 1.814c0.038 0.009 0.075 0.013 0.111 0.013zM7.609 29.554c-0.271-0.060-0.536 0.109-0.598 0.378-0.060 0.27 0.109 0.537 0.379 0.597l6.5 1.458c0.038 0.009 0.074 0.013 0.11 0.013 0.229 0 0.436-0.158 0.488-0.391 0.060-0.27-0.109-0.537-0.379-0.597l-6.5-1.458z"></path>
</svg>
</div>
<div class="icon-two">
<svg width="70" height="70" class="icon-magnifying-glass" viewBox="-10.5 -9 52 52">
<path d="M10.5 0c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5c2.725 0 5.203-1.052 7.071-2.76 0.022 0.039 0.042 0.080 0.076 0.114l2.151 2.151c-0.18 0.304-0.282 0.648-0.282 1.011 0 0.534 0.208 1.036 0.586 1.414l8.485 8.485c0.377 0.377 0.879 0.585 1.413 0.585s1.036-0.208 1.414-0.586 0.586-0.88 0.586-1.414-0.208-1.036-0.586-1.414l-8.485-8.485c-0.634-0.634-1.659-0.729-2.42-0.299l-2.155-2.155c-0.034-0.034-0.074-0.054-0.114-0.076 1.708-1.868 2.76-4.346 2.76-7.071 0-5.79-4.71-10.5-10.5-10.5zM22.222 20.808l8.485 8.485c0.189 0.189 0.293 0.44 0.293 0.707s-0.104 0.518-0.293 0.707c-0.379 0.377-1.035 0.377-1.414 0l-8.485-8.485c-0.188-0.189-0.293-0.44-0.293-0.707s0.104-0.518 0.293-0.707c0.189-0.188 0.44-0.293 0.707-0.293s0.517 0.104 0.707 0.293zM10.5 20c-5.238 0-9.5-4.262-9.5-9.5s4.262-9.5 9.5-9.5 9.5 4.262 9.5 9.5-4.262 9.5-9.5 9.5zM10.5 3c-4.136 0-7.5 3.364-7.5 7.5s3.364 7.5 7.5 7.5 7.5-3.364 7.5-7.5-3.364-7.5-7.5-7.5zM10.5 17c-3.584 0-6.5-2.916-6.5-6.5s2.916-6.5 6.5-6.5 6.5 2.916 6.5 6.5-2.916 6.5-6.5 6.5z"></path>
</svg>
</div>
</div>
<div class="headline--two">
<div class="design--two-wrap">
<div class="design--two">
<svg width="35" height="35">
<use xlink:href="#icon-bulb" />
</svg>
<h4><span>Lorem Ipsum</span> <span>Dolor Sit</span></h4>
<p>Optio consequateveniet necessitati, nulla libero, voluptat eos saepe aut quae, vitae quia ah bota ale sur hollish.</p>
</div>
<div class="design--two">
<svg width="35" height="35">
<use xlink:href="#icon-bullseye" />
</svg>
<h4><span>Lorem Ipsum</span> <span>Dolor Sit</span></h4>
<p>Labore reiciendis aut velit magnam. Recusand iusto, cum, porro repudian incidun similique reiciend modi.</p>
</div>
<div class="design--two">
<svg width="35" height="35">
<use xlink:href="#icon-magnifying-glass" />
</svg>
<h4><span>Lorem Ipsum</span> <span>Dolor Sit</span></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil cum animi veniam voluptat ah bota ale sur.</p>
</div>
<div class="design--two">
<svg width="35" height="35">
<use xlink:href="#icon-map-pin" />
</svg>
<h4><span>Lorem Ipsum</span> <span>Dolor Sit</span></h4>
<p>Quia deserunt doloremque aspernatur harum a quaerat officiis praesentium eos repudiandae quisquam quos laudan.</p>
</div>
</div>
<div class="headline-sect">
<h2>Headline</h2>
<h3>& Place It Here</h3>
<div class="nums-wrap">
<div class="nums">
<div class="num num--one">01</div>
<p>olor sit amet consecturs do eiusm</p>
</div>
<div class="nums">
<div class="num num--two">02</div>
<p>olor sit amet consecturs do eiusm</p>
</div>
<div class="nums">
<div class="num num--three">03</div>
<p>olor sit amet consecturs do eiusm</p>
</div>
</div>
</div>
</div>
<div class="footer--two">
<h4>Lorem ipsum dolor sit amet ut aliquip ea commodo</h4>
<div class="footer--two__links">
<p class="para--one">Sed Do Eius</p>
<p class="para--two">Mod Tempor</p>
<p class="para--three">Sed Do Eius</p>
<p class="para--four">Incididunt</p>
</div>
</div>
</div>
</div>
:root {
box-sizing: border-box;
--gray-100: hsl(204, 45%, 98%);
--gray-200: hsl(210, 38%, 95%);
--gray-300: hsl(214, 32%, 91%);
--gray-400: hsl(211, 25%, 84%);
--gray-500: hsl(214, 20%, 69%);
--gray-600: hsl(216, 15%, 52%);
--gray-700: hsl(218, 17%, 35%);
--gray-800: hsl(218, 23%, 23%);
--gray-900: hsl(220, 26%, 14%);
--yellow: hsl(48, 96%, 51%);
--orange: hsl(28, 92%, 53%);
--aqua: hsl(185, 85%, 42%);
--blue: hsl(240, 41%, 21%);
}
*, ::before, ::after {
box-sizing: inherit;
text-decoration: none;
list-style-type: none;
margin: 0;
padding: 0;
outline: none;
}
body {
font-size: 100%;
font-family: 'Catamaran', sans-serif;
height: 100vh;
color: var(--gray-700);
background-image: linear-gradient(135deg, var(--gray-100), var(--gray-700));
}
.inspiration {
position: absolute;
right: 3%;
top: 5%;
transition: all 300ms ease-in;
font-size: .85em;
color: #fff;
z-index: 19500;
}
.inspiration:hover {
color: var(--gray-300);
}
.grid {
width: 1340px;
height: 840px;
display: grid;
grid-template-columns: 1fr 1fr;
grid-column-gap: 16px;
position: relative;
overflow: hidden;
margin: 2em auto;
}
.grid-cell--one {
grid-column: 1 / 2;
width: 642px;
height: 840px;
position: relative;
overflow: hidden;
border: 1px solid hsl(0, 6%, 64%);
background-color: #fff;
}
.header {
width: 33%;
display: flex;
align-items: center;
padding: 2em 0 0 2.5em;
color: #fff;
font-weight: 200;
z-index: 8;
position: relative;
}
.header__bar {
width: 6px;
height: 47px;
background-color: var(--yellow);
flex: 0 0 6px;
margin-right: .5em;
}
.header__bar:nth-of-type(2) {
background-color: #fff;
}
.header__bar:last-of-type {
background-color: var(--orange);
margin-right: 1em;
}
.header__para {
font-size: .85em;
line-height: 1.15;
}
[class*=header-block--] {
position: absolute;
width: 100%;
top: 0;
height: 225px;
}
.header-block--shadow {
background-color: rgba(0,0,0,.06);
clip-path: polygon(20% 0%, 90% 0%, 80% 120px);
z-index: 5;
}
.header-block--aqua {
background: radial-gradient(circle at center, rgba(0,0,0,.1) 50%, transparent 60%),#eee;
background-size: 12px 12px;
background-color: var(--aqua);
clip-path: polygon(0% 0%, 100% 0%, 100% 215px, 74% 124px, 30% 160px, 17% 100px, 0% 100px);
z-index: 4;
}
.header-block--blue {
background-color: var(--blue);
clip-path: polygon(0% 0%, 100% 0%, 100% 220px, 65% 133px, 29% 192px, 17% 100px, 0% 120px);
z-index: 3;
}
.header-block--gray {
background-color: var(--gray-300);
clip-path: polygon(0% 0%, 100% 0%, 100% 225px, 60% 160px, 17% 225px, 0% 160px);
z-index: 2;
}
.circle--orange {
position: absolute;
width: 80px;
height: 80px;
border-radius: 50%;
background-color: var(--orange);
top: 87px;
right: 110px;
box-shadow: 1px 2px 2px 2px rgba(0,0,0,.2);
z-index: 6;
}
.triangle-shadow {
width: 44px;
height: 44px;
background-color: rgba(0,0,0,.4);
position: absolute;
left: 18px;
top: 18px;
right: 0;
bottom: 0;
clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
transform: rotate(19deg);
}
.triangle-main {
width: 44px;
height: 44px;
background-color: rgba(0,0,0,0.2);
position: absolute;
left: 18px;
top: 18px;
right: 0;
bottom: 0;
clip-path: polygon(40% 5%, 100% 1%, 100% 100%, 0% 100%);
background-image: linear-gradient(60deg, rgba(255, 255, 0, .35) 62%, rgba(255, 255, 0, .65) 62%);
transform: rotate(19deg);
}
.headline {
color: var(--blue);
text-transform: uppercase;
margin: 11em 0 0 5em;
display: flex;
position: relative;
padding: 1.5em 0 0 0;
z-index: 500;
}
.headline::before {
position: absolute;
content: "";
top: -15px;
bottom: -20px;
left: 47.5%;
width: 6px;
background-color: transparent;
transform: translateX(-50%);
box-shadow: -3px 0 4px rgba(0,0,0,0.4),
-6px 0 4px rgba(0,0,0,0.1),
-9px 0 4px rgba(0,0,0,0.05);
border-radius: 10px / 100px;
}
.headline::after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: var(--yellow);
clip-path: polygon(15% 1%, 71% 5%, 68% 20%, 86% 18%, 86% 36%, 46.8% 39%, 46.8% 47.5%, 63% 46%, 55% 88%, 30% 55%);
z-index: -1;
}
.headline h1 {
font-size: 6em;
line-height: .8;
letter-spacing: -1px;
padding: .2rem 1rem 0 0;
}
.headline h1 span:last-of-type {
font-weight: 200;
margin-left: .65em;
}
.headline span {
display: block;
}
.design {
padding-left: 1rem;
}
.design h4 {
font-size: 1.1em;
margin: 0 0 .2em .1em;
line-height: 1.1;
}
.design h2 {
font-size: 3.7em;
line-height: 1;
}
.design h2 span:first-of-type {
font-weight: 200;
letter-spacing: 1px;
color: #fff;
}
.design h2 span:last-of-type {
font-weight: 700;
letter-spacing: -1px;
font-size: .88em;
margin-bottom: .1em;
}
.icons {
display: flex;
margin-bottom: .3em;
}
.icon {
margin-right: 1.2em;
}
.icon svg {
width: 35px;
height: 35px;
fill: var(--blue);
}
.design p {
text-transform: none;
font-size: .75em;
width: 72%;
line-height: 1.2;
}
[class*=footer-block--] {
position: absolute;
width: 100%;
bottom: 0;
height: 370px;
}
.footer-block--gray {
background-color: var(--gray-300);
clip-path: polygon(0% 12%, 19% 46%, 100% 10%, 100% 100%, 0% 100%);
}
/* fix for jagged stripes at end of article: https://css-tricks.com/stripes-css/ */
.footer-block--striped {
background: repeating-linear-gradient(
-45deg,
hsla(185, 85%, 42%,.4),
hsla(185, 85%, 42%,.4),
transparent 25%,
transparent 50%,
transparent 50%
);
background-size: 12px 12px;
clip-path: polygon(0% 45%, 2% 57%, 19% 46%, 70% 52%, 77% 21%, 100% 3%, 100% 100%, 0% 100%);
}
.footer-block--aqua {
background-color: var(--aqua);
clip-path: polygon(0% 52%, 1% 59%, 19% 50.5%, 25% 52%, 69% 55%, 77% 21%, 100% 10%, 100% 100%, 0% 100%);
}
.footer-block--blue {
clip-path: polygon(0% 65%, 19% 50%, 66% 66%, 77% 21%, 100% 17.5%, 100% 100%, 0% 100%);
background: radial-gradient(circle at center, rgba(255,255,255,.15) 50%, transparent 60%),hsla(240, 41%, 21%,.86);
background-size: 12px 12px;
}
.footer-block--shadow {
background-color: rgba(0,0,0,.3);
clip-path: polygon(0% 94%, 19% 50%, 68% 100%, 0% 100%);
}
.footer-block--black {
background-color: rgba(0,0,0,.77);
clip-path: polygon(100% 65%, 100% 100%, 91% 100%);
}
.list {
position: relative;
z-index: 100;
color: #fff;
text-transform: uppercase;
margin: 13.4em 0 0 2.5em;
}
.item {
display: flex;
align-items: center;
}
.circle--small {
width: 18px;
height: 18px;
border-radius: 50%;
border: 1px solid #fff;
margin: 0 .5em .2em 0;
}
.item p {
font-weight: 200;
line-height: 1.2;
font-size: 1.15em;
}
.footer {
position: absolute;
z-index: 120;
bottom: 2em;;
right: 2.5em;
width: 23%;
color: #fff;
text-align: right;
}
.footer h3 {
font-size: 1.9em;
line-height: .85;
}
.footer h3 span:first-of-type {
display: block;
}
.footer h3 span:last-of-type {
display: block;
}
.footer p:first-of-type {
font-size: .95em;
font-weight: 200;
line-height: 1;
margin-top: .15em;
}
.footer__icons {
display: flex;
justify-content: flex-end;
}
.footer__icon {
width: 25px;
height: 25px;
background-color: var(--aqua);
border-radius: 3px;
margin: .3em 0 0 .5em;
}
.footer__icon svg {
width: 30px;
height: 30px;
fill: #fff;
}
.footer__icon:nth-of-type(2) {
transform: rotate(90deg);
}
.footer__icon:nth-of-type(3) {
transform: rotate(180deg);
}
.footer__icon:last-of-type {
transform: rotate(-90deg);
}
.footer p:last-of-type {
margin-top: .35em;
font-weight: 200;
line-height: 1.2;
font-size: .77em;
width: 90%;
margin-left: 10%;
}
.grid-cell--two {
grid-column: 2 / 3;
width: 642px;
height: 840px;
position: relative;
border: 1px solid hsl(0, 6%, 64%);
background-color: #fff;
}
[class*=celltwo-block] {
position: absolute;
width: 100%;
top: 0;
height: 370px;
transform: rotateX(180deg)
}
.celltwo-block--gray-two {
background-color: var(--gray-300);
clip-path: polygon(0% 50%, 19% 45%, 100% 32%, 100% 100%, 0% 100%);
}
.celltwo-block--striped-two {
background: repeating-linear-gradient(
-45deg,
hsla(185, 85%, 42%,.4),
hsla(185, 85%, 42%,.4),
transparent 25%,
transparent 50%,
transparent 50%
);
background-size: 12px 12px;
clip-path: polygon(0% 57%, 0% 57%, 19% 44%, 70% 52%, 62% 21%, 100% 0%, 100% 100%, 0% 100%);
}
.celltwo-block--aqua-two {
background-color: var(--aqua);
clip-path: polygon(0% 52%, 0% 60%, 19% 50.5%, 25% 52%, 55% 54%, 62% 21%, 100% 8%, 100% 100%, 0% 100%);
}
.celltwo-block--blue-two {
clip-path: polygon(0% 65%, 19% 50%, 52% 66%, 62% 21%, 100% 17.5%, 100% 100%, 0% 100%);
background: radial-gradient(circle at center, rgba(255,255,255,.15) 50%, transparent 60%),hsla(240, 41%, 21%,.86);
background-size: 12px 12px;
}
.celltwo-block--shadow-two {
background-color: rgba(0,0,0,.3);
clip-path: polygon(0% 91%, 19% 50%, 54% 100%, 0% 100%);
}
.celltwo-block--black-two {
background-color: rgba(0,0,0,.77);
clip-path: polygon(100% 35%, 100% 100%, 70% 100%, 52% 66%);
}
.header--two {
position: absolute;
top: 3em;
right: 2.5em;
width: 45%;
color: #fff;
text-align: right;
}
.header--two h2 {
font-size: 2.8em;
text-transform: uppercase;
line-height: .9;
}
.header--two span:first-of-type {
display: block;
}
.header--two span:last-of-type {
display: block;
}
.header--two p {
margin-top: .5em;
width: 60%;
margin-left: 40%;
line-height: 1.05;
font-size: 1.25em;
font-weight: 200;
}
.icons-two {
width: 37%;
position: relative;
z-index: 300;
margin: 222px 0 0 2.5em;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr;
grid-gap: 16px 12px;
}
.icon-two {
width: 70px;
height: 70px;
border-radius: 50%;
background-color: var(--aqua);
}
.icon-two:nth-of-type(2) {
background-color: var(--blue);
}
.icon-two:nth-of-type(3) {
background-color: hsl(185, 41%, 60%);
}
.icon-two:nth-of-type(4) {
background-color: var(--gray-500);
}
.icon-two:nth-of-type(5) {
background-color: var(--yellow);
}
.icon-two:last-of-type {
background-color: var(--orange);
}
.icon-two svg {
width: 70px;
height: 70px;
fill: #fff;
}
.headline--two {
display: flex;
margin-top: 1.5em;
padding-left: 3.5em;
position: relative;
}
.headline--two::before {
position: absolute;
content: "";
top: -7px;
bottom: 10px;
left: 44.8%;
width: 6px;
background-color: transparent;
transform: translateX(-50%);
box-shadow: 3px 0 4px rgba(0,0,0,0.4),
6px 0 4px rgba(0,0,0,0.1),
9px 0 4px rgba(0,0,0,0.05);
border-radius: 10px / 100px;
}
.design--two-wrap {
flex: 0 0 42%;
}
.design--two {
display: grid;
grid-template-columns: min-content 1fr;
grid-template-rows: auto auto;
grid-gap: .3em .5em;
margin-bottom: .5em;
padding-right: 2em;
}
.design--two svg {
grid-column: 1 / 2;
grid-row: 1 / 2;
align-self: start;
transform: translateY(2px)
}
.design--two h4 {
font-size: .88em;
grid-column: 2 / 3;
grid-row: 1 / 2;
text-transform: uppercase;
font-weight: 200;
align-self: end;
line-height: 1;
}
.design--two h4 span:first-of-type {
font-weight: 700;
}
.design--two p {
line-height: 1.1;
font-size: .75em;
grid-column: 1 / 3;
grid-row: 2 / 3;
}
.headline-sect {
padding-left: 2em;
flex: 0 0 38%;
}
.headline-sect h2 {
font-size: 3.2em;
color: var(--aqua);
font-weight: 600;
line-height: .9;
}
.headline-sect h3 {
text-transform: uppercase;
font-weight: 200;
font-size: 1.75em;
line-height: .8;
}
.nums-wrap {
margin-top: .5em;
padding: .35em 0;
border-top: 1px solid var(--gray-300);
border-bottom: 1px solid var(--gray-300);
}
.nums {
display: flex;
margin-top: .25em;
align-items: center;
}
.num {
font-family: sans-serif;
font-size: 4.1em;
line-height: 1;
font-weight: 600;
margin-right: .12em;
color: var(--yellow);
transform: translateY(1px);
}
.num--two {
color: var(--orange);
}
.num--three {
color: var(--aqua);
}
.headline-sect p {
flex: 0 0 5.7em;
line-height: 1.15;
font-size: .95em;
}
.footer--two {
padding-left: 3.5em;
margin-top: 1.1em;
}
.footer--two h4 {
text-transform: uppercase;
font-size: 1.07em;
border-top: 1px solid var(--gray-300);
border-bottom: 1px solid var(--gray-300);
margin-right: 7.3em;
line-height: 1.3;
padding-top: .1em;
margin-bottom: .3em;
}
.footer--two__links {
display: flex;
justify-content: space-between;
padding-left: 1.25em;
margin-right: 8em;
}
.footer--two__links p {
position: relative;
text-transform: uppercase;
font-size: .7em;
}
.footer--two__links p::before {
position: absolute;
content: "";
height: 0;
width: 0;
border: 7px solid transparent;
border-top-color: var(--yellow);
left: -18px;
transform: rotate(-135deg) translateY(5px);
}
.footer--two__links p.para--two::before {
transform: rotate(45deg) translateY(8px);
}
.footer--two__links p.para--three::before {
transform: rotate(135deg) translateY(4px);
left: -20px;
}
.footer--two__links p.para--four::before {
transform: rotate(-45deg) translateY(8px);
left: -20px;
}
Also see: Tab Triggers