|
1 | | -import { stripIndent } from "react-codepen-prefill-embed"; |
| 1 | +import {stripIndent} from "react-codepen-prefill-embed"; |
2 | 2 |
|
3 | | -const badgeExample = stripIndent`<div class="bg-gray-50"> |
4 | | -<div class="mx-auto max-w-7xl py-12 px-4 sm:px-6 lg:flex lg:items-center lg:justify-between lg:py-16 lg:px-8"> |
5 | | - <div class="flex mt-8 lg:mt-0 lg:flex-shrink-0"> |
6 | | - <div class="flex flex-row gap-2 rounded-md shadow"> |
7 | | - <div class="flex flex-col gap-2"> |
8 | | - <h6 class="text-center text-black">Small</h6> |
9 | | - <hr /> |
10 | | - <a href="#" class="inline-flex items-center justify-center rounded-full border border-transparent bg-indigo-600 px-2 py-2 text-xs font-medium text-white hover:bg-indigo-700"> Badge rounded-full </a> |
11 | | - <a href="#" class="inline-flex items-center justify-center rounded-md border border-transparent bg-indigo-600 px-2 py-2 text-xs font-medium text-white hover:bg-indigo-700"> Badge rounded-md </a> |
12 | | - <a href="#" class="rounded-xs inline-flex items-center justify-center border border-transparent bg-indigo-600 px-2 py-2 text-xs font-medium text-white hover:bg-indigo-700"> Badge rounded-xs </a> |
13 | | - <a href="#" class="inline-flex items-center justify-center rounded-md border border-transparent bg-blue-600 px-2 py-2 text-xs font-medium text-white hover:bg-blue-700"> Badge blue </a> |
14 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-lime-600 px-2 py-2 text-xs font-medium text-white hover:bg-lime-700"> Badge lime </a> |
15 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-cyan-600 px-2 py-2 text-xs font-medium text-white hover:bg-cyan-700"> Badge cyan </a> |
16 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-violet-600 px-2 py-2 text-xs font-medium text-white hover:bg-violet-700"> Badge violet </a> |
17 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-sky-600 px-2 py-2 text-xs font-medium text-white hover:bg-sky-700"> Badge sky </a> |
18 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-emerald-600 px-2 py-2 text-xs font-medium text-white hover:bg-emerald-700"> Badge emerald </a> |
19 | | - </div> |
20 | | - <div class="flex flex-col gap-2"> |
21 | | - <h6 class="text-center text-black">Base</h6> |
22 | | - <hr /> |
23 | | - <a href="#" class="inline-flex items-center justify-center rounded-full border border-transparent bg-indigo-600 px-3 py-4 text-base font-medium text-white hover:bg-indigo-700"> Badge rounded-full </a> |
24 | | - <a href="#" class="inline-flex items-center justify-center rounded-md border border-transparent bg-indigo-600 px-3 py-4 text-base font-medium text-white hover:bg-indigo-700"> Badge rounded-md </a> |
25 | | - <a href="#" class="rounded-xs inline-flex items-center justify-center border border-transparent bg-indigo-600 px-3 py-4 text-base font-medium text-white hover:bg-indigo-700"> Badge rounded-xs </a> |
26 | | - <a href="#" class="inline-flex items-center justify-center rounded-md border border-transparent bg-blue-600 px-3 py-4 text-base font-medium text-white hover:bg-blue-700"> Badge blue </a> |
27 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-lime-600 px-3 py-4 text-base font-medium text-white hover:bg-lime-700"> Badge lime </a> |
28 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-cyan-600 px-3 py-4 text-base font-medium text-white hover:bg-cyan-700"> Badge cyan </a> |
29 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-violet-600 px-3 py-4 text-base font-medium text-white hover:bg-violet-700"> Badge violet </a> |
30 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-sky-600 px-3 py-4 text-base font-medium text-white hover:bg-sky-700"> Badge sky </a> |
31 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-emerald-600 px-3 py-4 text-base font-medium text-white hover:bg-emerald-700"> Badge emerald </a> |
32 | | - </div><div class="flex flex-col gap-2"> |
33 | | - <h6 class="text-center text-black">Large</h6> |
34 | | - <hr /> |
35 | | - <a href="#" class="inline-flex items-center justify-center rounded-full border border-transparent bg-indigo-600 px-4 py-4 text-lg font-medium text-white hover:bg-indigo-700"> Badge rounded-full </a> |
36 | | - <a href="#" class="inline-flex items-center justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-4 text-lg font-medium text-white hover:bg-indigo-700"> Badge rounded-md </a> |
37 | | - <a href="#" class="rounded-xs inline-flex items-center justify-center border border-transparent bg-indigo-600 px-4 py-4 text-lg font-medium text-white hover:bg-indigo-700"> Badge rounded-xs </a> |
38 | | - <a href="#" class="inline-flex items-center justify-center rounded-md border border-transparent bg-blue-600 px-4 py-4 text-lg font-medium text-white hover:bg-blue-700"> Badge blue </a> |
39 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-lime-600 px-4 py-4 text-lg font-medium text-white hover:bg-lime-700"> Badge lime </a> |
40 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-cyan-600 px-4 py-4 text-lg font-medium text-white hover:bg-cyan-700"> Badge cyan </a> |
41 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-violet-600 px-4 py-4 text-lg font-medium text-white hover:bg-violet-700"> Badge violet </a> |
42 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-sky-600 px-4 py-4 text-lg font-medium text-white hover:bg-sky-700"> Badge sky </a> |
43 | | - <a href="#" class="bg-lime inline-flex items-center justify-center rounded-md border border-transparent bg-emerald-600 px-4 py-4 text-lg font-medium text-white hover:bg-emerald-700"> Badge emerald </a> |
| 3 | +const badgeExample = stripIndent` |
| 4 | +<div class="h-full bg-rose-300"> |
| 5 | + <div |
| 6 | + class="mx-auto max-w-7xl py-20 px-4 sm:px-6 lg:flex lg:items-center lg:justify-between lg:py-16 lg:px-8" |
| 7 | + > |
| 8 | + <div class="mt-8 flex rounded-lg bg-white p-2 lg:mt-0 lg:flex-shrink-0"> |
| 9 | + <div class="flex flex-row gap-4 rounded-md shadow"> |
| 10 | + <div class="flex flex-col gap-4"> |
| 11 | + <h6 class="text-center font-bold text-black">Small</h6> |
| 12 | + <hr /> |
| 13 | + <a |
| 14 | + href="https://tailwindcsscomponents.vercel.app/" |
| 15 | + target="_blank" |
| 16 | + rel="noreferrer" |
| 17 | + class="inline-flex items-center justify-center rounded-full border border-transparent bg-indigo-600 px-2 py-2 text-xs font-medium text-white hover:bg-indigo-700" |
| 18 | + > |
| 19 | + Badge rounded-full |
| 20 | + </a> |
| 21 | + <a |
| 22 | + href="https://tailwindcsscomponents.vercel.app/" |
| 23 | + target="_blank" |
| 24 | + rel="noreferrer" |
| 25 | + class="inline-flex items-center justify-center rounded-md border border-transparent bg-indigo-600 px-2 py-2 text-xs font-medium text-white hover:bg-indigo-700" |
| 26 | + > |
| 27 | + Badge rounded-md |
| 28 | + </a> |
| 29 | + <a |
| 30 | + href="https://tailwindcsscomponents.vercel.app/" |
| 31 | + target="_blank" |
| 32 | + rel="noreferrer" |
| 33 | + class="rounded-xs inline-flex items-center justify-center border border-transparent bg-indigo-600 px-2 py-2 text-xs font-medium text-white hover:bg-indigo-700" |
| 34 | + > |
| 35 | + Badge rounded-xs |
| 36 | + </a> |
| 37 | + </div> |
| 38 | + <div class="flex flex-col gap-6"> |
| 39 | + <h6 class="text-center font-bold text-black">Base</h6> |
| 40 | + <hr /> |
| 41 | + <a |
| 42 | + href="https://tailwindcsscomponents.vercel.app/" |
| 43 | + target="_blank" |
| 44 | + rel="noreferrer" |
| 45 | + class="inline-flex items-center justify-center rounded-full border border-transparent bg-indigo-600 px-3 py-4 text-base font-medium text-white hover:bg-indigo-700" |
| 46 | + > |
| 47 | + Badge rounded-full |
| 48 | + </a> |
| 49 | + <a |
| 50 | + href="https://tailwindcsscomponents.vercel.app/" |
| 51 | + target="_blank" |
| 52 | + rel="noreferrer" |
| 53 | + class="inline-flex items-center justify-center rounded-md border border-transparent bg-indigo-600 px-3 py-4 text-base font-medium text-white hover:bg-indigo-700" |
| 54 | + > |
| 55 | + Badge rounded-md |
| 56 | + </a> |
| 57 | + <a |
| 58 | + href="https://tailwindcsscomponents.vercel.app/" |
| 59 | + target="_blank" |
| 60 | + rel="noreferrer" |
| 61 | + class="rounded-xs inline-flex items-center justify-center border border-transparent bg-indigo-600 px-3 py-4 text-base font-medium text-white hover:bg-indigo-700" |
| 62 | + > |
| 63 | + Badge rounded-xs |
| 64 | + </a> |
| 65 | + </div> |
| 66 | + <div class="flex flex-col gap-8"> |
| 67 | + <h6 class="text-center font-bold text-black">Large</h6> |
| 68 | + <hr /> |
| 69 | + <a |
| 70 | + href="https://tailwindcsscomponents.vercel.app/" |
| 71 | + target="_blank" |
| 72 | + rel="noreferrer" |
| 73 | + class="inline-flex items-center justify-center rounded-full border border-transparent bg-indigo-600 px-4 py-4 text-lg font-medium text-white hover:bg-indigo-700" |
| 74 | + > |
| 75 | + Badge rounded-full |
| 76 | + </a> |
| 77 | + <a |
| 78 | + href="https://tailwindcsscomponents.vercel.app/" |
| 79 | + target="_blank" |
| 80 | + rel="noreferrer" |
| 81 | + class="inline-flex items-center justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-4 text-lg font-medium text-white hover:bg-indigo-700" |
| 82 | + > |
| 83 | + Badge rounded-md |
| 84 | + </a> |
| 85 | + <a |
| 86 | + href="https://tailwindcsscomponents.vercel.app/" |
| 87 | + target="_blank" |
| 88 | + rel="noreferrer" |
| 89 | + class="rounded-xs inline-flex items-center justify-center border border-transparent bg-indigo-600 px-4 py-4 text-lg font-medium text-white hover:bg-indigo-700" |
| 90 | + > |
| 91 | + Badge rounded-xs |
| 92 | + </a> |
| 93 | + </div> |
44 | 94 | </div> |
| 95 | + </div> |
45 | 96 | </div> |
46 | 97 | </div> |
47 | | -</div> |
48 | 98 | `; |
49 | 99 |
|
50 | 100 | export default badgeExample; |
0 commit comments