feat(portfolio): add placeholder badge data
- reduce layout shift
This commit is contained in:
parent
8cf3372053
commit
0f2558af61
1 changed files with 7 additions and 1 deletions
|
@ -20,7 +20,13 @@ const Badge: FC<BadgeProps> = ({ slug }) => {
|
||||||
})()
|
})()
|
||||||
}, [slug])
|
}, [slug])
|
||||||
|
|
||||||
if (!badgeData) return <></>
|
if (!badgeData)
|
||||||
|
return (
|
||||||
|
<div className="mb-2 mr-2 flex w-fit items-center px-2 py-1 text-xs">
|
||||||
|
<div className="badge mr-1 inline-block w-6 align-middle" />
|
||||||
|
<span>Loading...</span>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue