From 058a10fdc944e8d2eb25d88f3459b86b21fc3811 Mon Sep 17 00:00:00 2001 From: mi1468 Date: Sun, 11 May 2025 13:59:22 +0330 Subject: [PATCH] added header component and redesign index dashboard --- xroom-dashboard/src/assets/img/exitIcon.png | Bin 0 -> 455 bytes xroom-dashboard/src/assets/img/shopIcon.png | Bin 0 -> 307 bytes xroom-dashboard/src/components/Header.vue | 464 +++++++++-- xroom-dashboard/src/pages/dashboard/index.vue | 761 ++++++------------ 4 files changed, 636 insertions(+), 589 deletions(-) create mode 100644 xroom-dashboard/src/assets/img/exitIcon.png create mode 100644 xroom-dashboard/src/assets/img/shopIcon.png diff --git a/xroom-dashboard/src/assets/img/exitIcon.png b/xroom-dashboard/src/assets/img/exitIcon.png new file mode 100644 index 0000000000000000000000000000000000000000..f89191e5640dc943a282a19af5584ff5f1b6d8bc GIT binary patch literal 455 zcmV;&0XY7NP)a{! zpN3TG=7RIN4rp&5woPUiD~#G{x~Ma5hC@#Zv1CeJfk77hu^I!5qR4T|6k~7nz6yfq zBM9PSpA8LlIhzsi`k)%d?hy)jr*R`7bzUju*6m>$GCbb=7;2kf7=ahYn9f4bU8U%M z>ZWO?1=8jw40~XZ1Q_9T3rfXZ&NE|$Bwd6^>%kyK&=z*i`9t-+aZ|p-|BS&NQLvSi z^yfq!&L{i6#z4n$Tnx5f1sji;)cFo_C^a1=2_dw5KPoKCGQ;EK%(9Yo7~a(xvDY4T x^;3w23AoDyW~qmFGRCEAFejZfoxn-^`U2*}gLuNTIv4-|002ovPDHLkV1l~ay#4?H literal 0 HcmV?d00001 diff --git a/xroom-dashboard/src/assets/img/shopIcon.png b/xroom-dashboard/src/assets/img/shopIcon.png new file mode 100644 index 0000000000000000000000000000000000000000..c52edcc8133de8e1bea8ed1b3388f3c7661809c2 GIT binary patch literal 307 zcmeAS@N?(olHy`uVBq!ia0vp^LO?9c!3HGfPKx~mq&N#aB8wRqxP?KOkzv*x37{Zj zage(c!@6@aFM%AEbVpxD28NCO+dKnvMxj^InUd9WLxmP`! zaJ%AnMK0Q9mRI2w>!K}A_X5kK*B#t^lEo`6ZH25t+QsS9#HO{rELEyFSmg79eJ)2_ z;JF(K)-~T^L}gF|I)ShfyZ1HiSs{tJKye`z!^vRJE@<4{1=+; zV6N=>?4+qx+A+hEHk!NAj~V{|yyIK^-{K{o?zyWr=YC$=w*u%V22WQ%mvv4FO#rQL BcyIs! literal 0 HcmV?d00001 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