mirror of
https://github.com/mudler/LocalAI.git
synced 2026-07-12 01:10:02 -04:00
chore(ui): restyle color palette closer to logo Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
107 lines
8.0 KiB
HTML
107 lines
8.0 KiB
HTML
<nav class="bg-[#101827] shadow-2xl border-b border-[#1E293B]">
|
|
<div class="container mx-auto px-4 py-3">
|
|
<div class="flex items-center justify-between">
|
|
<div class="flex items-center">
|
|
<!-- Logo Image -->
|
|
<a href="./" class="flex items-center group">
|
|
<img src="static/logo_horizontal.png"
|
|
alt="LocalAI Logo"
|
|
class="h-14 mr-3 brightness-110 transition-all duration-300 group-hover:brightness-125 group-hover:drop-shadow-[0_0_8px_rgba(56,189,248,0.5)]">
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Menu button for small screens -->
|
|
<div class="lg:hidden">
|
|
<button id="menu-toggle" class="text-[#94A3B8] hover:text-[#38BDF8] focus:outline-none p-2 rounded-lg transition duration-300 ease-in-out hover:bg-[#1E293B]">
|
|
<i class="fas fa-bars fa-lg"></i>
|
|
</button>
|
|
</div>
|
|
|
|
<!-- Navigation links -->
|
|
<div class="hidden lg:flex lg:items-center lg:justify-end lg:space-x-1">
|
|
<a href="./" class="text-[#94A3B8] hover:text-[#E5E7EB] px-3 py-2 rounded-lg transition duration-300 ease-in-out hover:bg-[#1E293B] hover:shadow-[0_0_12px_rgba(56,189,248,0.15)] flex items-center group">
|
|
<i class="fas fa-home text-[#38BDF8] mr-2 group-hover:scale-110 transition-transform"></i>Home
|
|
</a>
|
|
<a href="browse/" class="text-[#94A3B8] hover:text-[#E5E7EB] px-3 py-2 rounded-lg transition duration-300 ease-in-out hover:bg-[#1E293B] hover:shadow-[0_0_12px_rgba(56,189,248,0.15)] flex items-center group">
|
|
<i class="fas fa-brain text-[#38BDF8] mr-2 group-hover:scale-110 transition-transform"></i>Models
|
|
</a>
|
|
<a href="browse/backends" class="text-[#94A3B8] hover:text-[#E5E7EB] px-3 py-2 rounded-lg transition duration-300 ease-in-out hover:bg-[#1E293B] hover:shadow-[0_0_12px_rgba(56,189,248,0.15)] flex items-center group">
|
|
<i class="fas fa-server text-[#38BDF8] mr-2 group-hover:scale-110 transition-transform"></i>Backends
|
|
</a>
|
|
<a href="chat/" class="text-[#94A3B8] hover:text-[#E5E7EB] px-3 py-2 rounded-lg transition duration-300 ease-in-out hover:bg-[#1E293B] hover:shadow-[0_0_12px_rgba(56,189,248,0.15)] flex items-center group">
|
|
<i class="fa-solid fa-comments text-[#38BDF8] mr-2 group-hover:scale-110 transition-transform"></i>Chat
|
|
</a>
|
|
<a href="text2image/" class="text-[#94A3B8] hover:text-[#E5E7EB] px-3 py-2 rounded-lg transition duration-300 ease-in-out hover:bg-[#1E293B] hover:shadow-[0_0_12px_rgba(56,189,248,0.15)] flex items-center group">
|
|
<i class="fas fa-image text-[#38BDF8] mr-2 group-hover:scale-110 transition-transform"></i>Generate images
|
|
</a>
|
|
<a href="tts/" class="text-[#94A3B8] hover:text-[#E5E7EB] px-3 py-2 rounded-lg transition duration-300 ease-in-out hover:bg-[#1E293B] hover:shadow-[0_0_12px_rgba(56,189,248,0.15)] flex items-center group">
|
|
<i class="fa-solid fa-music text-[#38BDF8] mr-2 group-hover:scale-110 transition-transform"></i>TTS
|
|
</a>
|
|
<a href="talk/" class="text-[#94A3B8] hover:text-[#E5E7EB] px-3 py-2 rounded-lg transition duration-300 ease-in-out hover:bg-[#1E293B] hover:shadow-[0_0_12px_rgba(56,189,248,0.15)] flex items-center group">
|
|
<i class="fa-solid fa-phone text-[#38BDF8] mr-2 group-hover:scale-110 transition-transform"></i>Talk
|
|
</a>
|
|
<a href="p2p/" class="text-[#94A3B8] hover:text-[#E5E7EB] px-3 py-2 rounded-lg transition duration-300 ease-in-out hover:bg-[#1E293B] hover:shadow-[0_0_12px_rgba(56,189,248,0.15)] flex items-center group">
|
|
<i class="fa-solid fa-circle-nodes text-[#38BDF8] mr-2 group-hover:scale-110 transition-transform"></i>Swarm
|
|
</a>
|
|
<a href="swagger/" class="text-[#94A3B8] hover:text-[#E5E7EB] px-3 py-2 rounded-lg transition duration-300 ease-in-out hover:bg-[#1E293B] hover:shadow-[0_0_12px_rgba(56,189,248,0.15)] flex items-center group">
|
|
<i class="fas fa-code text-[#38BDF8] mr-2 group-hover:scale-110 transition-transform"></i>API
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Collapsible menu for small screens -->
|
|
<div class="hidden lg:hidden" id="mobile-menu">
|
|
<div class="pt-3 pb-2 space-y-1 border-t border-[#1E293B] mt-2">
|
|
<a href="./" class="block text-[#94A3B8] hover:text-[#E5E7EB] hover:bg-[#1E293B] px-3 py-2 rounded-lg transition duration-300 ease-in-out flex items-center">
|
|
<i class="fas fa-home text-[#38BDF8] mr-3 w-5 text-center"></i>Home
|
|
</a>
|
|
<a href="browse/" class="block text-[#94A3B8] hover:text-[#E5E7EB] hover:bg-[#1E293B] px-3 py-2 rounded-lg transition duration-300 ease-in-out flex items-center">
|
|
<i class="fas fa-brain text-[#38BDF8] mr-3 w-5 text-center"></i>Models
|
|
</a>
|
|
<a href="browse/backends" class="block text-[#94A3B8] hover:text-[#E5E7EB] hover:bg-[#1E293B] px-3 py-2 rounded-lg transition duration-300 ease-in-out flex items-center">
|
|
<i class="fas fa-server text-[#38BDF8] mr-3 w-5 text-center"></i>Backends
|
|
</a>
|
|
<a href="chat/" class="block text-[#94A3B8] hover:text-[#E5E7EB] hover:bg-[#1E293B] px-3 py-2 rounded-lg transition duration-300 ease-in-out flex items-center">
|
|
<i class="fa-solid fa-comments text-[#38BDF8] mr-3 w-5 text-center"></i>Chat
|
|
</a>
|
|
<a href="text2image/" class="block text-[#94A3B8] hover:text-[#E5E7EB] hover:bg-[#1E293B] px-3 py-2 rounded-lg transition duration-300 ease-in-out flex items-center">
|
|
<i class="fas fa-image text-[#38BDF8] mr-3 w-5 text-center"></i>Generate images
|
|
</a>
|
|
<a href="tts/" class="block text-[#94A3B8] hover:text-[#E5E7EB] hover:bg-[#1E293B] px-3 py-2 rounded-lg transition duration-300 ease-in-out flex items-center">
|
|
<i class="fa-solid fa-music text-[#38BDF8] mr-3 w-5 text-center"></i>TTS
|
|
</a>
|
|
<a href="talk/" class="block text-[#94A3B8] hover:text-[#E5E7EB] hover:bg-[#1E293B] px-3 py-2 rounded-lg transition duration-300 ease-in-out flex items-center">
|
|
<i class="fa-solid fa-phone text-[#38BDF8] mr-3 w-5 text-center"></i>Talk
|
|
</a>
|
|
<a href="p2p/" class="block text-[#94A3B8] hover:text-[#E5E7EB] hover:bg-[#1E293B] px-3 py-2 rounded-lg transition duration-300 ease-in-out flex items-center">
|
|
<i class="fa-solid fa-circle-nodes text-[#38BDF8] mr-3 w-5 text-center"></i>Swarm
|
|
</a>
|
|
<a href="swagger/" class="block text-[#94A3B8] hover:text-[#E5E7EB] hover:bg-[#1E293B] px-3 py-2 rounded-lg transition duration-300 ease-in-out flex items-center">
|
|
<i class="fas fa-code text-[#38BDF8] mr-3 w-5 text-center"></i>API
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<script>
|
|
// JavaScript to toggle the mobile menu with animation
|
|
document.getElementById('menu-toggle').addEventListener('click', function () {
|
|
var mobileMenu = document.getElementById('mobile-menu');
|
|
if (mobileMenu.classList.contains('hidden')) {
|
|
mobileMenu.classList.remove('hidden');
|
|
// Use setTimeout to create a mild animation effect
|
|
setTimeout(function() {
|
|
mobileMenu.classList.add('opacity-100');
|
|
mobileMenu.classList.remove('opacity-0');
|
|
}, 10);
|
|
} else {
|
|
mobileMenu.classList.add('opacity-0');
|
|
mobileMenu.classList.remove('opacity-100');
|
|
// Wait for transition to finish before hiding
|
|
setTimeout(function() {
|
|
mobileMenu.classList.add('hidden');
|
|
}, 300);
|
|
}
|
|
});
|
|
</script> |