@@ -4,7 +4,7 @@ import SlideOverPrimaryMenu from "@/Components/Sidebars/SlideOverPrimaryMenu.vue
4
4
import { onMounted , ref } from " vue" ;
5
5
import SearchAnythingModal from " @/Components/Modals/SearchAnythingModal.vue" ;
6
6
import ThumbnailSmallImageSlider from " @/Components/ImageSliders/ThumbnailSmallImageSlider.vue" ;
7
- import { usePage } from " @inertiajs/vue3" ;
7
+ import { router } from " @inertiajs/vue3" ;
8
8
9
9
import DynamicMenuModal from " @/Components/Modals/DynamicMenuModal.vue" ;
10
10
@@ -79,6 +79,10 @@ const goToHome = function () {
79
79
}
80
80
};
81
81
82
+ const handleLogout = () => {
83
+ router .post (route (" logout" ));
84
+ };
85
+
82
86
onMounted (() => {
83
87
appFrontendUrl .value = import .meta.env.VITE_FRONTEND_APP_URL;
84
88
});
@@ -107,7 +111,7 @@ onMounted(() => {
107
111
</DynamicMenuModal >
108
112
<!-- search anything - start -->
109
113
110
- <div class =" flex flex-1" >
114
+ <div class =" flex flex-1 border-r border-myPrimaryLightMediumGrayColor " >
111
115
<div class =" ml-4 flex items-center md:ml-6 gap-8" >
112
116
<form class =" w-full flex md:ml-0" @submit.prevent >
113
117
<div
@@ -133,19 +137,20 @@ onMounted(() => {
133
137
</div >
134
138
</div >
135
139
<!-- search anything - end -->
136
- <header class =" w-6/1 text-sm" >
140
+ <header class =" w-6/1 text-sm flex justify-between overflow-x-auto " >
137
141
<nav
138
- class =" mx-auto flex gap-4 max-w-7xl items-center justify-end px-6 lg:px-8"
142
+ class =" mx-auto flex gap-4 max-w-7xl items-center justify-end px-6 lg:px-8 mt-2 "
139
143
aria-label =" Global"
140
144
>
141
- <button @click =" goToHome" type =" button" >
142
- <div
143
- class =" h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white hover:fill-white focus-visible:ring-0 text-myPrimaryDarkGrayColor"
144
- >
145
- <span class =" myMediumIcon material-symbols-outlined" >
146
- home
147
- </span >
148
- </div >
145
+ <button
146
+ @click =" goToHome"
147
+ type =" button"
148
+ class =" myPrimaryMenuTextButton text-[12.5px] gap-2 text-nowrap pl-2 pr-3 w-full h-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"
149
+ >
150
+ <span class =" myMediumIcon material-symbols-outlined" >
151
+ home
152
+ </span >
153
+ <span > Start </span >
149
154
</button >
150
155
151
156
<button
@@ -156,7 +161,7 @@ onMounted(() => {
156
161
"
157
162
type =" button"
158
163
@click =" handleMenuUserTeamModal"
159
- class =" h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover: text-white focus-visible:ring-0 "
164
+ class =" flex justify-center items-center py-0.5 border-2 border-myPrimaryLinkColor hover:bg-myPrimaryLinkColor hover: bg-opacity-10 myPrimaryMenuTextButton text-[12.5px] gap-2 text-nowrap pl-2 pr-3 "
160
165
>
161
166
<div class =" h-10 w-10 flex-shrink-0" >
162
167
<ThumbnailSmallImageSlider
@@ -167,6 +172,7 @@ onMounted(() => {
167
172
:roundedFull =" true"
168
173
></ThumbnailSmallImageSlider >
169
174
</div >
175
+ <span > Account </span >
170
176
</button >
171
177
<button
172
178
v-if ="
@@ -176,24 +182,43 @@ onMounted(() => {
176
182
"
177
183
@click =" handleMenuUserTeamModal"
178
184
type =" button"
179
- class =" h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover: text-white focus-visible:ring-0 "
185
+ class =" flex justify-center items-center py-0.5 border-2 border-myPrimaryLinkColor hover:bg-myPrimaryLinkColor hover: bg-opacity-10 myPrimaryMenuTextButton text-[12.5px] gap-2 text-nowrap pl-2 pr-3 "
180
186
>
181
- <span class =" myMediumIcon material-symbols-outlined" >
182
- person
183
- </span >
187
+ <div
188
+ class =" h-10 min-h-10 max-h-10 w-10 min-w-10 max-w-10 flex justify-center items-center mx-4"
189
+ >
190
+ <span class =" myMediumIcon material-symbols-outlined" >
191
+ person
192
+ </span >
193
+ <span > Account </span >
194
+ </div >
184
195
</button >
185
196
186
197
<button
187
198
@click =" handleNotificationsSlideOver"
188
199
type =" button"
189
- class =" h-10 w- 10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white hover:fill-white focus-visible:ring-0 text-myPrimaryDarkGrayColor "
200
+ class =" myPrimaryMenuTextButton text-[12.5px] gap-2 text-nowrap pl-2 pr-3 w-full h- 10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"
190
201
>
191
202
<span class =" sr-only" >View notifications</span >
192
203
<span class =" myMediumIcon material-symbols-outlined" >
193
204
notifications
194
205
</span >
206
+ <span > Notifications </span >
195
207
</button >
196
208
209
+ <form @submit.prevent =" handleLogout" >
210
+ <button
211
+ @click =" handleLogout"
212
+ type =" button"
213
+ class =" myPrimaryMenuTextButton text-[12.5px] gap-2 text-nowrap pl-2 pr-3 w-full h-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"
214
+ >
215
+ <span class =" myMediumIcon material-symbols-outlined" >
216
+ arrow_forward
217
+ </span >
218
+ <span > Sign out </span >
219
+ </button >
220
+ </form >
221
+
197
222
<button
198
223
@click =" handlePrimaryMenuSlideOver"
199
224
type =" button"
0 commit comments