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