feat: implement updating circle

This commit is contained in:
taDuc
2026-05-13 15:48:00 +07:00
parent 41e43d4974
commit 14a06af343
10 changed files with 1010 additions and 122 deletions
+33
View File
@@ -0,0 +1,33 @@
"use client";
import type { CSSProperties } from "react";
type Props = {
title?: string;
};
export default function NewBadge({ title = "Created in this session and not committed yet" }: Props) {
return (
<span style={badgeStyle} title={title}>
new
</span>
);
}
const badgeStyle: CSSProperties = {
display: "inline-flex",
alignItems: "center",
justifyContent: "center",
flex: "0 0 auto",
height: 17,
padding: "0 6px",
borderRadius: 999,
border: "1px solid rgba(45, 212, 191, 0.55)",
background: "rgba(20, 184, 166, 0.16)",
color: "#5eead4",
fontSize: 10,
fontWeight: 900,
lineHeight: 1,
textTransform: "uppercase",
letterSpacing: 0,
};