|
1 | | -import "./Placeholder.scss"; |
2 | | - |
3 | 1 | // Placeholder string |
4 | 2 | const placeholderString = () => ` |
5 | 3 | <div class="placeholder"> |
6 | | - <p class="placeholder__medium"> </p> |
7 | | - <p class="placeholder__large"> </p> |
8 | | - <p class="placeholder__small"> </p> |
9 | | - <h2 class="placeholder__xsmall"> </h2> |
10 | | - <p class="placeholder__large"> </p> |
11 | | - <p class="placeholder__small"> </p> |
12 | | - <p class="placeholder__medium"> </p> |
13 | | - <h2 class="placeholder__small"> </h2> |
14 | | - <p class="placeholder__large"> </p> |
15 | | - <p class="placeholder__medium"> </p> |
16 | | - <p class="placeholder__xsmall"> </p> |
17 | | - <h2 class="placeholder__xsmall"> </h2> |
18 | | - <p class="placeholder__large"> </p> |
19 | | - <p class="placeholder__small"> </p> |
20 | | - <p class="placeholder__medium"> </p> |
| 4 | + <p class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-3/4"> </p> |
| 5 | + <p class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-[85%]"> </p> |
| 6 | + <p class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-1/2"> </p> |
| 7 | + <h2 class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-[35%]"> </h2> |
| 8 | + <p class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-[85%]"> </p> |
| 9 | + <p class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-1/2"> </p> |
| 10 | + <p class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-3/4"> </p> |
| 11 | + <h2 class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-1/2"> </h2> |
| 12 | + <p class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-[85%]"> </p> |
| 13 | + <p class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-3/4"> </p> |
| 14 | + <p class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-[35%]"> </p> |
| 15 | + <h2 class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-[35%]"> </h2> |
| 16 | + <p class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-[85%]"> </p> |
| 17 | + <p class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-1/2"> </p> |
| 18 | + <p class="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-3/4"> </p> |
21 | 19 | </div> |
22 | 20 | `; |
23 | 21 |
|
24 | 22 | function PlaceholderComponent() { |
25 | 23 | return ( |
26 | 24 | <div className="placeholder"> |
27 | | - <p> </p> |
28 | | - <p> </p> |
29 | | - <p> </p> |
| 25 | + <p className="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-3/4"> |
| 26 | + |
| 27 | + </p> |
| 28 | + <p className="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-[85%]"> |
| 29 | + |
| 30 | + </p> |
| 31 | + <p className="bg-gray-100 font-sans overflow-hidden relative animate-pulse w-1/2"> |
| 32 | + |
| 33 | + </p> |
30 | 34 | </div> |
31 | 35 | ); |
32 | 36 | } |
|
0 commit comments