parent
07adbd86cd
commit
236e057fac
4 changed files with 65 additions and 0 deletions
After Width: | Height: | Size: 489 B |
@ -0,0 +1,49 @@ |
|||||||
|
import React from "react"; |
||||||
|
|
||||||
|
import profilePic from "./portrait-of-a-smiling-young-man-in-eyewear.svg"; |
||||||
|
import arrowDown from "./arrow-down.svg"; |
||||||
|
|
||||||
|
const ProfileInfo = ({ name, role }) => { |
||||||
|
return ( |
||||||
|
<div className="flex flex-row items-center"> |
||||||
|
<img src={profilePic} className="rounded-full" alt="profile-pic" /> |
||||||
|
<div className="mx-4"> |
||||||
|
<p className="text-[#0F0543] font-bold text-sm">{name}</p> |
||||||
|
<span className="text-[#0F0543] text-xs">{role}</span> |
||||||
|
</div> |
||||||
|
{/* dropdown */} |
||||||
|
<button |
||||||
|
id="dropdownDefault" |
||||||
|
data-dropdown-toggle="dropdown" |
||||||
|
type="button" |
||||||
|
> |
||||||
|
<img src={arrowDown} className="cursor-pointer" alt="arrow-down" /> |
||||||
|
</button> |
||||||
|
<div |
||||||
|
id="dropdown" |
||||||
|
className="hidden z-10 w-44 bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700" |
||||||
|
> |
||||||
|
<ul |
||||||
|
className="py-1 text-sm text-gray-700 dark:text-gray-200" |
||||||
|
aria-labelledby="dropdownDefault" |
||||||
|
> |
||||||
|
<li> |
||||||
|
<a |
||||||
|
href="#" |
||||||
|
className="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white" |
||||||
|
> |
||||||
|
Dashboard |
||||||
|
</a> |
||||||
|
</li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
|
export default ProfileInfo; |
||||||
|
|
||||||
|
ProfileInfo.defaultProps = { |
||||||
|
name: "سبحان قاسمی", |
||||||
|
role: "خادم محترم", |
||||||
|
}; |
After Width: | Height: | Size: 33 KiB |
Loading…
Reference in new issue