Skip to content

Commit b9afeaa

Browse files
Merge branch 'master' into delete-button
2 parents cbfe31b + 90e69c4 commit b9afeaa

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import {stripIndent} from "react-codepen-prefill-embed";
2+
3+
const cardWithButton = stripIndent `
4+
<div class="py-8 px-8 max-w-sm mx-auto mt-12 bg-white rounded-xl shadow-lg space-y-2 sm:py-4 sm:flex sm:items-center sm:space-y-0 sm:space-x-6">
5+
<img class="block mx-auto h-24 rounded-full sm:mx-0 sm:shrink-0" src="https://thispersondoesnotexist.com/image" alt="Woman's Face">
6+
<div class="text-center space-y-2 sm:text-left">
7+
<div class="space-y-0.5">
8+
<p class="text-lg text-black font-semibold">
9+
Erin Lindford
10+
</p>
11+
<p class="text-slate-500 font-medium">
12+
Product Engineer
13+
</p>
14+
</div>
15+
<button class="px-4 py-1 text-sm text-purple-600 font-semibold rounded-full border border-purple-200 hover:text-white hover:bg-purple-600 hover:border-transparent focus:outline-none focus:ring-2 focus:ring-purple-600 focus:ring-offset-2">Message</button>
16+
</div>
17+
</div>
18+
`;
19+
20+
export default cardWithButton;
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import test from "./test_file";
22
import test1 from "./test1_file";
3-
import delete_button from "./delete_button";
3+
import deleteButton from "./delete_button";
4+
import cardWithButton from "./card_with_button_button1";
45

56
const buttonCollections = [
6-
{ componentName: "button1", component: test },
7-
{ componentName: "button2", component: test1 },
8-
{ componentName: "delete button", component: delete_button },
7+
{componentName: "button1", component: test},
8+
{componentName: "button2", component: test1},
9+
{componentName: "Card with button", component: cardWithButton},
10+
{componentName: "Delete button", component: deleteButton},
11+
912
];
1013

1114
export default buttonCollections;

0 commit comments

Comments
 (0)