diff --git a/frontend/src/app/components/header/Header.jsx b/frontend/src/app/components/header/Header.jsx index d0350c5..203bbd4 100644 --- a/frontend/src/app/components/header/Header.jsx +++ b/frontend/src/app/components/header/Header.jsx @@ -5,7 +5,19 @@ import styles from "./styles.module.css"; import { useState } from "react"; const Header = () => { + const orgList = [ + { name: "Project Moonshot Inc." }, + { name: "Organization X" }, + { name: "Organization Y" }, + { name: "Organization Z" }, + ]; const [open, setOpen] = useState(false); + const [orgId, setorgId] = useState(null); + + const activeHandler = (index) => { + setorgId(index); + }; + return ( // Main Container
@@ -16,18 +28,139 @@ const Header = () => {

Organization

-
setOpen(!open)} - > +
{/* Dropdown */} {open && (
-
ahdas
+ {/* Organization Header and Search */} +
+ {/* Header */} +
+

Organization

+
+

Create

+ + + + + + + + + + + + +
+
+ {/* Search */} +
+
+ + + + + + + + + + + + +
+
+
+ + {/* Select Options */} +
+ {orgList.map((org, index) => { + return ( +
activeHandler(index)} + > +
+ + + +

{org.name}

+
+
+ ); + })} +
)} {/* Button */} -
+
setOpen(!open)} + >

Project Moonshot Inc.

p { + color: #a3a7c6; + color: color(display-p3 0.6425 0.6544 0.7649); + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 500; + line-height: normal; +} +.createBtn { + display: flex; + justify-content: center; + align-items: center; + gap: 6px; +} +.createBtn > p { + color: #8187ff; + color: color(display-p3 0.5098 0.5294 1); + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 500; + line-height: normal; +} + +.createBtn:hover > p { + color: #9ba0ff; + color: color(display-p3 0.6127 0.6282 1); + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 500; + line-height: normal; + text-decoration-line: underline; + text-decoration-style: dotted; + text-decoration-skip-ink: auto; + text-decoration-thickness: auto; + text-underline-offset: auto; + text-underline-position: from-font; +} +.createBtn:hover > svg path { + stroke: #9ba0ff; + stroke-width: 1.5px; + stroke: color(display-p3 0.6127 0.6282 1); +} + +.searchBtnContainer { + display: flex; + align-items: center; + gap: 10px; + align-self: stretch; +} +.searchInputGroup { + display: flex; + padding: 8px 12px; + align-items: center; + gap: 9px; + flex: 1 0 0; + border-radius: 4px; + background: #282c3c; + background: color(display-p3 0.1593 0.1702 0.2316); +} + +.placeholderTxt { + flex: 1; + background: transparent; + border: none; + outline: none; + font-family: Inter; + font-size: 16px; +} +.placeholderTxt::placeholder { + color: #85869b; + color: color(display-p3 0.5216 0.5255 0.6); + font-family: Inter; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: normal; + letter-spacing: 0.08px; +} + +.optionsContainer { + display: flex; + width: 318px; + flex-direction: column; + align-items: flex-start; +} +.orgList:hover { + border-radius: 4px; + background: #3c4159; + background: color(display-p3 0.2398 0.2548 0.3399); +} +.orgList { + display: flex; + padding: 6px; + align-items: center; + gap: 10px; + align-self: stretch; + border-radius: 4px; +} +.iconTxt { + display: flex; + align-items: center; + gap: 12px; +} + +.iconTxt > svg { + opacity: 0; +} +.active > svg { + opacity: 1; +} + +.iconTxt > p { + color: #d2d3e1; + color: color(display-p3 0.8235 0.8275 0.8784); + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 500; + line-height: normal; +} +/* Later */ .profileContainer { display: flex; height: 44px;