@@ -37,13 +37,13 @@ const logout = () => {
3737 <div class =" min-h-screen bg-gray-100" >
3838 <nav class =" bg-white border-b border-gray-100" >
3939 <!-- 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" >
4141 <div class =" flex justify-between h-16" >
4242 <div class =" flex" >
4343 <!-- Logo -->
44- <div class =" shrink-0 flex items-center" >
44+ <div class =" flex items-center shrink-0 " >
4545 <Link :href =" route('dashboard')" >
46- <ApplicationMark class =" block h-9 w-auto" />
46+ <ApplicationMark class =" block w-auto h-9 " />
4747 </Link >
4848 </div >
4949
@@ -62,13 +62,13 @@ const logout = () => {
6262 </div >
6363
6464 <div class =" hidden sm:flex sm:items-center sm:ml-6" >
65- <div class =" ml-3 relative " >
65+ <div class =" relative ml-3" >
6666 <!-- Teams Dropdown -->
6767 <Dropdown v-if =" $page.props.jetstream.hasTeamFeatures" align =" right" width =" 60" >
6868 <template #trigger >
6969 <span class =" inline-flex rounded-md" >
7070 <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" >
7272 {{ $page.props.auth.user.current_team.name }}
7373
7474 <svg class =" ml-2 -mr-0.5 h-4 w-4" xmlns =" http://www.w3.org/2000/svg"
@@ -112,7 +112,7 @@ const logout = () => {
112112 <DropdownLink as =" button" >
113113 <div class =" flex items-center" >
114114 <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"
116116 xmlns =" http://www.w3.org/2000/svg" fill =" none"
117117 viewBox =" 0 0 24 24" stroke-width =" 1.5"
118118 stroke =" currentColor" >
@@ -131,20 +131,22 @@ const logout = () => {
131131 </Dropdown >
132132 </div >
133133
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+
134139 <!-- Settings Dropdown -->
135- <div class =" ml-3 relative " >
140+ <div class =" relative ml-3" >
136141 <Dropdown align =" right" width =" 48" >
137142 <template #trigger >
138143 <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" >
143145 </button >
144146
145147 <span v-else class =" inline-flex rounded-md" >
146148 <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" >
148150 {{ $page.props.auth.user.name }}
149151
150152 <svg class =" ml-2 -mr-0.5 h-4 w-4" xmlns =" http://www.w3.org/2000/svg"
@@ -155,6 +157,7 @@ const logout = () => {
155157 </svg >
156158 </button >
157159 </span >
160+
158161 </template >
159162
160163 <template #content >
@@ -186,11 +189,11 @@ const logout = () => {
186189 </div >
187190
188191 <!-- Hamburger -->
189- <div class =" -mr-2 flex items-center sm:hidden" >
192+ <div class =" flex items-center -mr-2 sm:hidden" >
190193 <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"
192195 @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" >
194197 <path
195198 :class =" { 'hidden': showingNavigationDropdown, 'inline-flex': !showingNavigationDropdown }"
196199 stroke-linecap =" round" stroke-linejoin =" round" stroke-width =" 2"
@@ -217,16 +220,16 @@ const logout = () => {
217220 <!-- Responsive Settings Options -->
218221 <div class =" pt-4 pb-1 border-t border-gray-200" >
219222 <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 "
222225 :src =" $page.props.auth.user.profile_photo_url" :alt =" $page.props.auth.user.name" >
223226 </div >
224227
225228 <div >
226- <div class =" font-medium text-base text-gray-800" >
229+ <div class =" text-base font-medium text-gray-800" >
227230 {{ $page.props.auth.user.name }}
228231 </div >
229- <div class =" font-medium text-sm text-gray-500" >
232+ <div class =" text-sm font-medium text-gray-500" >
230233 {{ $page.props.auth.user.email }}
231234 </div >
232235 </div >
@@ -280,7 +283,7 @@ const logout = () => {
280283 <ResponsiveNavLink as =" button" >
281284 <div class =" flex items-center" >
282285 <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"
284287 fill =" none" viewBox =" 0 0 24 24" stroke-width =" 1.5"
285288 stroke =" currentColor" >
286289 <path stroke-linecap =" round" stroke-linejoin =" round"
@@ -299,27 +302,27 @@ const logout = () => {
299302
300303 <!-- Page Heading -->
301304 <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" >
303306 <slot name =" header" />
304307 </div >
305308
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" >
307310 <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"
309312 role =" alert" >
310313 <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 >
313316 </div >
314317 </div >
315318
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" >
317320 <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"
319322 role =" alert" >
320323 <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 >
323326 </div >
324327 </div >
325328
0 commit comments