Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions tailwind_components/buttons/card_with_button_button1.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import {stripIndent} from "react-codepen-prefill-embed";

const cardWithButton = stripIndent `
<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">
<img class="block mx-auto h-24 rounded-full sm:mx-0 sm:shrink-0" src="https://thispersondoesnotexist.com/image" alt="Woman's Face">
<div class="text-center space-y-2 sm:text-left">
<div class="space-y-0.5">
<p class="text-lg text-black font-semibold">
Erin Lindford
</p>
<p class="text-slate-500 font-medium">
Product Engineer
</p>
</div>
<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>
</div>
</div>
`;

export default cardWithButton;
2 changes: 2 additions & 0 deletions tailwind_components/buttons/collection.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import test from "./test_file";
import test1 from "./test1_file";
import cardWithButton from "./card_with_button_button1";

const buttonCollections = [
{componentName: "button1", component: test},
{componentName: "button2", component: test1},
{componentName: "Card with button", component: cardWithButton},
];

export default buttonCollections;