feat: first commit

This commit is contained in:
eleanor.mao
2025-03-31 22:34:22 +08:00
commit d25187c9c8
390 changed files with 57031 additions and 0 deletions

View File

@ -0,0 +1,13 @@
.badge {
position: absolute;
top: 0;
right: 0;
color: #FFFFFF;
background: #FF5051;
font-size: 24px;
line-height: 34px;
padding: 0 8px;
border-radius: 10px;
border-bottom-left-radius: 0;
transform: translate3d(30%, -50%, 0);
}

View File

@ -0,0 +1,16 @@
import classNames from 'classnames';
import './index.less';
interface IProps {
text: string;
className?: string;
}
const PREFIX = 'badge';
function Badge(props: IProps) {
const { className, text } = props;
return <div className={classNames(PREFIX, className)}>{text}</div>;
}
export default Badge;