Make header logo into link to landing page

This commit is contained in:
2024-05-16 22:55:42 +03:00
parent 50fbc95ba9
commit a43b32a028

View File

@@ -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>
); );
}; };