From 9a5b4259808d719a531eca18dff993eeeff71bc1 Mon Sep 17 00:00:00 2001
From: HombreLaser <sebastian-440@live.com>
Date: Sun, 23 Apr 2023 12:19:07 -0600
Subject: Simplificada interfaz

---
 src/components/navbar.tsx | 111 ++++++++++++++++------------------------------
 1 file changed, 38 insertions(+), 73 deletions(-)

(limited to 'src/components/navbar.tsx')

diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx
index b7c04ee..2fd650d 100644
--- a/src/components/navbar.tsx
+++ b/src/components/navbar.tsx
@@ -5,85 +5,50 @@ import "./stylesheets/shared.css";
 export default function Navbar() {
   return(
     <>
-      <nav className="navbar items-center justify-between bg-neutral-100 py-2  shadow-lg hover:text-neutral-700 focus:text-neutral-700 dark:bg-neutral-600 lg:py-4">
-        <div className="flex w-full flex-wrap items-center justify-between px-3">
-          <div className="!visible hidden flex-grow basis-[100%] items-center lg:!flex lg:basis-auto" id="navbarSupportedContent" data-te-collapse-item>
-            <img className="image" src="https://www.grupoarma.com.mx/imagen/logo.png" alt="logo arma"/>
-            <ul className="list-style-none mr-auto flex flex-col pl-0 lg:flex-row" data-te-navbar-nav-ref>
-              <li className="mb-4 lg:mb-0 lg:pr-2" data-te-nav-item-ref>
-                <a
-                  className="navbar-elements-text hover:text-neutral-700 focus:text-neutral-700 disabled:text-black/30 dark:text-neutral-200 dark:hover:text-neutral-300 dark:focus:text-neutral-300 lg:px-2 [&.active]:text-black/90 dark:[&.active]:text-zinc-400"
-                  href="/products"
-                  data-te-nav-link-ref>
-                    Productos
-                </a>
-              </li>
-              <li className="mb-4 lg:mb-0 lg:pr-2" data-te-nav-item-ref>
-                <a
-                  className="navbar-elements-text hover:text-neutral-700 focus:text-neutral-700 disabled:text-black/30 dark:text-neutral-200 dark:hover:text-neutral-300 dark:focus:text-neutral-300 lg:px-2 [&.active]:text-black/90 dark:[&.active]:text-neutral-400"
-                  href="#"
-                  data-te-nav-link-ref
-                  >
-                  Proveedores
-                </a>
-              </li>
-            </ul>
-          </div>
+      <header>
+          <nav className="navbar inset-x-0 top-0 bg-white shadow-2 items-center justify-between bg-neutral-100 py-2 shadow-md shadow-black/5 dark:bg-neutral-600 dark:shadow-black/10 lg:flex-wrap lg:justify-start lg:py-4"
+               data-te-navbar-ref>
+            <div className="flex w-full flex-wrap items-center justify-between px-3">
+              {/* Lado izquierdo */}
+              <div className="flex-grow basis-[100%] items-center lg:!flex lg:basis-auto">
+                <img className="logo" src="https://www.grupoarma.com.mx/imagen/logo.png"/>
+
+                <ul className="list-style-none mr-auto flex flex-col pl-0 lg:flex-row">
+                  <li className="mb-4 lg:mb-0 lg:pr-2">
+                    <a className="navbar-elements-text hover:text-neutral-700 focus:text-neutral-700 disabled:text-black/30 dark:text-neutral-200 dark:hover:text-neutral-300 dark:focus:text-neutral-300 lg:px-2 [&.active]:text-black/90 dark:[&.active]:text-zinc-400"
+                       href="/products">
+                      Productos
+                    </a>
+                  </li>
+
+                  <li className="mb-4 lg:mb-0 lg:pr-2">
+                    <a className="navbar-elements-text hover:text-neutral-700 focus:text-neutral-700 disabled:text-black/30 dark:text-neutral-200 dark:hover:text-neutral-300 dark:focus:text-neutral-300 lg:px-2 [&.active]:text-black/90 dark:[&.active]:text-zinc-400"
+                       href="/products">
+                      Proveedores
+                    </a>
+                  </li>
+                </ul>
+              </div>
 
-          <div className="relative flex items-center">
-            <a
-              className="mr-4 text-neutral-500 hover:text-neutral-700 focus:text-neutral-700 disabled:text-black/30 dark:text-neutral-200 dark:hover:text-neutral-300 dark:focus:text-neutral-300 [&.active]:text-black/90 dark:[&.active]:text-neutral-400"
-              href="#">
-              <span className="[&>svg]:w-5">
-                <CartFill color="#394490" size={32}/>
-              </span>
-            </a>
+              { /* Lado derecho */}
+              <div className="relative flex items-center">
+                <a className="mr-4 text-neutral-500 hover:text-neutral-700 focus:text-neutral-700 disabled:text-black/30 dark:text-neutral-200 dark:hover:text-neutral-300 dark:focus:text-neutral-300 [&.active]:text-black/90 dark:[&.active]:text-neutral-400"
+                   href="#">
+                  <span className="[&>svg]:w-5">
+                    <CartFill color="#394490" size={32}/>
+                  </span>
+                </a>
 
-            <div className="relative" data-te-dropdown-ref>
-              <a
-                className="hidden-arrow flex items-center whitespace-nowrap transition duration-150 ease-in-out motion-reduce:transition-none"
-                href="#"
-                id="dropdownMenuButton2"
-                role="button"
-                data-te-dropdown-toggle-ref
-                aria-expanded="false">
+                <a className="mr-4 text-neutral-500 hover:text-neutral-700 focus:text-neutral-700 disabled:text-black/30 dark:text-neutral-200 dark:hover:text-neutral-300 dark:focus:text-neutral-300 [&.active]:text-black/90 dark:[&.active]:text-neutral-400"
+                   href="#">
                   <span className="[&>svg]:w-5">
                     <PersonCircle color="#394490" size={32}/>
                   </span>
-              </a>
-              <ul
-                className="absolute left-auto right-0 z-[1000] float-left m-0 mt-1 hidden min-w-max list-none overflow-hidden rounded-lg border-none bg-white bg-clip-padding text-left text-base shadow-lg dark:bg-neutral-700 [&[data-te-dropdown-show]]:block"
-                aria-labelledby="dropdownMenuButton2"
-                data-te-dropdown-menu-ref>
-                <li>
-                  <a
-                    className="block w-full whitespace-nowrap bg-transparent px-4 py-2 text-sm font-normal text-neutral-700 hover:bg-neutral-100 active:text-neutral-800 active:no-underline disabled:pointer-events-none disabled:bg-transparent disabled:text-neutral-400 dark:text-neutral-200 dark:hover:bg-white/30"
-                    href="#"
-                    data-te-dropdown-item-ref
-                    >Action</a
-                  >
-                </li>
-                <li>
-                  <a
-                    className="block w-full whitespace-nowrap bg-transparent px-4 py-2 text-sm font-normal text-neutral-700 hover:bg-neutral-100 active:text-neutral-800 active:no-underline disabled:pointer-events-none disabled:bg-transparent disabled:text-neutral-400 dark:text-neutral-200 dark:hover:bg-white/30"
-                    href="#"
-                    data-te-dropdown-item-ref
-                    >Another action</a
-                  >
-                </li>
-                <li>
-                  <a
-                    className="block w-full whitespace-nowrap bg-transparent px-4 py-2 text-sm font-normal text-neutral-700 hover:bg-neutral-100 active:text-neutral-800 active:no-underline disabled:pointer-events-none disabled:bg-transparent disabled:text-neutral-400 dark:text-neutral-200 dark:hover:bg-white/30"
-                    href="#"
-                    data-te-dropdown-item-ref
-                    >Something else here</a
-                  >
-                </li>
-              </ul>
+                </a>
+              </div>
             </div>
-          </div>
-        </div>
-      </nav>
+          </nav>
+      </header>
     </>
   );
 }
\ No newline at end of file
-- 
cgit v1.2.3

