Add: backend dir and moved frontend to frontend dir

This commit is contained in:
Jose
2026-02-17 01:43:08 +01:00
parent 95dd13595e
commit dcc1d55db6
82 changed files with 197 additions and 419 deletions

View File

@@ -0,0 +1,26 @@
import { useWindowWidth } from '@/hooks/useWindowWidth';
import NavBarDesktop from '@/components/NavBar/desktop/NavBarDesktop';
import NavBarMobile from '@/components/NavBar/mobile/NavBarMobile';
import { useTranslation } from 'react-i18next';
const NavBar = () => {
const { t } = useTranslation();
const width = useWindowWidth();
const navItems = [
{ label: t("nav.inicio.label"), href: `/#${t("nav.inicio.href")}` },
{ label: t("nav.muestras.label"), href: `/#${t("nav.muestras.href")}` },
{ label: t("nav.pedidos.label"), href: `/#${t("nav.pedidos.href")}` },
{ label: t("nav.sobre.label"), href: `/#${t("nav.sobre.href")}` },
{ label: t("nav.login.label"), href: `/${t("nav.login.href")}` }
];
return width > 991.98 ? (
<nav className="nav-container p-0">
<NavBarDesktop navItems={navItems} />
</nav>
) : (
<NavBarMobile navItems={navItems} />
);
};
export default NavBar;