Skip to content

Commit

Permalink
cambios en la navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Orliluq committed Jan 21, 2024
1 parent 07b2435 commit a9229fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/components/navBar/MenuMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ const MenuMobile: FC<MenuMobileProps> = ({ updateState }) => {
}}
key={item.url}
href={item.url}
className="block p-4 transform hover:scale-125"
className="block p-4 transform hover:scale-125 hover:text-primary-lm hover:font-bold"
target={item.url === 'https://actualizatucarro.blogspot.com' ? '_blank' : '_self'}
>
{item.label}
</Link>
</>
))}
<button
className="block p-4 transform hover:scale-125"
className="block p-4 transform hover:scale-125 hover:text-primary-lm hover:font-bold"
onClick={() => updateState(true)}
>
Contacto
Expand Down
14 changes: 7 additions & 7 deletions src/components/navBar/navBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const NavBar: FC<NavBarProps> = ({}) => {
<div>
{/* imagenes tablet y desktop */}
<div className="hidden md:flex justify-center items-center">
<Link href="/">
<Link href="/products">
<Image
src={Images.logos.LogoRedColor}
width={200}
Expand All @@ -89,7 +89,7 @@ const NavBar: FC<NavBarProps> = ({}) => {
</div>
{/* imagen mobile */}
<div className="md:hidden flex justify-center items-center">
<Link href="/">
<Link href="/products">
<Image
src={Images.logos.ActLogo}
width={55}
Expand All @@ -109,7 +109,7 @@ const NavBar: FC<NavBarProps> = ({}) => {
id="searchBar"
type="text"
placeholder="Buscar productos"
className="w-full py-1.5 px-3 outline-none rounded-md text-secondary-dm bg-white dark:bg-primary-dm"
className="w-full md:w-[400px] py-1.5 px-3 outline-none ml-5 mr-5 md:ml-10 md:mr-10 rounded-md text-secondary-dm bg-white dark:bg-primary-dm"
onChange={(event) => {
updateBody('name', event.target.value);
products.length && updateBody('page', 1);
Expand Down Expand Up @@ -141,17 +141,17 @@ const NavBar: FC<NavBarProps> = ({}) => {
</>
) : (
<>
<button onClick={() => setLoginForm(true)}>
{/* <button onClick={() => setLoginForm(true)}>
<p>Iniciar Sesión</p>
</button>
</button> */}
<div className="h-[35px] w-[35px]">
<Icon icon="Login" />
</div>
</>
)}

<div className="h-[35px] w-[35px]">
<Link href={'#'}>
<Link href={'/carShoping'}>
<Icon icon="CarShoping" />
</Link>
</div>
Expand All @@ -166,7 +166,7 @@ const NavBar: FC<NavBarProps> = ({}) => {
id="searchBar"
type="text"
placeholder="Buscar productos"
className="w-full py-1.5 px-3 outline-none rounded-md text-secondary-dm dark:bg-primary-dm"
className="w-full md:w-[400px] py-1.5 px-3 outline-none ml-5 mr-5 md:ml-10 md:mr-10 rounded-md text-secondary-dm bg-white dark:bg-primary-dm"
onChange={(event) => {
updateBody('name', event.target.value);
products.length && updateBody('page', 1);
Expand Down
2 changes: 1 addition & 1 deletion src/types/icons.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export type IconTypes = | 'CarShoping' | 'CardCredit' | 'Cash' | 'Close' | 'Cookie' | 'Facebook' | 'HamburguerClose' | 'HamburguerOpen' | 'Heart' | 'Instagram' | 'Login' | 'MapLocation' | 'Moon' | 'SearchIcon' | 'Shield' | 'Sun' | 'Truck' | 'Whatsapp' | 'icon' | 'quotationMarks' | 'warranty'
export type IconTypes = | 'CardCredit' | 'CarShoping' | 'Cash' | 'Close' | 'Cookie' | 'Eye' | 'EyeBlocked' | 'Facebook' | 'HamburguerClose' | 'HamburguerOpen' | 'Heart' | 'icon' | 'Instagram' | 'Login' | 'MapLocation' | 'Moon' | 'quotationMarks' | 'SearchIcon' | 'Shield' | 'Sun' | 'Truck' | 'warranty' | 'Whatsapp'

0 comments on commit a9229fc

Please sign in to comment.