Skip to content

Commit 0e94a8f

Browse files
committed
f bg-size styling
1 parent 6ff1e5c commit 0e94a8f

File tree

1 file changed

+7
-28
lines changed

1 file changed

+7
-28
lines changed

apps/hub/src/app/_components/app-card.tsx

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -70,38 +70,17 @@ function AppCardSkeleton() {
7070
return (
7171
<div className="rounded-28 border border-neutral-20 bg-white-100 p-2 shadow-2">
7272
<div className="relative mb-4">
73-
<div
74-
className="aspect-[12/5] w-full animate-skeleton overflow-hidden rounded-24 bg-gradient-to-r from-neutral-10 via-white-100 to-neutral-10"
75-
style={{ backgroundSize: '400% 400%' }}
76-
/>
77-
<div
78-
className="absolute bottom-[-15px] left-2 size-20 animate-skeleton rounded-24 bg-gradient-to-r from-neutral-20 via-white-100 to-neutral-20"
79-
style={{ backgroundSize: '400% 400%' }}
80-
/>
73+
<div className="aspect-[12/5] w-full animate-skeleton overflow-hidden rounded-24 bg-gradient-to-r from-neutral-10 via-white-100 to-neutral-10 bg-[size:400%_400%]" />
74+
<div className="absolute bottom-[-15px] left-2 size-20 animate-skeleton rounded-24 bg-gradient-to-r from-neutral-20 via-white-100 to-neutral-20 bg-[size:400%_400%]" />
8175
</div>
8276

8377
<div className="flex flex-col gap-1 px-2 pb-2 pt-[10px]">
84-
<div
85-
className="mb-1 h-8 w-3/4 animate-skeleton rounded-12 bg-gradient-to-r from-neutral-10 via-white-100 to-neutral-10"
86-
style={{ backgroundSize: '400% 400%' }}
87-
/>
88-
<div
89-
className="h-5 w-full animate-skeleton rounded-8 bg-gradient-to-r from-neutral-10 via-white-100 to-neutral-10"
90-
style={{ backgroundSize: '400% 400%' }}
91-
/>
92-
<div
93-
className="h-5 w-2/3 animate-skeleton rounded-8 bg-gradient-to-r from-neutral-10 via-white-100 to-neutral-10"
94-
style={{ backgroundSize: '400% 400%' }}
95-
/>
78+
<div className="mb-1 h-8 w-3/4 animate-skeleton rounded-12 bg-gradient-to-r from-neutral-10 via-white-100 to-neutral-10 bg-[size:400%_400%]" />
79+
<div className="h-5 w-full animate-skeleton rounded-8 bg-gradient-to-r from-neutral-10 via-white-100 to-neutral-10 bg-[size:400%_400%]" />
80+
<div className="h-5 w-2/3 animate-skeleton rounded-8 bg-gradient-to-r from-neutral-10 via-white-100 to-neutral-10 bg-[size:400%_400%]" />
9681
<div className="mt-1 flex items-start gap-2">
97-
<div
98-
className="h-8 w-32 animate-skeleton rounded-12 bg-gradient-to-r from-neutral-10 via-white-100 to-neutral-10"
99-
style={{ backgroundSize: '400% 400%' }}
100-
/>
101-
<div
102-
className="size-8 animate-skeleton rounded-12 bg-gradient-to-r from-neutral-10 via-white-100 to-neutral-10"
103-
style={{ backgroundSize: '400% 400%' }}
104-
/>
82+
<div className="h-8 w-32 animate-skeleton rounded-12 bg-gradient-to-r from-neutral-10 via-white-100 to-neutral-10 bg-[size:400%_400%]" />
83+
<div className="size-8 animate-skeleton rounded-12 bg-gradient-to-r from-neutral-10 via-white-100 to-neutral-10 bg-[size:400%_400%]" />
10584
</div>
10685
</div>
10786
</div>

0 commit comments

Comments
 (0)