-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preparing links to updgrade Next to 13
- Loading branch information
1 parent
7e99616
commit 400563c
Showing
6 changed files
with
57 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import { useState, useEffect, useRef } from 'react'; | ||
import Link from 'next/link'; | ||
import Image from 'next/image'; | ||
import { useRouter } from 'next/router'; | ||
import Container from '@/components/containers/Container'; | ||
|
@@ -57,48 +56,44 @@ export default function Nav() { | |
<div ref={containerRef}> | ||
<nav className={styles.nav}> | ||
<div className={styles.nav__logo}> | ||
<Link href='/' passHref> | ||
<a> | ||
<Image | ||
src='/images/svg/logo.svg' | ||
height={115} | ||
width={180} | ||
alt='Logo' | ||
title='Go to the Homepage' | ||
/> | ||
</a> | ||
</Link> | ||
<a href='/' passhref='true'> | ||
<Image | ||
src='/images/svg/logo.svg' | ||
height={115} | ||
width={180} | ||
alt='Logo' | ||
title='Go to the Homepage' | ||
/> | ||
</a> | ||
</div> | ||
<ul | ||
className={`${styles.nav__links} ${active ? styles.active : ''}`} | ||
> | ||
{linksNav.map(({ text, href, id }) => { | ||
return ( | ||
<li className={styles.nav__item} key={id}> | ||
<Link href={href}> | ||
<a | ||
className={`${styles.nav__link} ${ | ||
router.pathname == href ? `${styles.current}` : '' | ||
}`} | ||
title={text} | ||
> | ||
{text} | ||
</a> | ||
</Link> | ||
<a | ||
href={href} | ||
className={`${styles.nav__link} ${ | ||
router.pathname == href ? `${styles.current}` : '' | ||
}`} | ||
title={text} | ||
> | ||
{text} | ||
</a> | ||
</li> | ||
); | ||
})} | ||
<li className={styles.nav__item}> | ||
<Link href='mailto:[email protected]?subject=Project collaborator application'> | ||
<a | ||
className={`${styles.nav__button} ${ | ||
active ? styles.active : '' | ||
}`} | ||
title='Join us' | ||
> | ||
Join us | ||
</a> | ||
</Link> | ||
<a | ||
href='mailto:[email protected]?subject=Project collaborator application' | ||
className={`${styles.nav__button} ${ | ||
active ? styles.active : '' | ||
}`} | ||
title='Join us' | ||
> | ||
Join us | ||
</a> | ||
</li> | ||
</ul> | ||
<button | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters