diff --git a/xroom-dashboard/src/assets/img/exitIcon.png b/xroom-dashboard/src/assets/img/exitIcon.png new file mode 100644 index 0000000..f89191e Binary files /dev/null and b/xroom-dashboard/src/assets/img/exitIcon.png differ diff --git a/xroom-dashboard/src/assets/img/shopIcon.png b/xroom-dashboard/src/assets/img/shopIcon.png new file mode 100644 index 0000000..c52edcc Binary files /dev/null and b/xroom-dashboard/src/assets/img/shopIcon.png differ diff --git a/xroom-dashboard/src/components/Header.vue b/xroom-dashboard/src/components/Header.vue index b714b96..1b795df 100644 --- a/xroom-dashboard/src/components/Header.vue +++ b/xroom-dashboard/src/components/Header.vue @@ -1,96 +1,384 @@ - - +} + + \ No newline at end of file + height: 55px; + object-fit: cover; +} + +.line { + height: 40px; + width: 1px; + background-color: #eaeaea; +} + +.dropdown-menu { + /* position: absolute; */ + top: 50px; + right: 0; + background-color: white; + border: 1px solid #eaeaea; + border-radius: 8px; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); + z-index: 100; + min-width: 150px; + overflow: hidden; +} + +.dropdown-item { + display: flex; + align-items: center; + justify-content: space-between; + padding: 10px 15px; + cursor: pointer; + transition: background-color 0.2s; +} + +.dropdown-item:hover { + background-color: #f5f5f5; +} + +.logout-icon { + width: 16px; + height: 16px; +} + + +.user-info-container { + display: flex; + align-items: center; + gap: 15px; + margin-left: 25px; + position: relative; /* Add this for dropdown positioning */ +} + +.user-name-container { + display: flex; + align-items: center; + gap: 8px; + position: relative; /* Important for dropdown positioning */ +} + +.dropdown-menu { + position: absolute; + top: 100%; /* Position below the user info */ + right: 0; + background-color: white; + border: 1px solid #eaeaea; + border-radius: 8px; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); + z-index: 1000; /* Higher z-index to ensure it's above other elements */ + min-width: 150px; + margin-top: 5px; /* Small gap from the user info */ +} + +.dropdown-item { + display: flex; + align-items: center; + justify-content: space-between; + padding: 10px 15px; + cursor: pointer; + transition: background-color 0.2s; +} + +.dropdown-item:hover { + background-color: #f5f5f5; +} + +.logout-icon { + width: 16px; + height: 16px; +} + +/* Ensure header has proper z-index */ +.header-container { + display: flex; + align-items: center; + justify-content: space-between; + padding: 20px; + background-color: #ffffff; + border-bottom: 1px solid #eaeaea; + position: relative; + z-index: 100; /* Lower than dropdown but higher than page content */ +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +.dropdown-menu { + position: absolute; + top: 100%; + right: 0; + background-color: white; + border: 1px solid #eaeaea; + border-radius: 16px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); + z-index: 1000; + min-width: 200px; + padding: 10px 0; +} + +.dropdown-item { + display: flex; + align-items: center; + justify-content: space-between; + padding: 12px 16px; + cursor: pointer; + transition: background-color 0.2s; +} + +.dropdown-item:hover { + background-color: #f5f5f5; +} + +.dropdown-label { + font-size: 14px; + color: #333; +} + +.team-name { + font-size: 14px; + color: #3b82f6; /* Tailwind blue-500 */ + text-decoration: none; + margin-left: 8px; +} + +.dropdown-icon { + width: 18px; + height: 18px; + margin-left: 8px; +} + +.logout { + color: #f56565; /* Tailwind red-500 */ +} + +.logout .dropdown-label { + color: #f56565; +} + + \ No newline at end of file diff --git a/xroom-dashboard/src/pages/dashboard/index.vue b/xroom-dashboard/src/pages/dashboard/index.vue index 1e101ec..8d623e4 100644 --- a/xroom-dashboard/src/pages/dashboard/index.vue +++ b/xroom-dashboard/src/pages/dashboard/index.vue @@ -1,577 +1,336 @@ - \ No newline at end of file