|
12 | 12 | <div class="flex-1 min-w-0"> |
13 | 13 | <!-- Package name: h1 font-mono text-2xl sm:text-3xl font-medium mb-2 --> |
14 | 14 | <h1 class="font-mono text-2xl sm:text-3xl font-medium mb-2"> |
15 | | - <span class="skeleton inline-block h-9 w-48" /> |
| 15 | + <SkeletonInline class="h-9 w-48" /> |
16 | 16 | </h1> |
17 | 17 | <!-- Description: fixed height container matching min-h-[4.5rem] (72px) to prevent CLS --> |
18 | 18 | <div class="relative max-w-2xl min-h-[4.5rem]"> |
19 | 19 | <div class="space-y-2"> |
20 | | - <span class="skeleton block h-5 w-full" /> |
21 | | - <span class="skeleton block h-5 w-4/5" /> |
22 | | - <span class="skeleton block h-5 w-3/5" /> |
| 20 | + <SkeletonBlock class="h-5 w-full" /> |
| 21 | + <SkeletonBlock class="h-5 w-4/5" /> |
| 22 | + <SkeletonBlock class="h-5 w-3/5" /> |
23 | 23 | </div> |
24 | 24 | </div> |
25 | 25 | </div> |
26 | 26 |
|
27 | 27 | <!-- Version badge: shrink-0 px-3 py-1 font-mono text-sm bg-bg-muted border border-border rounded-md --> |
28 | | - <span class="skeleton shrink-0 h-8 w-20 rounded-md" /> |
| 28 | + <SkeletonInline class="shrink-0 h-8 w-20 rounded-md" /> |
29 | 29 | </div> |
30 | 30 |
|
31 | 31 | <!-- Stats grid: grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-4 mt-6 --> |
|
36 | 36 | {{ $t('package.skeleton.license') }} |
37 | 37 | </dt> |
38 | 38 | <dd class="font-mono text-sm"> |
39 | | - <span class="skeleton inline-block h-5 w-12" /> |
| 39 | + <SkeletonInline class="h-5 w-12" /> |
40 | 40 | </dd> |
41 | 41 | </div> |
42 | 42 |
|
|
46 | 46 | {{ $t('package.skeleton.weekly') }} |
47 | 47 | </dt> |
48 | 48 | <dd class="font-mono text-sm"> |
49 | | - <span class="skeleton inline-block h-5 w-20" /> |
| 49 | + <SkeletonInline class="h-5 w-20" /> |
50 | 50 | </dd> |
51 | 51 | </div> |
52 | 52 |
|
|
56 | 56 | {{ $t('package.skeleton.size') }} |
57 | 57 | </dt> |
58 | 58 | <dd class="font-mono text-sm"> |
59 | | - <span class="skeleton inline-block h-5 w-16" /> |
| 59 | + <SkeletonInline class="h-5 w-16" /> |
60 | 60 | </dd> |
61 | 61 | </div> |
62 | 62 |
|
|
66 | 66 | {{ $t('package.skeleton.deps') }} |
67 | 67 | </dt> |
68 | 68 | <dd class="font-mono text-sm"> |
69 | | - <span class="skeleton inline-block h-5 w-8" /> |
| 69 | + <SkeletonInline class="h-5 w-8" /> |
70 | 70 | </dd> |
71 | 71 | </div> |
72 | 72 |
|
|
76 | 76 | {{ $t('package.skeleton.published') }} |
77 | 77 | </dt> |
78 | 78 | <dd class="font-mono text-sm"> |
79 | | - <span class="skeleton inline-block h-5 w-28" /> |
| 79 | + <SkeletonInline class="h-5 w-28" /> |
80 | 80 | </dd> |
81 | 81 | </div> |
82 | 82 | </dl> |
|
85 | 85 | <nav aria-label="Package links" class="mt-6"> |
86 | 86 | <ul class="flex flex-wrap items-center gap-4 list-none m-0 p-0"> |
87 | 87 | <li> |
88 | | - <span class="skeleton inline-block h-5 w-14" /> |
| 88 | + <SkeletonInline class="h-5 w-14" /> |
89 | 89 | </li> |
90 | 90 | <li> |
91 | | - <span class="skeleton inline-block h-5 w-20" /> |
| 91 | + <SkeletonInline class="h-5 w-20" /> |
92 | 92 | </li> |
93 | 93 | <li> |
94 | | - <span class="skeleton inline-block h-5 w-16" /> |
| 94 | + <SkeletonInline class="h-5 w-16" /> |
95 | 95 | </li> |
96 | 96 | <li> |
97 | | - <span class="skeleton inline-block h-5 w-12" /> |
| 97 | + <SkeletonInline class="h-5 w-12" /> |
98 | 98 | </li> |
99 | 99 | </ul> |
100 | 100 | </nav> |
|
110 | 110 | </h2> |
111 | 111 | <!-- code-block with relative positioning for copy button --> |
112 | 112 | <div class="relative"> |
113 | | - <div class="code-block pe-16"> |
114 | | - <span class="skeleton inline-block h-5 w-52" /> |
| 113 | + <div |
| 114 | + class="bg-bg-muted border border-border rounded-md p-4 font-mono text-sm overflow-x-auto pe-16" |
| 115 | + > |
| 116 | + <SkeletonInline class="h-5 w-52" /> |
115 | 117 | </div> |
116 | | - <span class="skeleton absolute top-3 inset-ie-3 h-6 w-12 rounded" /> |
| 118 | + <SkeletonInline class="absolute top-3 inset-ie-3 h-6 w-12 rounded" /> |
117 | 119 | </div> |
118 | 120 | </section> |
119 | 121 |
|
|
131 | 133 | <!-- Simulated README content --> |
132 | 134 | <div class="space-y-4"> |
133 | 135 | <!-- Heading --> |
134 | | - <span class="skeleton block h-7 w-2/3" /> |
| 136 | + <SkeletonBlock class="h-7 w-2/3" /> |
135 | 137 | <!-- Paragraphs --> |
136 | | - <span class="skeleton block h-4 w-full" /> |
137 | | - <span class="skeleton block h-4 w-full" /> |
138 | | - <span class="skeleton block h-4 w-4/5" /> |
| 138 | + <SkeletonBlock class="h-4 w-full" /> |
| 139 | + <SkeletonBlock class="h-4 w-full" /> |
| 140 | + <SkeletonBlock class="h-4 w-4/5" /> |
139 | 141 | <!-- Gap for section break --> |
140 | | - <span class="skeleton block h-6 w-1/2 mt-6" /> |
141 | | - <span class="skeleton block h-4 w-full" /> |
142 | | - <span class="skeleton block h-4 w-full" /> |
143 | | - <span class="skeleton block h-4 w-3/4" /> |
| 142 | + <SkeletonBlock class="h-6 w-1/2 mt-6" /> |
| 143 | + <SkeletonBlock class="h-4 w-full" /> |
| 144 | + <SkeletonBlock class="h-4 w-full" /> |
| 145 | + <SkeletonBlock class="h-4 w-3/4" /> |
144 | 146 | <!-- Code block placeholder --> |
145 | | - <div class="skeleton h-24 w-full rounded-lg mt-4" /> |
146 | | - <span class="skeleton block h-4 w-full" /> |
147 | | - <span class="skeleton block h-4 w-5/6" /> |
| 147 | + <SkeletonBlock class="h-24 w-full rounded-lg mt-4" /> |
| 148 | + <SkeletonBlock class="h-4 w-full" /> |
| 149 | + <SkeletonBlock class="h-4 w-5/6" /> |
148 | 150 | </div> |
149 | 151 | </section> |
150 | 152 | </div> |
|
161 | 163 | </h2> |
162 | 164 | <ul class="space-y-2 list-none m-0 p-0"> |
163 | 165 | <li> |
164 | | - <span class="skeleton inline-block h-5 w-28" /> |
| 166 | + <SkeletonInline class="h-5 w-28" /> |
165 | 167 | </li> |
166 | 168 | <li> |
167 | | - <span class="skeleton inline-block h-5 w-24" /> |
| 169 | + <SkeletonInline class="h-5 w-24" /> |
168 | 170 | </li> |
169 | 171 | </ul> |
170 | 172 | </section> |
|
179 | 181 | </h2> |
180 | 182 | <!-- flex flex-wrap gap-1.5 --> |
181 | 183 | <ul class="flex flex-wrap gap-1.5 list-none m-0 p-0"> |
182 | | - <li><span class="skeleton inline-block h-6 w-16 rounded" /></li> |
183 | | - <li><span class="skeleton inline-block h-6 w-12 rounded" /></li> |
184 | | - <li><span class="skeleton inline-block h-6 w-20 rounded" /></li> |
185 | | - <li><span class="skeleton inline-block h-6 w-14 rounded" /></li> |
186 | | - <li><span class="skeleton inline-block h-6 w-18 rounded" /></li> |
187 | | - <li><span class="skeleton inline-block h-6 w-10 rounded" /></li> |
| 184 | + <li><SkeletonInline class="h-6 w-16 rounded" /></li> |
| 185 | + <li><SkeletonInline class="h-6 w-12 rounded" /></li> |
| 186 | + <li><SkeletonInline class="h-6 w-20 rounded" /></li> |
| 187 | + <li><SkeletonInline class="h-6 w-14 rounded" /></li> |
| 188 | + <li><SkeletonInline class="h-6 w-18 rounded" /></li> |
| 189 | + <li><SkeletonInline class="h-6 w-10 rounded" /></li> |
188 | 190 | </ul> |
189 | 191 | </section> |
190 | 192 |
|
|
199 | 201 | <!-- space-y-1, each row: flex items-center justify-between py-1.5 text-sm --> |
200 | 202 | <div class="space-y-1"> |
201 | 203 | <div class="flex items-center justify-between py-1.5 text-sm"> |
202 | | - <span class="skeleton inline-block h-4 w-16" /> |
203 | | - <span class="skeleton inline-block h-4 w-24" /> |
| 204 | + <SkeletonInline class="h-4 w-16" /> |
| 205 | + <SkeletonInline class="h-4 w-24" /> |
204 | 206 | </div> |
205 | 207 | <div class="flex items-center justify-between py-1.5 text-sm"> |
206 | | - <span class="skeleton inline-block h-4 w-14" /> |
207 | | - <span class="skeleton inline-block h-4 w-24" /> |
| 208 | + <SkeletonInline class="h-4 w-14" /> |
| 209 | + <SkeletonInline class="h-4 w-24" /> |
208 | 210 | </div> |
209 | 211 | <div class="flex items-center justify-between py-1.5 text-sm"> |
210 | | - <span class="skeleton inline-block h-4 w-18" /> |
211 | | - <span class="skeleton inline-block h-4 w-24" /> |
| 212 | + <SkeletonInline class="h-4 w-18" /> |
| 213 | + <SkeletonInline class="h-4 w-24" /> |
212 | 214 | </div> |
213 | 215 | <div class="flex items-center justify-between py-1.5 text-sm"> |
214 | | - <span class="skeleton inline-block h-4 w-14" /> |
215 | | - <span class="skeleton inline-block h-4 w-24" /> |
| 216 | + <SkeletonInline class="h-4 w-14" /> |
| 217 | + <SkeletonInline class="h-4 w-24" /> |
216 | 218 | </div> |
217 | 219 | <div class="flex items-center justify-between py-1.5 text-sm"> |
218 | | - <span class="skeleton inline-block h-4 w-16" /> |
219 | | - <span class="skeleton inline-block h-4 w-24" /> |
| 220 | + <SkeletonInline class="h-4 w-16" /> |
| 221 | + <SkeletonInline class="h-4 w-24" /> |
220 | 222 | </div> |
221 | 223 | </div> |
222 | 224 | </section> |
|
232 | 234 | <!-- space-y-1, each: flex items-center justify-between py-1 text-sm --> |
233 | 235 | <ul class="space-y-1 list-none m-0 p-0"> |
234 | 236 | <li class="flex items-center justify-between py-1 text-sm"> |
235 | | - <span class="skeleton inline-block h-4 w-24" /> |
236 | | - <span class="skeleton inline-block h-4 w-12" /> |
| 237 | + <SkeletonInline class="h-4 w-24" /> |
| 238 | + <SkeletonInline class="h-4 w-12" /> |
237 | 239 | </li> |
238 | 240 | <li class="flex items-center justify-between py-1 text-sm"> |
239 | | - <span class="skeleton inline-block h-4 w-32" /> |
240 | | - <span class="skeleton inline-block h-4 w-10" /> |
| 241 | + <SkeletonInline class="h-4 w-32" /> |
| 242 | + <SkeletonInline class="h-4 w-10" /> |
241 | 243 | </li> |
242 | 244 | <li class="flex items-center justify-between py-1 text-sm"> |
243 | | - <span class="skeleton inline-block h-4 w-20" /> |
244 | | - <span class="skeleton inline-block h-4 w-14" /> |
| 245 | + <SkeletonInline class="h-4 w-20" /> |
| 246 | + <SkeletonInline class="h-4 w-14" /> |
245 | 247 | </li> |
246 | 248 | <li class="flex items-center justify-between py-1 text-sm"> |
247 | | - <span class="skeleton inline-block h-4 w-28" /> |
248 | | - <span class="skeleton inline-block h-4 w-12" /> |
| 249 | + <SkeletonInline class="h-4 w-28" /> |
| 250 | + <SkeletonInline class="h-4 w-12" /> |
249 | 251 | </li> |
250 | 252 | </ul> |
251 | 253 | </section> |
|
0 commit comments