scrimba
Tailwind
Final Course Project - Landing Page
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Final Course Project - Landing Page
AboutCommentsNotes
Final Course Project - Landing Page
Expand for more info
solution.html
run
preview
console
<html>
<head>
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gray-200 font-sans flex flex-col items-center">

<header class="bg-indigo-700 w-full flex justify-center border-b-4 border-pink-500 px-4 py-3">
<div class="max-w-4xl w-full">
<div class="flex items-center justify-between text-pink-400">
<svg class="h-8 fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 108 32"><path d="M16.2 12.8h6.4c.9 0 1.7.7 1.7 1.7 0 .9-.7 1.7-1.7 1.7h-6.4c-.9 0-1.7-.7-1.7-1.7s.8-1.7 1.7-1.7zm-.2 3.9h3c.8 0 1.4.6 1.4 1.4 0 .8-.6 1.4-1.4 1.4h-3c-.8 0-1.4-.6-1.4-1.4-.1-.7.6-1.4 1.4-1.4zm-3.7 3.5h6.4c.9 0 1.7.7 1.7 1.7 0 .9-.7 1.7-1.7 1.7h-6.4c-.9 0-1.7-.7-1.7-1.7.1-.9.8-1.7 1.7-1.7zm-4.4 0c1 0 1.7.7 1.7 1.7 0 .9-.7 1.7-1.7 1.7-.9 0-1.7-.7-1.7-1.7 0-.9.8-1.7 1.7-1.7zm19.8.6c.3 2.1 2.4 3 4.8 3 2.7 0 4.6-1.2 4.6-3.4 0-1.5-.9-2.6-2.8-3.1l-2.4-.5c-.6-.1-.8-.4-.8-.7 0-.4.3-.8 1.2-.8 1 0 1.6.6 1.7 1.2l3-.6c-.5-1.8-2.1-2.9-4.7-2.9s-4.4 1.4-4.4 3.4c0 1.6 1.1 2.6 3 3l2.1.4c.7.1 1 .4 1 .7 0 .4-.5.8-1.3.8-.9 0-1.7-.3-1.8-1.2l-3.2.7zm15.1.1c-1.5 0-2.4-1.1-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h-6 w-6 fill-current" viewBox="0 0 24 24">
<path fill-rule="evenodd" d="M4 5h16a1 1 0 0 1 0 2H4a1 1 0 1 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z"/>
</svg>
</button>
</div>

<div class="my-4">
<h1 class="text-2xl text-indigo-100">Want to learn Tailwind CSS?</h1>
<p class="text-sm text-indigo-200">Tailwind is the fastest growing utility-first CSS framework. Let's learn it step by step.</p>
<div class="relative mt-4 flex justify-between">
<div class="">
<a href="#" class="bg-pink-500 text-indigo-100 font-bold mt-2 px-4 py-2 rounded-full text-xs uppercase">Enroll Now</a>
</div>
<div class="absolute right-0 bg-white rounded-full flex justify-center items-center p-5 border-4 border-pink-500">
<img class="w-16 h-16" src="/images/tailwind-logo.png" />
</div>
</div>
</div>
</div>
</header>

<main class="mt-16 w-full flex flex-col items-center">
<div class="max-w-4xl mx-4 ">
<h2 class="pb-1 font-bold text-xl text-indigo-700 border-b border-indigo-200">How It Works</h2>
<p class="text-sm mt-4 text-gray-600">Tailwind is designed for rapid development of modern applications. At its core, it is a robust mobile-first design system built with developer experience in mind. After using Tailwind CSS, you will find it difficult to go back to use anything else. Learn all about it in this all-inclusive course.</p>

<h2 class="mt-8 pb-1 font-bold text-xl text-indigo-700 border-b border-indigo-200">Advantages</h2>

<div class="flex flex-col sm:flex-row sm:-mx-2">
<div class="mt-4 sm:w-1/3">
<div class="bg-white p-8 h-full border-b-4 border-pink-500 rounded-lg flex flex-col items-center sm:mx-2 sm:p-3 md:p-8">
<div class="bg-gray-200 text-indigo-700 w-16 p-2 rounded-full">
<svg class="h-12 w-12 fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.9 19.7l-6.9 2-6.9-2L3.7 3h16.7c-.5 5.6-1 11.1-1.5 16.7zM19.4 4H4.8l1.3 14.9 5.9 1.7 5.9-1.7L19.4 4zM8.1 13.8h2V15l2 .7 2-.7.1-2.2H9.9l-.1-2h4.5l.1-2H7.7l-.1-2h9l-.2 3.9-.4 5.8-3.9 1.3-3.9-1.3-.1-2.7z" fill-rule="evenodd" clip-rule="evenodd"/></svg>
</div>
<div class="mt-4 font-bold">No Custom CSS</div>
<div class="mt-2 text-sm text-gray-600 text-center">Tailwind's advanced class extraction will leave your project free of custom CSS.</div>
</div>
</div>

<div class="mt-4 sm:w-1/3">
<div class="bg-white p-8 h-full border-b-4 border-pink-500 rounded-lg flex flex-col items-center sm:mx-2 sm:p-3 md:p-8">
<div class="bg-gray-200 text-indigo-700 w-16 p-2 rounded-full">
<svg class="h-12 w-12 fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.1 4H3.6c-.5 0-.9.4-.9.9v10.5c0 .5.4.9.9.9h6.2v2H7.4c-.5 0-.8.4-.8.8s.3.9.8.9h9c.5 0 .8-.4.8-.8s-.4-.8-.8-.8H14v-2h6.2c.5 0 .9-.4.9-.9V4.9c-.1-.5-.5-.9-1-.9zm-.4 11H4.1V5.4h15.6V15zM6.9 10.7L9.7 12h.2c.1 0 .2 0 .3-.1.2-.1.3-.3.3-.5s-.1-.4-.3-.5l-1.7-.8 1.7-.8c.2-.1.3-.3.3-.5s-.1-.4-.3-.5h-.3c-.1 0-.2 0-.2.1L6.9 9.6c-.2.1-.3.3-.3.5 0 .3.1.5.3.6zm3.6 2.6c.1.1.3.2.4.2.2 0 .4-.2.5-.4l1.8-5.8c.1-.2 0-.4-.1-.5-.1-.1-.3-.2-.4-.2-.2 0-.4.2-.5.4l-1.8 5.8c0 .2 0 .4.1.5zm2.8-4.5c0 .2.1.4.3.5l1.7.8-1.7.9c-.2.1-.3.3-.3.5s.1.4.3.5c.1.1.2.1.3.1.1 0 .2 0 .2-.1l2.8-1.3c.2-.1.3-.3.3-.5s-.1-.4-.3-.5L14 8.3c-.1 0-.1-.1-.2-.1s-.2 0-.3.1c-.1.2-.2.3-.2.5z"/></svg>
</div>
<div class="mt-4 font-bold">Developer Experience</div>
<div class="mt-2 text-sm text-gray-600 text-center">Tailwind is designed with your happiness in mind. The ease of performing changes is refreshing.</div>
</div>
</div>

<div class="mt-4 sm:w-1/3">
<div class="bg-white p-8 border-b-4 border-pink-500 rounded-lg flex flex-col items-center sm:mx-2 sm:p-3 md:p-8">
<div class="bg-gray-200 text-indigo-700 w-16 p-2 rounded-full">
<svg class="h-12 w-12 fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.3 3.3c0-.2.1-.3.3-.3h.4c.2 0 .3.1.3.3 0 .2-.1.3-.3.3h-.3c-.2.1-.4-.1-.4-.3zm-5 .4h3.3c.2 0 .3-.1.3-.3.1-.3 0-.4-.2-.4h-3.3c-.3 0-.4.1-.4.3 0 .2.1.4.3.4zm7.4 14.6v2.5c0 .7-.5 1.2-1.2 1.2h-9c-.7 0-1.2-.5-1.2-1.2V3.2c0-.7.6-1.2 1.2-1.2h8.9c.7 0 1.2.5 1.2 1.2v15.1zM7 18h10V4.7H7V18zM7 3.2V4h10v-.8c0-.3-.2-.5-.5-.5h-9c-.3 0-.5.2-.5.5zm10 17.6v-2.1H7v2.1c0 .3.2.5.5.5h8.9c.4 0 .6-.2.6-.5zm-3.7-.9v.2c0 .5-.4.9-.9.9h-.8c-.5 0-.9-.4-.9-.9v-.2c0-.5.4-.9.9-.9h.8c.5 0 .9.4.9.9zm-.6 0c0-.1-.1-.3-.3-.3h-.8c-.1 0-.3.1-.3.3v.2c0 .1.1.3.3.3h.8c.1 0 .3-.1.3-.3v-.2zm3.8 2.5h-9c-.9 0-1.6-.7-1.6-1.6V3.2c0-.9.7-1.6 1.6-1.6h8.9c.9 0 1.6.7 1.6 1.6v17.6c0 .9-.7 1.6-1.5 1.6zM13.4 21h3.1c.1 0 .2-.1.2-.2V19h-3.3c.2.2.3.5.3.9v.2c0 .3-.1.6-.3.9zm-6-2v1.8c0 .1.1.2.2.2h3.1c-.2-.2-.3-.5-.3-.9v-.2c0-.3.1-.6.3-.9H7.4zm0-1.4h9.2V5H7.4v12.6zm6.9-14h.7v-.3V3h-.7c0 .1.1.2.1.3s0 .2-.1.3zm-6.9 0h2.3c0-.1-.1-.2-.1-.3s0-.2.1-.3H7.5c-.1 0-.1.1-.1.2v.4z"/></svg>
</div>
<div class="mt-4 font-bold">Mobile Friendly</div>
<div class="mt-2 text-sm text-gray-600 text-center">Modern applications demand mobile-friendly & Tailwind's responsive modifiers make it easy.</div>
</div>
</div>
</div>
</div>

<div class="bg-gray-800 py-12 mt-12 w-full flex flex-col items-center border-t-2 border-black">
<h2 class="pb-1 font-bold text-xl text-gray-400">
Sign up to download the free PDF</h2>

<form class="max-w-xl w-full text-gray-200 mt-4 px-8 md:px-0" action="#" method="post" autocomplete="off">
<div class="flex flex-col md:flex-row md:-mx-2">
<label for="first_name" class="sr-only">First name</label>
<input class="bg-gray-700 mt-4 md:mx-2 border border-gray-600 rounded-lg py-2 px-4 block w-full md:w-1/2" type="text" placeholder="First name" id="first_name">

<label for="last_name" class="sr-only">Last name</label>
<input class="bg-gray-700 mt-4 md:mx-2 border border-gray-600 rounded-lg py-2 px-4 block w-full md:w-1/2" type="text" placeholder="Last name" id="last_name">
</div>

<div class="flex flex-col md:flex-row md:-mx-2">
<label for="email" class="sr-only">Your email</label>
<input class="bg-gray-700 mt-4 md:mx-2 border border-gray-600 rounded-lg py-2 px-4 block w-full md:w-1/2" type="email" placeholder="john@email.com" id="email">

<label for="title" class="sr-only">Title</label>
<input class="bg-gray-700 mt-4 md:mx-2 border border-gray-600 rounded-lg py-2 px-4 block w-full md:w-1/2" type="text" placeholder="Your title" id="title">
</div>

<div class="flex flex-col md:flex-row md:-mx-2">
<button class="bg-blue-600 text-sm mt-4 md:mx-2 rounded-lg py-2 px-4 block w-full">Create account</button>
</div>
</form>
</div>
</main>

<footer class="w-full bg-gray-800 pb-8 text-center text-xs font-light text-gray-600">
<p>Copyright &copy; 2019 Scrimba</p>
</footer>

</body>
</html>
Console
/solution.html
-40:13