mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-03 23:16:52 +00:00
gitbook 增加新文章红点机制
This commit is contained in:
11
components/Badge.js
Normal file
11
components/Badge.js
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* 红点
|
||||
*/
|
||||
export default function Badge() {
|
||||
return <>
|
||||
{/* 红点 */}
|
||||
<span class="absolute right-1 top-1 flex h-2 w-2">
|
||||
<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75"></span>
|
||||
<span class="relative inline-flex rounded-full h-2 w-2 bg-red-500"></span>
|
||||
</span></>
|
||||
}
|
||||
Reference in New Issue
Block a user