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 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.
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.
<body class="bg-grey-light font-sans">
<div class="bg-white">
<div class="container mx-auto flex flex-col lg:flex-row items-center py-4">
<nav class="w-full lg:w-2/5">
<a href="#" class="text-grey-darker text-sm mr-4 font-semibold pb-6 border-b-2 border-solid border-transparent no-underline hover:text-teal hover:border-teal hover:no-underline"><i class="fa fa-home fa-lg"></i> Home</a>
<a href="#" class="text-grey-darker text-sm mr-4 font-semibold pb-6 border-b-2 border-solid border-transparent no-underline hover:text-teal hover:border-teal hover:no-underline"><i class="fa fa-bolt fa-lg"></i> Moments</a>
<a href="#" class="text-grey-darker text-sm mr-4 font-semibold pb-6 border-b-2 border-solid border-transparent no-underline hover:text-teal hover:border-teal hover:no-underline"><i class="fa fa-bell fa-lg"></i> Notifications</a>
<a href="#" class="text-grey-darker text-sm mr-4 font-semibold pb-6 border-b-2 border-solid border-transparent no-underline hover:text-teal hover:border-teal hover:no-underline"><i class="fa fa-envelope fa-lg"></i> Messages</a>
</nav>
<div class="w-full lg:w-1/5 text-center my-4 lg:my-0"><a href="#"><i class="fa fa-twitter fa-lg text-blue"></i></a></div>
<div class="w-full lg:w-2/5 flex lg:justify-end">
<div class="mr-4 relative">
<input type="text" class="bg-grey-lighter h-8 px-4 py-2 text-xs w-48 rounded-full" placeholder="Search Twitter">
<span class="flex items-center absolute pin-r pin-y mr-3"><i class="fa fa-search text-grey"></i></span>
</div>
<div class="mr-4"><a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_avatar.jpg" alt="avatar" class="h-8 w-8 rounded-full"></a></div>
<div><button class="bg-teal hover:bg-teal-dark text-white font-medium py-2 px-4 rounded-full">Tweet</button></div>
</div>
</div> <!-- end container -->
</div>
<div class="hero h-64 bg-cover h-112"></div>
<div class="bg-white shadow">
<div class="container mx-auto flex flex-col lg:flex-row items-center lg:relative">
<div class="w-full lg:w-1/4">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_tailwind_logo.jpg" alt="logo" class="rounded-full h-48 w-48 lg:absolute lg:pin-l lg:pin-t lg:-mt-24">
</div>
<div class="w-full lg:w-1/2">
<ul class="list-reset flex">
<li class="text-center py-3 px-4 border-b-2 border-solid border-transparent border-teal">
<a href="#" class="text-grey-darker no-underline hover:no-underline">
<div class="text-sm font-bold tracking-tight mb-1">Tweets</div>
<div class="text-lg tracking-tight font-bold text-teal">60</div>
</a>
</li>
<li class="text-center py-3 px-4 border-b-2 border-solid border-transparent hover:border-teal">
<a href="#" class="text-grey-darker no-underline hover:no-underline">
<div class="text-sm font-bold tracking-tight mb-1">Following</div>
<div class="text-lg tracking-tight font-bold hover:text-teal">4</div>
</a>
</li>
<li class="text-center py-3 px-4 border-b-2 border-solid border-transparent hover:border-teal">
<a href="#" class="text-grey-darker no-underline hover:no-underline">
<div class="text-sm font-bold tracking-tight mb-1">Followers</div>
<div class="text-lg tracking-tight font-bold hover:text-teal">3,810</div>
</a>
</li>
<li class="text-center py-3 px-4 border-b-2 border-solid border-transparent hover:border-teal">
<a href="#" class="text-grey-darker no-underline hover:no-underline">
<div class="text-sm font-bold tracking-tight mb-1">Likes</div>
<div class="text-lg tracking-tight font-bold hover:text-teal">9</div>
</a>
</li>
<li class="text-center py-3 px-4 border-b-2 border-solid border-transparent hover:border-teal">
<a href="#" class="text-grey-darker no-underline hover:no-underline">
<div class="text-sm font-bold tracking-tight mb-1">Moments</div>
<div class="text-lg tracking-tight font-bold hover:text-teal">1</div>
</a>
</li>
</ul>
</div>
<div class="w-full lg:w-1/4 flex my-4 lg:my-0 lg:justify-end items-center">
<div class="mr-6">
<button class="bg-teal hover:bg-teal-dark text-white font-medium py-2 px-4 rounded-full">Following</button>
</div>
<div>
<a href="#" class="text-grey-dark"><i class="fa fa-ellipsis-v fa-lg"></i></a>
</div>
</div>
</div> <!-- end container -->
</div>
<div class="container mx-auto flex flex-col lg:flex-row mt-3 text-sm leading-normal">
<div class="w-full lg:w-1/4 pl-4 lg:pl-0 pr-6 mt-8 mb-4">
<h1><a href="#" class="text-black font-bold no-underline hover:underline">Tailwind CSS</a></h1>
<div class="mb-4"><a href="#" class="text-grey-darker no-underline hover:underline">@tailwindcss</a></div>
<div class="mb-4">
A utility-first CSS framework for rapid UI development. By <a href="#" class="text-teal no-underline hover:underline">@adamwathan</a>, <a href="#" class="text-teal no-underline hover:underline">@reinink</a>, <a href="#" class="text-teal no-underline hover:underline">@davidhemphill</a>, and <a href="#" class="text-teal no-underline hover:underline">@steveschoger</a>.
</div>
<div class="mb-2"><i class="fa fa-link fa-lg text-grey-darker mr-1"></i><a href="#" class="text-teal no-underline hover:underline">tailwindcss.com</a></div>
<div class="mb-4"><i class="fa fa-calendar fa-lg text-grey-darker mr-1"></i><a href="#" class="text-teal no-underline hover:underline">Joined August 2017</a></div>
<div class="mb-4">
<button class="bg-teal hover:bg-teal-dark text-white font-medium py-2 px-4 rounded-full w-full h-10">Tweet to Tailwind CSS</button>
</div>
<div class="mb-4"><i class="fa fa-user fa-lg text-grey-dark mr-1"></i><a href="#" class="text-teal no-underline hover:underline">27 Followers you know</a></div>
<div class="mb-4">
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_follower01.jpg" alt="avatar" class="rounded-full h-12 w-12"></a>
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_follower02.jpg" alt="avatar" class="rounded-full h-12 w-12"></a>
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_follower03.jpg" alt="avatar" class="rounded-full h-12 w-12"></a>
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_follower04.jpg" alt="avatar" class="rounded-full h-12 w-12"></a>
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_follower05.jpg" alt="avatar" class="rounded-full h-12 w-12"></a>
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_follower06.jpg" alt="avatar" class="rounded-full h-12 w-12"></a>
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_follower07.jpg" alt="avatar" class="rounded-full h-12 w-12"></a>
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_follower08.jpg" alt="avatar" class="rounded-full h-12 w-12"></a>
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_follower09.jpg" alt="avatar" class="rounded-full h-12 w-12"></a>
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_follower10.jpg" alt="avatar" class="rounded-full h-12 w-12"></a>
</div>
<div class="mb-4"><i class="fa fa-picture-o fa-lg text-grey-dark mr-1"></i><a href="#" class="text-teal">Photos and videos</a></div>
<div class="mb-4">
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_photo1.jpg" alt="photo" class="h-20 w-20 mr-1 mb-1"></a>
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_photo2.jpg" alt="photo" class="h-20 w-20 mr-1 mb-1"></a>
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_photo3.jpg" alt="photo" class="h-20 w-20 mr-1 mb-1"></a>
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_photo4.jpg" alt="photo" class="h-20 w-20 mr-1 mb-1"></a>
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_photo5.jpg" alt="photo" class="h-20 w-20 mr-1 mb-1"></a>
</div>
</div>
<div class="w-full lg:w-1/2 bg-white mb-4">
<div class="p-3 text-lg font-bold border-b border-solid border-grey-light">
<a href="#" class="text-black mr-6 no-underline hover-underline">Tweets</a>
<a href="#" class="mr-6 text-teal no-underline hover:underline">Tweets & Replies</a>
<a href="#" class="text-teal no-underline hover:underline">Media</a>
</div>
<div class="flex border-b border-solid border-grey-light">
<div class="w-1/8 text-right pl-3 pt-3">
<div><i class="fa fa-thumb-tack text-teal mr-2"></i></div>
<div><a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_avatar_tailwind.jpg" alt="avatar" class="rounded-full h-12 w-12 mr-2"></a></div>
</div>
<div class="w-7/8 p-3 pl-0">
<div class="text-xs text-grey-dark">Pinned Tweet</div>
<div class="flex justify-between">
<div>
<span class="font-bold"><a href="#" class="text-black">Tailwind CSS</a></span>
<span class="text-grey-dark">@tailwindcss</span>
<span class="text-grey-dark">·</span>
<span class="text-grey-dark">15 Dec 2017</span>
</div>
<div>
<a href="#" class="text-grey-dark hover:text-teal"><i class="fa fa-chevron-down"></i></a>
</div>
</div>
<div>
<div class="mb-4">
<p class="mb-6">🎉 Tailwind CSS v0.4.0 is out!</p>
<p class="mb-6">Makes `apply` more useful when using !important utilities, and includes an improved default color palette:</p>
<p class="mb-4"><a href="#" class="text-teal">github.com/tailwindcss/ta...</a></p>
<p><a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_tweet1.jpg" alt="tweet image" class="border border-solid border-grey-light rounded-sm"></a></p>
</div>
</div>
<div class="pb-2">
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-blue-light"><i class="fa fa-comment fa-lg mr-2"></i> 9</a></span>
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-green"><i class="fa fa-retweet fa-lg mr-2"></i> 29</a></span>
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-red"><i class="fa fa-heart fa-lg mr-2"></i> 135</a></span>
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-teal"><i class="fa fa-envelope fa-lg mr-2"></i></a></span>
</div>
</div>
</div>
<div class="flex border-b border-solid border-grey-light">
<div class="w-1/8 text-right pl-3 pt-3">
<div><i class="fa fa-retweet text-grey-dark mr-2"></i></div>
<div><a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_avatar_adam.jpg" alt="avatar" class="rounded-full h-12 w-12 mr-2"></a></div>
</div>
<div class="w-7/8 p-3 pl-0">
<div class="text-xs text-grey-dark">Tailwind CSS Retweeted</div>
<div class="flex justify-between">
<div>
<span class="font-bold"><a href="#" class="text-black">Adam Wathan</a></span>
<span class="text-grey-dark">@adamwathan</span>
<span class="text-grey-dark">·</span>
<span class="text-grey-dark">7 Dec 2017</span>
</div>
<div>
<a href="#" class="text-grey-dark hover:text-teal"><i class="fa fa-chevron-down"></i></a>
</div>
</div>
<div>
<div class="mb-4">
<p class="mb-6">💥 Check out this Slack clone built with <a href="#" class="text-teal">@tailwindcss</a> using no custom CSS and just the default configuration:</p>
<p class="mb-4"><a href="#" class="text-teal">https://codepen.io/adamwathan/pen/JOQWVa...</a></p>
<p class="mb-6">(based on some work <a href="#" class="text-teal">@Killgt</a> started for <a href="#" class="text-teal">tailwindcomponents.com</a> !)</p>
<p><a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_tweet2.jpg" alt="tweet image" class="border border-solid border-grey-light rounded-sm"></a></p>
</div>
<div class="pb-2">
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-blue-light"><i class="fa fa-comment fa-lg mr-2"></i> 19</a></span>
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-green"><i class="fa fa-retweet fa-lg mr-2"></i> 56</a></span>
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-red"><i class="fa fa-heart fa-lg mr-2"></i> 247</a></span>
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-teal"><i class="fa fa-envelope fa-lg mr-2"></i></a></span>
</div>
<div><a href="#" class="text-teal">Show this thread</a></div>
</div>
</div>
</div>
<div class="flex border-b border-solid border-grey-light">
<div class="w-1/8 text-right pl-3 pt-3">
<div><a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_avatar_tailwind.jpg" alt="avatar" class="rounded-full h-12 w-12 mr-2"></a></div>
</div>
<div class="w-7/8 p-3 pl-0">
<div class="flex justify-between">
<div>
<span class="font-bold"><a href="#" class="text-black">Tailwind CSS</a></span>
<span class="text-grey-dark">@tailwindcss</span>
<span class="text-grey-dark">·</span>
<span class="text-grey-dark">1 Dec 2017</span>
</div>
<div>
<a href="#" class="text-grey-dark hover:text-teal"><i class="fa fa-chevron-down"></i></a>
</div>
</div>
<div>
<div class="mb-4">
<p class="mb-6">🎉 Tailwind CSS v0.3.0 is here!</p>
<p class="mb-4">Enable/disable modules, focus and group-hover variants, new utilities, and more.</p>
<p class="mb-4">Learn more in our upgrade guide:</p>
<p class="mb-6"><a href="#" class="text-teal">github.com/tailwind/ta...</a></p>
<p><a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_tweet3.jpg" alt="tweet image" class="border border-solid border-grey-light rounded-sm"></a></p>
</div>
<div class="pb-2">
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-blue-light"><i class="fa fa-comment fa-lg mr-2"></i> 6</a></span>
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-green"><i class="fa fa-retweet fa-lg mr-2"></i> 74</a></span>
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-red"><i class="fa fa-heart fa-lg mr-2"></i> 206</a></span>
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-teal"><i class="fa fa-envelope fa-lg mr-2"></i></a></span>
</div>
</div>
</div>
</div>
<div class="flex border-b border-solid border-grey-light">
<div class="w-1/8 text-right pl-3 pt-3">
<div><i class="fa fa-retweet text-grey-dark mr-2"></i></div>
<div><a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_avatar_egghead.jpg" alt="avatar" class="rounded-full h-12 w-12 mr-2"></a></div>
</div>
<div class="w-7/8 p-3 pl-0">
<div class="text-xs text-grey-dark">Tailwind CSS Retweeted</div>
<div class="flex justify-between">
<div>
<span class="font-bold"><a href="#" class="text-black">egghead.io</a></span>
<span class="text-grey-dark">@eggheadio</span>
<span class="text-grey-dark">·</span>
<span class="text-grey-dark">29 Nov 2017</span>
</div>
<div>
<a href="#" class="text-grey-dark hover:text-teal"><i class="fa fa-chevron-down"></i></a>
</div>
</div>
<div>
<div class="mb-4">
<p class="mb-6">Create a Responsive Card Component by Composing Tailwind's Utility Classes - <a href="#" class="text-teal">#html</a> lesson by <a href="#" class="text-teal">@simonswiss</a></p>
<div class="flex border border-solid border-grey rounded">
<div class="w-1/4">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_tweet4.jpg" alt="image">
</div>
<div class="w-3/4 p-3">
<div class="font-bold mb-1">egghead Lesson: Abstract utility classes to ...</div>
<p class="mb-1">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Temporibus voluptate tempore itaque culpa hic qui nostrum, minus harum cupiditate a voluptatibus.
<div class="text-grey-dark">egghead.io</div>
</div>
</div>
</div>
<div class="pb-2">
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-blue-light"><i class="fa fa-comment fa-lg mr-2"></i> 2</a></span>
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-green"><i class="fa fa-retweet fa-lg mr-2"></i> 8</a></span>
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-red"><i class="fa fa-heart fa-lg mr-2"></i> 24</a></span>
<span class="mr-8"><a href="#" class="text-grey-dark hover:no-underline hover:text-teal"><i class="fa fa-envelope fa-lg mr-2"></i></a></span>
</div>
</div>
</div>
</div>
</div>
<div class="w-full lg:w-1/4 pl-4">
<div class="bg-white p-3 mb-3">
<div>
<span class="text-lg font-bold">Who to follow</span>
<span>·</span>
<span><a href="#" class="text-teal text-xs">Refresh</a></span>
<span>·</span>
<span><a href="#" class="text-teal text-xs">View All</a></span>
</div>
<div class="flex border-b border-solid border-grey-light">
<div class="py-2">
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_follow1.jpg" alt="follow1" class="rounded-full h-12 w-12"></a>
</div>
<div class="pl-2 py-2 w-full">
<div class="flex justify-between mb-1">
<div>
<a href="#" class="font-bold text-black">Nuxt.js</a> <a href="#" class="text-grey-dark">@nuxt_js</a>
</div>
<div>
<a href="#" class="text-grey hover:text-grey-dark"><i class="fa fa-times"></i></a>
</div>
</div>
<div>
<button class="bg-transparent text-xs hover:bg-teal text-teal font-semibold hover:text-white py-2 px-6 border border-teal hover:border-transparent rounded-full">
Follow
</button>
</div>
</div>
</div>
<div class="flex border-b border-solid border-grey-light">
<div class="py-2">
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_follow2.jpg" alt="follow1" class="rounded-full h-12 w-12"></a>
</div>
<div class="pl-2 py-2 w-full">
<div class="flex justify-between mb-1">
<div>
<a href="#" class="font-bold text-black">Laracon EU</a> <a href="#" class="text-grey-dark">@LaraconEU</a>
</div>
<div>
<a href="#" class="text-grey hover:text-grey-dark"><i class="fa fa-times"></i></a>
</div>
</div>
<div>
<button class="bg-transparent text-xs hover:bg-teal text-teal font-semibold hover:text-white py-2 px-6 border border-teal hover:border-transparent rounded-full">
Follow
</button>
</div>
</div>
</div>
<div class="flex border-b border-solid border-grey-light">
<div class="py-2">
<a href="#"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_follow3.jpg" alt="follow1" class="rounded-full h-12 w-12"></a>
</div>
<div class="pl-2 py-2 w-full">
<div class="flex justify-between mb-1">
<div>
<a href="#" class="font-bold text-black">Laracon US</a> <a href="#" class="text-grey-dark">@LaraconUS</a>
</div>
<div>
<a href="#" class="text-grey hover:text-grey-dark"><i class="fa fa-times"></i></a>
</div>
</div>
<div>
<button class="bg-transparent text-xs hover:bg-teal text-teal font-semibold hover:text-white py-2 px-6 border border-teal hover:border-transparent rounded-full">
Follow
</button>
</div>
</div>
</div>
<div class="flex border-b border-solid border-grey-light">
<div class="py-4">
<a href="#" class=" p-1"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_outlook.png" alt="follow1" class="rounded h-6 w-6"></a>
</div>
<div class="pl-2 py-2 w-full">
<div class="flex justify-between">
<div>
<a href="#" class="font-bold text-black">Find people you know</a>
</div>
</div>
<div class="text-xs">
Import your contacts from Outlook
</div>
</div>
</div>
<div class="pt-2">
<a href="#" class="text-teal text-xs">Connect other address book</a>
</div>
</div>
<div class="bg-white p-3 mb-3">
<div class="mb-3">
<span class="text-lg font-bold">Trends for you</span>
<span>·</span>
<span><a href="#" class="text-teal text-xs">Change</a></span>
</div>
<div class="mb-3 leading-tight">
<div><a href="#" class="text-teal font-bold">Happy New Year</a></div>
<div><a href="#" class="text-grey-dark text-xs">645K Tweets</a></div>
</div>
<div class="mb-3 leading-tight">
<div><a href="#" class="text-teal font-bold">Happy 2018</a></div>
<div><a href="#" class="text-grey-dark text-xs">NYE 2018 Celebrations</a></div>
</div>
<div class="mb-3 leading-tight">
<div><a href="#" class="text-teal font-bold">#ByeBye2017</a></div>
<div><a href="#" class="text-grey-dark text-xs">21.7K Tweets</a></div>
</div>
<div class="mb-3 leading-tight">
<div><a href="#" class="text-teal font-bold">#SomeHashTag</a></div>
<div><a href="#" class="text-grey-dark text-xs">45K Tweets</a></div>
</div>
<div class="mb-3 leading-tight">
<div><a href="#" class="text-teal font-bold">Something Trending</a></div>
<div><a href="#" class="text-grey-dark text-xs">36K Tweets</a></div>
</div>
<div class="mb-3 leading-tight">
<div><a href="#" class="text-teal font-bold">#ColdAF</a></div>
<div><a href="#" class="text-grey-dark text-xs">100K Tweets</a></div>
</div>
</div>
<div class="mb-3 text-xs">
<span class="mr-2"><a href="#" class="text-grey-darker">© 2018 Twitter</a></span>
<span class="mr-2"><a href="#" class="text-grey-darker">About</a></span>
<span class="mr-2"><a href="#" class="text-grey-darker">Help Center</a></span>
<span class="mr-2"><a href="#" class="text-grey-darker">Terms</a></span>
<span class="mr-2"><a href="#" class="text-grey-darker">Privacy policy</a></span>
<span class="mr-2"><a href="#" class="text-grey-darker">Cookies</a></span>
<span class="mr-2"><a href="#" class="text-grey-darker">Ads info</a></span>
</div>
</div>
</div>
</body>
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.hero {
background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/tt_tailwind_bg.jpg');
background-size: cover;
}
.h-112 {
height: 28rem;
}
.lg\:-mt-24 {
margin-top: -6rem;
}
.h-20 {
height: 5rem;
}
.w-20 {
width: 5rem;
}
.w-1\/8 {
width: 12.5%;
}
.w-7\/8 {
width: 87.5%;
}
Also see: Tab Triggers