added profile section

This commit is contained in:
2026-02-24 21:04:35 +08:00
parent 8b2d410738
commit aeee39852b
3 changed files with 94 additions and 2 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.7 MiB

View File

@@ -184,7 +184,36 @@ const Header = () => {
</div>
{/* Profile Section */}
<div className={styles.profileContainer}></div>
<div className={styles.profileContainer}>
{/* Profile */}
<div className={styles.profileBadge}>
{/* Username and Role*/}
<div className={styles.nameRole}>
<p className={styles.userName}>JM Grills</p>
<p className={styles.userRole}>Super Admin</p>
</div>
{/* User profile*/}
<div className={styles.userImgContainer}>
<div className={styles.userPic}></div>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
>
<path
d="M12 16C13.1046 16 14 16.8954 14 18C14 19.1046 13.1046 20 12 20C10.8954 20 10 19.1046 10 18C10 16.8954 10.8954 16 12 16ZM12 10C13.1046 10 14 10.8954 14 12C14 13.1046 14 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10ZM12 4C13.1046 4 14 4.89543 14 6C14 7.10457 13.1046 8 12 8C10.8954 8 10 7.10457 10 6C10 4.89543 10.8954 4 12 4Z"
fill="#858699"
/>
</svg>
</div>
</div>
{/* Dropdown */}
<div></div>
</div>
</div>
);
};

View File

@@ -240,10 +240,64 @@
font-weight: 500;
line-height: normal;
}
/* Later */
/* Profile */
.profileContainer {
display: flex;
height: 44px;
flex-direction: column;
align-items: flex-end;
}
.profileBadge {
display: flex;
padding: 6px 0 6px 8px;
justify-content: flex-end;
align-items: center;
gap: 10px;
}
.nameRole {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-end;
gap: 6px;
}
.userName {
align-self: stretch;
color: #d2d3e1;
color: color(display-p3 0.8235 0.8275 0.8784);
text-align: right;
leading-trim: both;
text-edge: cap;
font-family: Inter;
font-size: 15px;
font-style: normal;
font-weight: 500;
line-height: 30px; /* 200% */
letter-spacing: -0.15px;
}
.userRole {
align-self: stretch;
color: #85869b;
color: color(display-p3 0.5216 0.5255 0.6);
text-align: right;
leading-trim: both;
text-edge: cap;
font-family: Inter;
font-size: 13px;
font-style: normal;
font-weight: 400;
line-height: 30px; /* 230.769% */
letter-spacing: -0.26px;
}
.userImgContainer {
display: flex;
align-items: center;
gap: 5px;
}
.userPic {
width: 32px;
height: 32px;
aspect-ratio: 1/1;
border-radius: 32px;
background: url(/PROFILE.svg) lightgray 50% / cover no-repeat;
}