Make header logo into link to landing page
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import styles from '../../styles/Logo.module.scss';
|
||||
import Link from 'next/link';
|
||||
|
||||
const Logo = () => {
|
||||
const [isDesktop, setIsDesktop] = useState(true);
|
||||
@@ -9,6 +10,8 @@ const Logo = () => {
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Link href="/">
|
||||
<a>
|
||||
<section className={styles.logoContainer}>
|
||||
<div className={styles.logo} id='logo-start'>
|
||||
<picture>
|
||||
@@ -28,6 +31,8 @@ const Logo = () => {
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</a>
|
||||
</Link>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user