Skip to content

Commit

Permalink
fix mobileNav
Browse files Browse the repository at this point in the history
  • Loading branch information
seelentov committed Mar 12, 2024
1 parent e1881f6 commit bc99035
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
11 changes: 7 additions & 4 deletions src/components/Header/MobileNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type NavItems = {



export const MobileNav = ({serviceLinks}:{serviceLinks: MenuLink[]}) => {
export const MobileNav = ({ serviceLinks }: { serviceLinks: MenuLink[] }) => {

const defaultNavItems = {
title: 'Pixel Perfect',
Expand Down Expand Up @@ -92,9 +92,6 @@ export const MobileNav = ({serviceLinks}:{serviceLinks: MenuLink[]}) => {
<span>{navItems && navItems.title}</span>
</div>
<ul className={styles.navMobileList}>
<li className={styles.navMobileListItem} onClick={() => closeAll()}>
<a href={'/'}>Главная</a>
</li>
{navItems && navItems.links.map(({ id, href: mainHref, name }) =>
<li key={id} className={styles.navMobileListItem} onClick={() => closeAll()}>
<Link href={mainHref}>{name}</Link>
Expand Down Expand Up @@ -128,6 +125,12 @@ export const MobileNav = ({serviceLinks}:{serviceLinks: MenuLink[]}) => {
<span>{defaultNavItems.title}</span>
</div>
<ul className={styles.navMobileList}>

<li className={styles.navMobileListItem} onClick={() => changeOpenState('close', setOpen)}>
<a href={'/'}>Главная</a>
</li>


{defaultNavItems.links.map(({ id, href: mainHref, name, sublist }) => {
if (!sublist) {
return <li key={id} className={styles.navMobileListItem} onClick={() => changeOpenState('close', setOpen)}>
Expand Down
10 changes: 5 additions & 5 deletions todolist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
Layout:
- header ++++++++
- burger ++++++++
- footer
- footer ++++++++

Верстка:
Структура главной:

- Баннер (уник) ++++++++
- Преимущества
- Преимущества ++++++++
- Каталог услуг (уник) ++++++++
- Примеры работ
- Этапы заказа (уник) ++++++++
Expand Down Expand Up @@ -71,11 +71,11 @@ Layout:
Тестинг:
- Семантика (мета, теги)
- Кроссбраузерность
- Производительность
- Производительность ++++++++

SEO:
- Мета
- openGraph
- Мета ++++++++
- openGraph ++++++++
- schema.org --------

Публикация на хост:
Expand Down

0 comments on commit bc99035

Please sign in to comment.