Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

3.5 KB
Raw Blame
<nav class="border-gray-200 bg-gray-900 relative z-50" id="top">
    <div class="w-full flex flex-wrap items-center justify-between mx-auto p-2">
        <div class="flex items-center">
            <img src="/img/SmythOS-text-logo.svg" class="h-6 ml-4" alt="Logo" />
            <span class="self-center text-2xl font-semibold whitespace-nowrap text-white">&nbsp;</span>

            <div class="hidden items-center justify-between w-full md:flex md:w-auto md:order-1" id="navbar-user">
                <ul
                    class="flex flex-col font-medium p-4 md:p-0 mt-4 border border-gray-100 rounded-lg bg-gray-50 md:flex-row md:space-x-8 md:mt-0 md:border-0 bg-gray-800 md:bg-gray-900 border-gray-700">

                </ul>
            </div>
        </div>



        <div class="flex items-center md:order-2">
            <button type="button"
                class="flex mr-3 text-sm bg-gray-800 rounded-full md:mr-0 focus:ring-4 focus:ring-gray-300 focus:ring-gray-600"
                id="user-menu-button" aria-expanded="false" data-dropdown-toggle="user-dropdown"
                data-dropdown-placement="bottom">
                <span class="sr-only">Open user menu</span>
                <% if (user?.picture) { %>
                    <img 
                    class="<%= user?.picture ? 'w-8 h-8' : 'w-10 h-10' %> rounded-full" 
                    src="<%= user?.picture || '/img/user_default.svg' %>" 
                    alt="user photo" 
                    onerror="this.onerror=null;this.src='/img/user_default.svg';"
                >
                <% } else { %>
                    <div class="bg-uipink rounded-full w-8 h-8 flex items-center justify-center text-white font-bold text-2xl">
                        <%= user?.name?.charAt(0).toLowerCase() %>
                    </div>
                <% } %>                 
            </button>
            <!-- Dropdown menu -->
            <div class="z-50 hidden my-4 text-base list-none divide-y divide-gray-100 rounded-lg shadow bg-gray-700 divide-gray-600"
                id="user-dropdown">
                <div class="px-4 pt-3 pb-1">
                    <span class="block text-sm text-gray-900 text-white"><%= user?.name %></span>
                    <span class="block text-sm  text-gray-500 truncate text-gray-400"><%= user?.email %></span>
                </div>
                <ul class="pb-2" aria-labelledby="user-menu-button">
                    <li>
                        <a href="/logto/sign-out"
                            class="block px-4 py-2 text-sm hover:bg-gray-100 hover:bg-gray-600 text-gray-200 hover:text-white">Sign
                            out</a>
                    </li>
                </ul>
            </div>
            <button data-collapse-toggle="navbar-user" type="button"
                class="inline-flex items-center p-2 w-10 h-10 justify-center text-sm rounded-lg md:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 text-gray-400 hover:bg-gray-700 focus:ring-gray-600"
                aria-controls="navbar-user" aria-expanded="false">
                <span class="sr-only">Open main menu</span>
                <svg class="w-5 h-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none"
                    viewBox="0 0 17 14">
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                        d="M1 1h15M1 7h15M1 13h15" />
                </svg>
            </button>
        </div>
    </div>
</nav>

<%- include('../dropdown-toggle'); -%>