feat: Add avatar component and get initials logic
This commit is contained in:
committed by
Michael Zetterberg
parent
cfb08fff2c
commit
88795b673d
27
components/MyPages/Avatar/avatar.module.css
Normal file
27
components/MyPages/Avatar/avatar.module.css
Normal file
@@ -0,0 +1,27 @@
|
||||
.avatar {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
vertical-align: middle;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
border-radius: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.avatarInitialsText {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--Theme-Primary-Dark-Surface-Normal);
|
||||
color: var(--Theme-Primary-Dark-On-Surface-Text);
|
||||
font-size: var(--typography-Caption-Bold-fontSize);
|
||||
font-family: var(--typography-Body-Regular-fontFamily);
|
||||
font-weight: var(--typography-Caption-Bold-fontWeight);
|
||||
line-height: 150%;
|
||||
letter-spacing: 0.096px;
|
||||
}
|
||||
Reference in New Issue
Block a user