@@ -37,13 +37,13 @@ const logout = () => {
37
37
<div class =" min-h-screen bg-gray-100" >
38
38
<nav class =" bg-white border-b border-gray-100" >
39
39
<!-- Primary Navigation Menu -->
40
- <div class =" max-w-7xl mx-auto px-4 sm:px-6 lg:px-8" >
40
+ <div class =" px-4 mx-auto max-w-7xl sm:px-6 lg:px-8" >
41
41
<div class =" flex justify-between h-16" >
42
42
<div class =" flex" >
43
43
<!-- Logo -->
44
- <div class =" shrink-0 flex items-center" >
44
+ <div class =" flex items-center shrink-0 " >
45
45
<Link :href =" route('dashboard')" >
46
- <ApplicationMark class =" block h-9 w-auto" />
46
+ <ApplicationMark class =" block w-auto h-9 " />
47
47
</Link >
48
48
</div >
49
49
@@ -62,13 +62,13 @@ const logout = () => {
62
62
</div >
63
63
64
64
<div class =" hidden sm:flex sm:items-center sm:ml-6" >
65
- <div class =" ml-3 relative " >
65
+ <div class =" relative ml-3" >
66
66
<!-- Teams Dropdown -->
67
67
<Dropdown v-if =" $page.props.jetstream.hasTeamFeatures" align =" right" width =" 60" >
68
68
<template #trigger >
69
69
<span class =" inline-flex rounded-md" >
70
70
<button type =" button"
71
- class =" inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none focus:bg-gray-50 active:bg-gray-50 transition ease-in-out duration-150 " >
71
+ class =" inline-flex items-center px-3 py-2 text-sm font-medium leading-4 text-gray-500 transition duration-150 ease-in-out bg-white border border-transparent rounded-md hover:text-gray-700 focus:outline-none focus:bg-gray-50 active:bg-gray-50" >
72
72
{{ $page.props.auth.user.current_team.name }}
73
73
74
74
<svg class =" ml-2 -mr-0.5 h-4 w-4" xmlns =" http://www.w3.org/2000/svg"
@@ -112,7 +112,7 @@ const logout = () => {
112
112
<DropdownLink as =" button" >
113
113
<div class =" flex items-center" >
114
114
<svg v-if =" team.id == $page.props.auth.user.current_team_id"
115
- class =" mr-2 h-5 w-5 text-green-400"
115
+ class =" w-5 h-5 mr-2 text-green-400"
116
116
xmlns =" http://www.w3.org/2000/svg" fill =" none"
117
117
viewBox =" 0 0 24 24" stroke-width =" 1.5"
118
118
stroke =" currentColor" >
@@ -131,20 +131,22 @@ const logout = () => {
131
131
</Dropdown >
132
132
</div >
133
133
134
+ <!-- Profile avatar -->
135
+ <img class =" object-cover w-8 h-8 rounded-full"
136
+ :src =" $page.props.auth.user.avatar != 'placeholder' ? $page.props.auth.user.avatar : $page.props.avatar"
137
+ alt =" User profile image" >
138
+
134
139
<!-- Settings Dropdown -->
135
- <div class =" ml-3 relative " >
140
+ <div class =" relative ml-3" >
136
141
<Dropdown align =" right" width =" 48" >
137
142
<template #trigger >
138
143
<button v-if =" $page.props.jetstream.managesProfilePhotos"
139
- class =" flex text-sm border-2 border-transparent rounded-full focus:outline-none focus:border-gray-300 transition" >
140
- <img class =" h-8 w-8 rounded-full object-cover"
141
- :src =" $page.props.auth.user.profile_photo_url"
142
- :alt =" $page.props.auth.user.name" >
144
+ class =" flex text-sm transition border-2 border-transparent rounded-full focus:outline-none focus:border-gray-300" >
143
145
</button >
144
146
145
147
<span v-else class =" inline-flex rounded-md" >
146
148
<button type =" button"
147
- class =" inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none focus:bg-gray-50 active:bg-gray-50 transition ease-in-out duration-150 " >
149
+ class =" inline-flex items-center px-3 py-2 text-sm font-medium leading-4 text-gray-500 transition duration-150 ease-in-out bg-white border border-transparent rounded-md hover:text-gray-700 focus:outline-none focus:bg-gray-50 active:bg-gray-50" >
148
150
{{ $page.props.auth.user.name }}
149
151
150
152
<svg class =" ml-2 -mr-0.5 h-4 w-4" xmlns =" http://www.w3.org/2000/svg"
@@ -155,6 +157,7 @@ const logout = () => {
155
157
</svg >
156
158
</button >
157
159
</span >
160
+
158
161
</template >
159
162
160
163
<template #content >
@@ -186,11 +189,11 @@ const logout = () => {
186
189
</div >
187
190
188
191
<!-- Hamburger -->
189
- <div class =" -mr-2 flex items-center sm:hidden" >
192
+ <div class =" flex items-center -mr-2 sm:hidden" >
190
193
<button
191
- class =" inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out "
194
+ class =" inline-flex items-center justify-center p-2 text-gray-400 transition duration-150 ease-in-out rounded-md hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500"
192
195
@click =" showingNavigationDropdown = !showingNavigationDropdown" >
193
- <svg class =" h -6 w -6" stroke =" currentColor" fill =" none" viewBox =" 0 0 24 24" >
196
+ <svg class =" w -6 h -6" stroke =" currentColor" fill =" none" viewBox =" 0 0 24 24" >
194
197
<path
195
198
:class =" { 'hidden': showingNavigationDropdown, 'inline-flex': !showingNavigationDropdown }"
196
199
stroke-linecap =" round" stroke-linejoin =" round" stroke-width =" 2"
@@ -217,16 +220,16 @@ const logout = () => {
217
220
<!-- Responsive Settings Options -->
218
221
<div class =" pt-4 pb-1 border-t border-gray-200" >
219
222
<div class =" flex items-center px-4" >
220
- <div v-if =" $page.props.jetstream.managesProfilePhotos" class =" shrink-0 mr-3" >
221
- <img class =" h-10 w-10 rounded-full object-cover "
223
+ <div v-if =" $page.props.jetstream.managesProfilePhotos" class =" mr-3 shrink-0 " >
224
+ <img class =" object-cover w-10 h-10 rounded-full "
222
225
:src =" $page.props.auth.user.profile_photo_url" :alt =" $page.props.auth.user.name" >
223
226
</div >
224
227
225
228
<div >
226
- <div class =" font-medium text-base text-gray-800" >
229
+ <div class =" text-base font-medium text-gray-800" >
227
230
{{ $page.props.auth.user.name }}
228
231
</div >
229
- <div class =" font-medium text-sm text-gray-500" >
232
+ <div class =" text-sm font-medium text-gray-500" >
230
233
{{ $page.props.auth.user.email }}
231
234
</div >
232
235
</div >
@@ -280,7 +283,7 @@ const logout = () => {
280
283
<ResponsiveNavLink as =" button" >
281
284
<div class =" flex items-center" >
282
285
<svg v-if =" team.id == $page.props.auth.user.current_team_id"
283
- class =" mr-2 h-5 w-5 text-green-400" xmlns =" http://www.w3.org/2000/svg"
286
+ class =" w-5 h-5 mr-2 text-green-400" xmlns =" http://www.w3.org/2000/svg"
284
287
fill =" none" viewBox =" 0 0 24 24" stroke-width =" 1.5"
285
288
stroke =" currentColor" >
286
289
<path stroke-linecap =" round" stroke-linejoin =" round"
@@ -299,27 +302,27 @@ const logout = () => {
299
302
300
303
<!-- Page Heading -->
301
304
<header v-if =" $slots.header" class =" bg-white shadow" >
302
- <div class =" max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8" >
305
+ <div class =" px-4 py-6 mx-auto max-w-7xl sm:px-6 lg:px-8" >
303
306
<slot name =" header" />
304
307
</div >
305
308
306
- <div v-if =" $page.props.flash.success" class =" bg-indigo-900 text-center py-4 lg:px-4" >
309
+ <div v-if =" $page.props.flash.success" class =" py-4 text-center bg-indigo-900 lg:px-4" >
307
310
<div style =" background-color : #6875F5 "
308
- class =" p-2 items-center text-indigo-100 leading-none lg:rounded-full flex lg:inline-flex"
311
+ class =" flex items-center p-2 leading-none text-indigo-100 lg:rounded-full lg:inline-flex"
309
312
role =" alert" >
310
313
<span
311
- class =" flex rounded-full bg-indigo-500 uppercase px-2 py-1 text-xs font-bold mr-3 " >Success</span >
312
- <span class =" font-semibold mr-2 text-left flex-auto " >{{ $page.props.flash.success }}</span >
314
+ class =" flex px-2 py-1 mr-3 text-xs font-bold uppercase bg-indigo-500 rounded-full " >Success</span >
315
+ <span class =" flex-auto mr-2 font-semibold text-left " >{{ $page.props.flash.success }}</span >
313
316
</div >
314
317
</div >
315
318
316
- <div v-if =" $page.props.flash.delete" class =" bg-indigo-900 text-center py-4 lg:px-4" >
319
+ <div v-if =" $page.props.flash.delete" class =" py-4 text-center bg-indigo-900 lg:px-4" >
317
320
<div style =" background-color : #6875F5 "
318
- class =" p-2 items-center text-indigo-100 leading-none lg:rounded-full flex lg:inline-flex"
321
+ class =" flex items-center p-2 leading-none text-indigo-100 lg:rounded-full lg:inline-flex"
319
322
role =" alert" >
320
323
<span
321
- class =" flex rounded-full bg-indigo-500 uppercase px-2 py-1 text-xs font-bold mr-3 " >Success</span >
322
- <span class =" font-semibold mr-2 text-left flex-auto " >{{ $page.props.flash.delete }}</span >
324
+ class =" flex px-2 py-1 mr-3 text-xs font-bold uppercase bg-indigo-500 rounded-full " >Success</span >
325
+ <span class =" flex-auto mr-2 font-semibold text-left " >{{ $page.props.flash.delete }}</span >
323
326
</div >
324
327
</div >
325
328
0 commit comments