Gradient Avatar

This commit is contained in:
Belen Curcio
2020-10-14 12:44:03 -03:00
parent 305b7b87db
commit ced85970f8
4 changed files with 21 additions and 6 deletions

View File

@@ -10,12 +10,13 @@ interface Props {
const Avatar: FC<Props> = ({ className }) => {
const rootClassName = cn(s.root, className)
return (
<div className={rootClassName}>
<img
className="inline-block h-8 w-8 rounded-full"
src="https://vercel.com/api/www/avatar/61182a9f6bda512b4d9263c9c8a60aabe0402f4c?s=204"
alt=""
></img>
<div
className="inline-block h-8 w-8 rounded-full border border-accent"
style={{
backgroundImage: 'linear-gradient(160deg, #F9CB28, #FF4D4D 100%)',
}}
>
{/* <img></img> */}
</div>
)
}