Skip to content

Commit 769f304

Browse files
Merge pull request #230 from SarveshPatil29/card-badge
added card badge
2 parents b55d8d2 + 3eccddf commit 769f304

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import {stripIndent} from "react-codepen-prefill-embed";
2+
3+
const CardBadge = stripIndent`
4+
<div class="relative mx-10 my-10 max-w-sm rounded overflow-hidden shadow-lg">
5+
<span class="absolute right-0 top-0 inline-block py-1.5 px-2.5 leading-none text-center whitespace-nowrap align-baseline font-bold bg-red-600 text-xl text-white rounded">New</span>
6+
7+
<img class="w-full" src="https://media.istockphoto.com/photos/hot-air-balloons-picture-id184091124?s=612x612" alt="VK tailwind Bootstrap">
8+
<div class="px-6 py-4">
9+
<div class="font-bold text-xl mb-2">Welcome to VK tailwind Bootstrap</div>
10+
<p class="text-gray-700 text-base">
11+
Best part of card badge is to have a badge above a card. Nothing else 😆
12+
</p>
13+
</div>
14+
</div>
15+
`;
16+
export default CardBadge;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import exampleBadges from "./colorful_badge";
2+
import CardBadge from "./card_badge";
23
import iconBadges from "./icon_badge";
34

45
const badgeCollection = [
56
{componentName: "Normal Badges", component: exampleBadges},
67
{componentName: "Badges with Dot", component: iconBadges},
8+
{componentName: "Card Badge", component: CardBadge},
79
];
810

911
export default badgeCollection;

0 commit comments

Comments
 (0)