Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cambios en la navbar #257

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'