A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
Navbar UI Update and dropdown positioning
aminnausin9caf06a4f35c
diff --git a/package-lock.json b/package-lock.jsonindex 23ddce21..bb065fda 100644--- a/package-lock.json+++ b/package-lock.json@@ -6,6 +6,7 @@"": {"dependencies": {"@headlessui/vue": "^1.7.22",+ "@popperjs/core": "^2.11.8","@tailwindcss/aspect-ratio": "^0.4.2","@tailwindcss/forms": "^0.5.7","@vueuse/components": "^10.11.0",@@ -816,6 +817,15 @@"node": ">=14"}},+ "node_modules/@popperjs/core": {+ "version": "2.11.8",+ "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",+ "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/popperjs"+ }+ },"node_modules/@rollup/rollup-android-arm-eabi": {"version": "4.15.0","resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.15.0.tgz",diff --git a/package.json b/package.jsonindex 44eae170..ebf78fb3 100644--- a/package.json+++ b/package.json@@ -25,6 +25,7 @@},"dependencies": {"@headlessui/vue": "^1.7.22",+ "@popperjs/core": "^2.11.8","@tailwindcss/aspect-ratio": "^0.4.2","@tailwindcss/forms": "^0.5.7","@vueuse/components": "^10.11.0",diff --git a/public/js/history.js b/public/js/history.jsindex 434bd79b..897994a6 100644--- a/public/js/history.js+++ b/public/js/history.js@@ -37,8 +37,8 @@ document.addEventListener("DOMContentLoaded", function(event) {//#region UI Navigation- $("#user_header").on('click', function(){- document.querySelector("#user_dropdown").classList.toggle("hidden");+ $("#user-header").on('click', function(){+ document.querySelector("#user-dropdown").classList.toggle("hidden");});$("#btn-nav-back").on('click', function(){@@ -47,8 +47,8 @@ document.addEventListener("DOMContentLoaded", function(event) {window.addEventListener('click', function(e){try {- let dropdown = this.document.querySelector("#user_dropdown")- if (!this.document.querySelector("#user_options").contains(e.target)){+ let dropdown = this.document.querySelector("#user-dropdown")+ if (!this.document.querySelector("#user-options").contains(e.target)){dropdown.classList.add("hidden");}} catch (error) {diff --git a/public/js/main.js b/public/js/main.jsindex 3917345c..2e9205d9 100644--- a/public/js/main.js+++ b/public/js/main.js@@ -38,8 +38,8 @@ document.addEventListener("DOMContentLoaded", function(event) {//#region UI Navigation- // $("#user_header").on('click', function(){- // document.querySelector("#user_dropdown").classList.toggle("hidden");+ // $("#user-header").on('click', function(){+ // document.querySelector("#user-dropdown").classList.toggle("hidden");// });$("#btn-nav-folders").on('click', function(){@@ -52,8 +52,8 @@ document.addEventListener("DOMContentLoaded", function(event) {// window.addEventListener('click', function(e){// try {- // let dropdown = this.document.querySelector("#user_dropdown")- // if (!this.document.querySelector("#user_options").contains(e.target)){+ // let dropdown = this.document.querySelector("#user-dropdown")+ // if (!this.document.querySelector("#user-options").contains(e.target)){// dropdown.classList.add("hidden");// }// } catch (error) {diff --git a/resources/js/components/inputs/NavButton.vue b/resources/js/components/inputs/NavButton.vueindex 27188a8a..bda7372a 100644--- a/resources/js/components/inputs/NavButton.vue+++ b/resources/js/components/inputs/NavButton.vue@@ -6,7 +6,7 @@ const activeColour = ref(`bg-neutral-200 dark:bg-violet-600/60`) ;</script><template><button :id="'btn-nav-' + props.label"- :class="`${props.active ? activeColour : `bg-neutral-300 dark:bg-neutral-700 hover:bg-neutral-200 hover:dark:bg-violet-600/60 `} dark:text-neutral-200 flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg`"+ :class="`${props.active ? activeColour : `bg-neutral-300 dark:bg-neutral-800 hover:bg-neutral-200 hover:dark:bg-violet-600/60 `} dark:text-neutral-200 flex justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg`":aria-label="props.label"><slot name="icon"></slot><span :class="`hidden ${activeColour}`"></span>diff --git a/resources/js/components/layout/LayoutBase.vue b/resources/js/components/layout/LayoutBase.vueindex 3abfbbf4..eaeadcea 100644--- a/resources/js/components/layout/LayoutBase.vue+++ b/resources/js/components/layout/LayoutBase.vue@@ -12,7 +12,7 @@ const { selectedSideBar } = storeToRefs(appStore);<section id="left-card" class="w-full p-3 pb-6 rounded-2xl lg:w-1/6 lg:max-w-72 sm:min-w-32 shrink-0 space-y-2 scroll-mt-6 hidden lg:block"></section><section id="content-card"- class="bg-primary-900 dark:bg-primary-dark-900 dark:text-[#e2e0e2] shadow-xl p-6 pt-3 rounded-2xl w-full flex flex-col gap-3 overflow-x-hidden">+ class="bg-primary-900 dark:bg-primary-dark-900 dark:text-[#e2e0e2] shadow-xl p-6 pt-3 rounded-2xl w-full flex flex-col gap-3"><NavBar /><slot name="content"></slot></section>diff --git a/resources/js/components/layout/NavBar.vue b/resources/js/components/layout/NavBar.vueindex 6e500966..b4ed6a46 100644--- a/resources/js/components/layout/NavBar.vue+++ b/resources/js/components/layout/NavBar.vue@@ -1,6 +1,5 @@<script setup>import LightModeToggle from '../inputs/LightModeToggle.vue';-import UserDropdown from '../user/UserDropdown.vue';import NavButton from '../inputs/NavButton.vue';import NavLink from '../inputs/NavLink.vue';@@ -33,7 +32,7 @@ const toggleDropdown = () => {window.addEventListener('click', function (e) {try {- if (!this.document.querySelector("#user_options")?.contains(e.target)) {+ if (!this.document.querySelector("#user-options")?.contains(e.target)) {showDropdown.value = false;}} catch (error) {@@ -54,17 +53,18 @@ watch(userData, handleAuthEvent, { immediate: false });<template><nav id="navbar">- <div class="flex p-1 gap-y-3 flex-wrap justify-between">- <h1 id="title" class="text-2xl">{{ pageTitle }}</h1>- <span class="flex flex-wrap sm:flex-nowrap sm:max-w-sm items-center gap-2 sm:shrink-0">- <section id="user_options" class="group inline-block relative" data-dropdown-toggle="user_dropdown"+ <div class="flex p-1 gap-y-4 gap-2 flex-wrap sm:flex-nowrap justify-between">+ <span class="flex items-end sm:items-center gap-2 justify-between w-full">+ <h1 id="title" class="text-2xl line-clamp-2 sm:line-clamp-1">{{ pageTitle }}</h1>++ <section id="user-options" class="group inline-block relative shrink-0" data-dropdown-toggle="user-dropdown"aria-haspopup="true">- <button id="user_header"+ <button id="user-header"class="flex gap-2 text-2xl text-slate-900 dark:text-white hover:text-accent-600 dark:hover:text-accent-600 items-center justify-center"@click="toggleDropdown">- <span id="user_name" class="hidden sm:block" v-if="username">{{ username }}</span>- <span id="user_name_unauth" v-else class="text-right hidden sm:block">Guest</span>+ <span id="user-name" class="hidden sm:block" v-if="username">{{ username }}</span>+ <span id="user-name-unauth" v-else class="text-right hidden sm:block">Guest</span><img :src="userData?.value?.avatar ?? '/storage/avatars/12345.jpg'"class="h-7 w-7 rounded-full ring-2 ring-accent-600/60 object-cover aspect-square"@@ -72,7 +72,8 @@ watch(userData, handleAuthEvent, { immediate: false });</button><DropdownMenu :dropdownOpen="showDropdown" @toggleDropdown="dropdownOpen = false"/></section>-+ </span>+ <span class="flex flex-wrap sm:flex-nowrap sm:max-w-sm items-center gap-1 sm:shrink-0 justify-end sm:justify-normal w-full sm:w-auto"><section id="navbar-video" class="flex items-center gap-1 text-slate-900 antialiased"><NavButton v-if="username" @click="cycleSideBar('notifications')" :label="'notifications'" class="hidden"><template #icon>@@ -96,7 +97,6 @@ watch(userData, handleAuthEvent, { immediate: false });</template></NavLink></section>-<LightModeToggle /></span></div>diff --git a/resources/js/components/pinesUI/DropdownMenu.vue b/resources/js/components/pinesUI/DropdownMenu.vueindex 5c8842cf..66aa2267 100644--- a/resources/js/components/pinesUI/DropdownMenu.vue+++ b/resources/js/components/pinesUI/DropdownMenu.vue@@ -23,28 +23,28 @@ const authStore = useAuthStore();const { userData } = storeToRefs(authStore);const dropDownItems = [- {name:'login', url:'/login', text:'Log in', icon: LucideLogIn},- {name:'register', url:'/register', text:'Sign up', icon: LucideUserPlus}+ { name: 'login', url: '/login', text: 'Log in', icon: LucideLogIn },+ { name: 'register', url: '/register', text: 'Sign up', icon: LucideUserPlus }];const dropDownItemsAuth = [[- {name:'profile', url:'/profile', text:'Profile', icon: LucideUser},- {name:'settings', url:'/settings', text:'Settings', icon: LucideSettings},- {name:'home', url:'/', text:'Home', icon: LucideTvMinimalPlay},+ { name: 'profile', url: '/profile', text: 'Profile', icon: LucideUser },+ { name: 'settings', url: '/settings', text: 'Settings', icon: LucideSettings },+ { name: 'home', url: '/', text: 'Home', icon: LucideTvMinimalPlay },],[- {name:'friends', url:'/friends', text:'Friends', icon: LucideUsers},- {name:'history', url:'/history', text:'Full History', icon: LucideHistory},- {name:'dashboard', url:'/Dashboard', text:'Dashboard', icon: LucideLayoutDashboard},+ { name: 'friends', url: '/friends', text: 'Friends', icon: LucideUsers },+ { name: 'history', url: '/history', text: 'Full History', icon: LucideHistory },+ { name: 'dashboard', url: '/Dashboard', text: 'Dashboard', icon: LucideLayoutDashboard },],[- {name:'index', url:'/jobs/indexFiles', text:'Index Files', external: true, icon: LucideFolderSearch},- {name:'sync', url:'/jobs/syncFiles', text:'Sync Files', external: true, icon: LucideFolderSync},- {name:'verify', url:'/jobs/verifyFiles', text:'Verify Files', external: true, icon: LucideFolderCheck},+ { name: 'index', url: '/jobs/indexFiles', text: 'Index Files', external: true, icon: LucideFolderSearch },+ { name: 'sync', url: '/jobs/syncFiles', text: 'Sync Files', external: true, icon: LucideFolderSync },+ { name: 'verify', url: '/jobs/verifyFiles', text: 'Verify Files', external: true, icon: LucideFolderCheck },],[- {name:'logout', url:'/logout', text:'Log out', icon: LucideLogOut, shortcut: '⇧⌘Q'},+ { name: 'logout', url: '/logout', text: 'Log out', icon: LucideLogOut, shortcut: '⇧⌘Q' },],];@@ -54,35 +54,55 @@ const props = defineProps(['dropdownOpen'])<template><OnClickOutside @trigger="$emit('toggleDropdown', false)">- <Transition- enter-active-class="ease-out duration-200"- enter-from-class="-translate-y-2"+ <Transition enter-active-class="ease-out duration-200" enter-from-class="-translate-y-2"enter-to-class="translate-y-0">- <div v-if="props.dropdownOpen" class="absolute top-0 z-50 w-56 mt-12 -translate-x-1/2 left-1/2" v-cloak>- <div v-if="userData" class="p-1 mt-1 bg-white dark:bg-neutral-800 border rounded-md shadow-md border-neutral-200/70 dark:border-neutral-700 text-neutral-700 dark:text-neutral-100">- <div class="px-2 py-1.5 text-sm font-semibold">My Account</div>- <div class="h-px my-1 -mx-1 bg-neutral-200"></div>- <section v-for="(group, groupIndex) in dropDownItemsAuth" :key="groupIndex">- <div v-if="groupIndex !== 0 && groupIndex !== dropDownItemsAuth.length" class="h-px my-1 -mx-1 bg-neutral-200"></div>- <DropdownItem v-for="(item, index) in dropDownItemsAuth[groupIndex]" :key="index" :linkData="item" :selected="$route.name === item.name" :external="item?.external">+ <div v-show="props.dropdownOpen" class="absolute top-0 z-50 max-w-screen mt-12 -right-[0.25rem]" v-cloak id="userDropdown">+ <div class="w-56 mx-auto ">+ <div v-if="userData"+ class="p-1 mt-1 bg-white dark:bg-neutral-800 border rounded-md shadow-md border-neutral-200/70 dark:border-neutral-700 text-neutral-700 dark:text-neutral-100">+ <div class="px-2 py-1.5 text-sm font-semibold">My Account</div>+ <div class="h-px my-1 -mx-1 bg-neutral-200"></div>+ <section v-for="(group, groupIndex) in dropDownItemsAuth" :key="groupIndex">+ <div v-if="groupIndex !== 0 && groupIndex !== dropDownItemsAuth.length"+ class="h-px my-1 -mx-1 bg-neutral-200"></div>+ <DropdownItem v-for="(item, index) in dropDownItemsAuth[groupIndex]" :key="index"+ :linkData="item" :selected="$route.name === item.name" :external="item?.external">+ <template #icon>+ <component :is="item.icon" width="24" height="24" viewBox="0 0 24 24" fill="none"+ stroke="currentColor" stroke-width="2" stroke-linecap="round"+ stroke-linejoin="round" class="w-4 h-4 mr-2" />+ </template>+ </DropdownItem>+ </section>+ </div>+ <div v-else+ class="p-1 mt-1 bg-white dark:bg-neutral-800 border rounded-md shadow-md border-neutral-200/70 dark:border-neutral-700 text-neutral-700 dark:text-neutral-100">+ <DropdownItem v-for="(item, index) in dropDownItems" :key="index" :linkData="item"+ :selected="$route.name === item.name" :external="item?.external"><template #icon>- <component :is="item.icon" width="24" height="24" viewBox="0 0 24 24"- fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"- stroke-linejoin="round" class="w-4 h-4 mr-2"/>+ <component :is="item.icon" width="24" height="24" viewBox="0 0 24 24" fill="none"+ stroke="currentColor" stroke-width="2" stroke-linecap="round"+ stroke-linejoin="round" class="w-4 h-4 mr-2" /></template></DropdownItem>- </section>- </div>- <div v-else class="p-1 mt-1 bg-white dark:bg-neutral-800 border rounded-md shadow-md border-neutral-200/70 dark:border-neutral-700 text-neutral-700 dark:text-neutral-100">- <DropdownItem v-for="(item, index) in dropDownItems" :key="index" :linkData="item" :selected="$route.name === item.name" :external="item?.external">- <template #icon>- <component :is="item.icon" width="24" height="24" viewBox="0 0 24 24"- fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"- stroke-linejoin="round" class="w-4 h-4 mr-2"/>- </template>- </DropdownItem>+ </div></div></div></Transition></OnClickOutside>-</template>\ No newline at end of file+</template>++<style>+.v-select.drop-up.vs--open .vs__dropdown-toggle {+ border-radius: 0 0 4px 4px;+ border-top-color: transparent;+ border-bottom-color: rgba(60, 60, 60, 0.26);+}++[data-popper-placement='top'] {+ border-radius: 4px 4px 0 0;+ border-top-style: solid;+ border-bottom-style: none;+ box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.15);+}+</style>\ No newline at end of filediff --git a/resources/js/components/user/UserDropdown.vue b/resources/js/components/user/UserDropdown.vueindex 8cac4faa..dd53b068 100644--- a/resources/js/components/user/UserDropdown.vue+++ b/resources/js/components/user/UserDropdown.vue@@ -25,7 +25,7 @@</script><template>- <div role="menu" id="user_dropdown" aria-orientation="vertical" aria-labelledby="user_options" class="absolute left-0 z-30 mt-4 w-56 origin-top-right rounded-md shadow-lg ring-1 bg-white dark:bg-neutral-800 ring-black ring-opacity-5 focus:outline-none text-gray-700 dark:text-neutral-100">+ <div role="menu" id="user-dropdown" aria-orientation="vertical" aria-labelledby="user-options" class="absolute left-0 z-30 mt-4 w-56 origin-top-right rounded-md shadow-lg ring-1 bg-white dark:bg-neutral-800 ring-black ring-opacity-5 focus:outline-none text-gray-700 dark:text-neutral-100"><div v-if="userData" class="divide-y divide-gray-300" role="menu" id="user-menu-auth"><section class="flex flex-col gap-1 p-4 justify-between"><p class="text-xs text-orange-500 dark:text-violet-400">Logged in as: </p>diff --git a/resources/views/home.blade.php.bak b/resources/views/home.blade.php.bakindex ff9f429e..5377b1f9 100644--- a/resources/views/home.blade.php.bak+++ b/resources/views/home.blade.php.bak@@ -57,17 +57,17 @@<div class="flex p-1 gap-y-3 flex-wrap justify-between"><h1 id="mp4-title-folder" class="text-2xl"></h1><span class="flex flex-wrap sm:flex-nowrap sm:max-w-sm items-center gap-2 sm:shrink-0">- <section id="user_options" class="group inline-block relative" data-dropdown-toggle="user_dropdown" aria-haspopup="true">- <button id="user_header" class="flex space-x-2 text-2xl text-slate-900 dark:text-white hover:text-orange-600 dark:hover:text-orange-600 items-center justify-center" >+ <section id="user-options" class="group inline-block relative" data-dropdown-toggle="user-dropdown" aria-haspopup="true">+ <button id="user-header" class="flex space-x-2 text-2xl text-slate-900 dark:text-white hover:text-orange-600 dark:hover:text-orange-600 items-center justify-center" >@auth- <span id="user_name">{{ Auth::user()->name }}</span>+ <span id="user-name">{{ Auth::user()->name }}</span>@else- <span id="user_name_unauth" class="w-[10vw] text-right">Guest</span>+ <span id="user-name-unauth" class="w-[10vw] text-right">Guest</span>@endauth<img src="{{ URL::asset('storage/avatars/12345.jpg')}}" class="h-7 w-7 rounded-full sm:mx-0 sm:shrink-0 ring-2 ring-orange-600/60 shadow-lg object-cover" alt="profile picture"></button>- <div role="menu" id="user_dropdown" aria-orientation="vertical" aria-labelledby="user_options" class="hidden absolute left-0 z-30 mt-4 w-56 origin-top-right divide-y divide-gray-300 rounded-md shadow-lg ring-1 bg-white ring-black ring-opacity-5 focus:outline-none text-gray-700">+ <div role="menu" id="user-dropdown" aria-orientation="vertical" aria-labelledby="user-options" class="hidden absolute left-0 z-30 mt-4 w-56 origin-top-right divide-y divide-gray-300 rounded-md shadow-lg ring-1 bg-white ring-black ring-opacity-5 focus:outline-none text-gray-700">@auth<!-- <div class="divide-y divide-gray-300" role="menu" id="user-menu-auth"> -->diff --git a/resources/views/profile/history.blade.php.bak b/resources/views/profile/history.blade.php.bakindex 9a1f35d4..04ac9a34 100644--- a/resources/views/profile/history.blade.php.bak+++ b/resources/views/profile/history.blade.php.bak@@ -15,17 +15,17 @@<div class="flex p-1 gap-y-3 flex-wrap justify-between"><h1 id="title" class="text-2xl">Full User History</h1><span class="flex flex-wrap sm:flex-nowrap sm:max-w-sm items-center gap-2 sm:shrink-0">- <section id="user_options" class="group inline-block relative" data-dropdown-toggle="user_dropdown" aria-haspopup="true">- <button id="user_header" class="flex space-x-2 text-2xl text-slate-900 dark:text-white hover:text-orange-600 dark:hover:text-orange-600 items-center justify-center" >+ <section id="user-options" class="group inline-block relative" data-dropdown-toggle="user-dropdown" aria-haspopup="true">+ <button id="user-header" class="flex space-x-2 text-2xl text-slate-900 dark:text-white hover:text-orange-600 dark:hover:text-orange-600 items-center justify-center" >@auth- <span id="user_name">{{ Auth::user()->name }}</span>+ <span id="user-name">{{ Auth::user()->name }}</span>@else- <span id="user_name_unauth" class="w-[10vw] text-right">Guest</span>+ <span id="user-name-unauth" class="w-[10vw] text-right">Guest</span>@endauth<img src="{{ URL::asset('storage/avatars/12345.jpg')}}" class="h-7 w-7 rounded-full sm:mx-0 sm:shrink-0 ring-2 ring-orange-600/60 shadow-lg object-cover" alt="profile picture"></button>- <div role="menu" id="user_dropdown" aria-orientation="vertical" aria-labelledby="user_options" class="hidden absolute left-0 z-30 mt-4 w-56 origin-top-right divide-y divide-gray-300 rounded-md shadow-lg ring-1 bg-white ring-black ring-opacity-5 focus:outline-none text-gray-700">+ <div role="menu" id="user-dropdown" aria-orientation="vertical" aria-labelledby="user-options" class="hidden absolute left-0 z-30 mt-4 w-56 origin-top-right divide-y divide-gray-300 rounded-md shadow-lg ring-1 bg-white ring-black ring-opacity-5 focus:outline-none text-gray-700">@auth<section class="flex flex-wrap gap-1 p-4 justify-between">diff --git a/resources/views/testing.blade.php.bak b/resources/views/testing.blade.php.bakindex 8dd009d5..afedc4c2 100644--- a/resources/views/testing.blade.php.bak+++ b/resources/views/testing.blade.php.bak@@ -124,8 +124,8 @@<nav id="navbar"><div class="flex flex-row-reverse p-1 "><span class="flex max-w-sm mx-auto items-center space-x-2 shrink-0">- <section id="user_options" class="dropdown group inline-block relative" aria-expanded="true" aria-haspopup="true" data-dropdown-toggle="user_dropdown">- <div class="hidden absolute top-12 origin-top-right left-7 w-56 z-10 divide-y divide-gray-200 rounded-md shadow-lg ring-1 bg-white ring-black ring-opacity-5 focus:outline-none" id="user_dropdown" aria-orientation="vertical" aria-labelledby="user_options">+ <section id="user-options" class="dropdown group inline-block relative" aria-expanded="true" aria-haspopup="true" data-dropdown-toggle="user-dropdown">+ <div class="hidden absolute top-12 origin-top-right left-7 w-56 z-10 divide-y divide-gray-200 rounded-md shadow-lg ring-1 bg-white ring-black ring-opacity-5 focus:outline-none" id="user-dropdown" aria-orientation="vertical" aria-labelledby="user-options"><div class="divide-y divide-gray-300 hidden" role="menu" id="user-menu-auth"><section class="px-4 py-3"><p class="text-sm leading-5 text-orange-500">Signed in as</p>@@ -149,13 +149,13 @@</section></div></div>- <button id="user_header" class="flex space-x-2 text-2xl text-slate-900 dark:text-white hover:text-orange-600 dark:hover:text-orange-600 items-center justify-center">+ <button id="user-header" class="flex space-x-2 text-2xl text-slate-900 dark:text-white hover:text-orange-600 dark:hover:text-orange-600 items-center justify-center">@auth- <span id="user_name">Aminushki</span>+ <span id="user-name">Aminushki</span><img src="storage/avatars/12345.jpg" class="h-7 w-7 rounded-full sm:mx-0 sm:shrink-0 ring-2 ring-orange-600/60 shadow-lg">@else- <span id="user_name_unauth" class="w-[10vw] text-right">Guest</span>+ <span id="user-name-unauth" class="w-[10vw] text-right">Guest</span><img src="storage/avatars/12345.jpg" class="h-7 w-7 rounded-full sm:mx-0 sm:shrink-0 ring-2 ring-orange-600/60 shadow-lg">@endauth