forked from npmx-dev/npmx.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSkeletonLoader.vue
More file actions
33 lines (33 loc) · 1.42 KB
/
SkeletonLoader.vue
File metadata and controls
33 lines (33 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<template>
<div class="flex min-h-full" role="status" aria-busy="true" :aria-label="$t('common.loading')">
<!-- Fake line numbers column -->
<div class="shrink-0 bg-bg-subtle border-ie border-border w-14 py-0">
<div v-for="n in 20" :key="n" class="px-3 h-6 flex items-center justify-end">
<SkeletonInline class="w-4 h-3 rounded-sm" />
</div>
</div>
<!-- Fake code content -->
<div class="flex-1 p-4 space-y-1.5">
<SkeletonBlock class="h-4 w-32 rounded-sm" />
<SkeletonBlock class="h-4 w-48 rounded-sm" />
<SkeletonBlock class="h-4 w-24 rounded-sm" />
<div class="h-4" />
<SkeletonBlock class="h-4 w-64 rounded-sm" />
<SkeletonBlock class="h-4 w-56 rounded-sm" />
<SkeletonBlock class="h-4 w-40 rounded-sm" />
<SkeletonBlock class="h-4 w-72 rounded-sm" />
<div class="h-4" />
<SkeletonBlock class="h-4 w-36 rounded-sm" />
<SkeletonBlock class="h-4 w-52 rounded-sm" />
<SkeletonBlock class="h-4 w-44 rounded-sm" />
<SkeletonBlock class="h-4 w-28 rounded-sm" />
<div class="h-4" />
<SkeletonBlock class="h-4 w-60 rounded-sm" />
<SkeletonBlock class="h-4 w-48 rounded-sm" />
<SkeletonBlock class="h-4 w-32 rounded-sm" />
<SkeletonBlock class="h-4 w-56 rounded-sm" />
<SkeletonBlock class="h-4 w-40 rounded-sm" />
<SkeletonBlock class="h-4 w-24 rounded-sm" />
</div>
</div>
</template>