curriculum/challenges/english/blocks/workshop-tailwind-cta-component/685972d14c6d8182fbae71f1.md
To make the anchor tags look more like a button, add the classes px-4 and py-2 to each of them. px-4 will increase the right and left padding by 1rem, and py-2 will increase the top and bottom padding by 0.5rem.
Your first anchor element should have the utility class px-4.
const anchorEls = document.querySelectorAll("a");
assert.isTrue(anchorEls[0].classList.contains("px-4"));
Your first anchor element should have the utility class py-2.
const anchorEls = document.querySelectorAll("a");
assert.isTrue(anchorEls[0].classList.contains("py-2"));
Your second anchor element should have the utility class px-4.
const anchorEls = document.querySelectorAll("a");
assert.isTrue(anchorEls[1].classList.contains("px-4"));
Your second anchor element should have the utility class py-2.
const anchorEls = document.querySelectorAll("a");
assert.isTrue(anchorEls[1].classList.contains("py-2"));
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CTA component</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<div class="bg-indigo-600 text-white mt-8 p-4 md:w-1/2 mx-auto flex flex-col lg:flex-row justify-around items-center rounded-md">
<div>
<span class="uppercase">Soundflow</span>
<h1 class="font-bold text-4xl my-4">Discover New Music</h1>
<p>Stream your favorite tracks and discover new artists.</p>
</div>
<div>
--fcc-editable-region--
<a
href="#"
class="bg-white hover:bg-gray-100 text-indigo-600"
>
Learn more
</a>
<a
href="#"
class="bg-pink-500 hover:bg-pink-600 text-white"
>
Start listening
</a>
--fcc-editable-region--
</div>
</div>
</body>
</html>