@@ -160,7 +161,7 @@ const HeaderDetails = () => {
{/* Button */}
setOpen(!open)}
+ onClick={() => setOpenOrgDropdown(!openOrgDropdown)}
>
Project Moonshot Inc.
@@ -186,7 +187,10 @@ const HeaderDetails = () => {
{/* Profile Section */}
-
+
setOpenProfileDropdown(!openProfileDropdown)}
+ >
{/* Profile */}
{/* Username and Role*/}
@@ -213,12 +217,15 @@ const HeaderDetails = () => {
- {/* do later */}
{/* Dropdown */}
-
+ {openProfileDropdown && (
+
+ {/* Settings */}
+
+ {/* Logout */}
+
+
+ )}
>
);
diff --git a/frontend/src/app/components/header/components/Profile.module.css b/frontend/src/app/components/header/components/Profile.module.css
index ac83eb6..da28004 100644
--- a/frontend/src/app/components/header/components/Profile.module.css
+++ b/frontend/src/app/components/header/components/Profile.module.css
@@ -4,6 +4,8 @@
height: 44px;
flex-direction: column;
align-items: flex-end;
+ cursor: pointer;
+ position: relative;
}
.profileBadge {
display: flex;
@@ -68,3 +70,38 @@
border-radius: 32px;
background: url(/profile/PROFILE.svg) lightgray 50% / cover no-repeat;
}
+
+.dropdownContainer {
+ display: flex;
+ padding: 6px;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 6px;
+ align-self: stretch;
+ border-radius: 6px;
+ background: #2d3144;
+ background: color(display-p3 0.1787 0.1913 0.2605);
+ box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.25);
+ box-shadow: 0 2px 15px 0 color(display-p3 0 0 0 / 0.25);
+ cursor: pointer;
+ position: absolute;
+ top: 100%;
+ margin-top: 2px;
+}
+
+.settingsBtn {
+ display: flex;
+ padding: 8px 12px;
+ align-items: center;
+ gap: 10px;
+ align-self: stretch;
+ border-radius: 4px;
+}
+.logoutBtn {
+ display: flex;
+ padding: 8px 12px;
+ align-items: center;
+ gap: 10px;
+ align-self: stretch;
+ border-radius: 4px;
+}
diff --git a/frontend/src/app/roles/page.jsx b/frontend/src/app/roles/page.jsx
index 8a1e626..e93ac5c 100644
--- a/frontend/src/app/roles/page.jsx
+++ b/frontend/src/app/roles/page.jsx
@@ -6,27 +6,27 @@ import styles from "./styles.module.css";
const RolesPage = () => {
const sampleData = [
{
- name: "organizatio-owner",
+ name: "organization-owner",
orgId: "67160a5ae69144ff19aafb86",
permissions: "35 Permissions",
},
{
- name: "organizatio-owner",
+ name: "organization-owner",
orgId: "67160a5ae69144ff19aafb86",
permissions: "35 Permissions",
},
{
- name: "organizatio-owner",
+ name: "organization-owner",
orgId: "67160a5ae69144ff19aafb86",
permissions: "35 Permissions",
},
{
- name: "organizatio-owner",
+ name: "organization-owner",
orgId: "67160a5ae69144ff19aafb86",
permissions: "35 Permissions",
},
{
- name: "organizatio-owner",
+ name: "organization-owner",
orgId: "67160a5ae69144ff19aafb86",
permissions: "35 Permissions",
},