Skip to content

Instantly share code, notes, and snippets.

View geekysrm's full-sized avatar
👋
Hey, how are you?

Soumya Ranjan Mohanty geekysrm

👋
Hey, how are you?
View GitHub Profile
<div class="px-4 py-4 mb-3 font-normal bg-gray-300">
<div class="flex flex-col justify-between md:flex-row">
<h3 class="mb-2 text-2xl font-semibold leading-snug">
Use TailwindCSS with Gatsby (with Emotion or styled-components)
</h3>
<div class="flex items-center mb-2 space-x-2">
<p class="px-2 text-gray-200 bg-blue-600 rounded">#gatsby</p>
<p class="px-2 text-gray-800 bg-teal-400 rounded">#tailwindcss</p>
<p class="px-2 text-gray-200 bg-purple-600 rounded">#css</p>
</div>
<Card
imgSrc="https://bit.ly/31lfllc"
imgAlt="Hotel California"
title="Welcome to Hotel California"
pricing="$259 USD/ night"
url="/hotel/california-hotel"
/>
function Welcome({ imgSrc, imgAlt, title, pricing, url }) {
return (
<div>
<img className="rounded" src={imgSrc} alt={imgAlt} />
<div className="mt-2">
<div>
<div className="font-bold leading-snug text-gray-700">
<a href={url} className="hover:underline">
{title}
</a>