1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +01:00

32 lines
837 B
TypeScript

import React from 'react'
import { Link } from 'gatsby'
import Container from '../atoms/Container'
import Search from '../Search'
import Menu from '../molecules/Menu'
import ThemeSwitch from '../molecules/ThemeSwitch'
import { ReactComponent as Logo } from '../../images/logo.svg'
import styles from './Header.module.scss'
export default function Header() {
return (
<header role="banner" className={styles.header}>
<Container>
<div className={styles.headerContent}>
<h1 className={styles.title}>
<Link to="/">
<Logo /> kremalicious
</Link>
</h1>
<nav role="navigation" className={styles.nav}>
<ThemeSwitch />
<Search lng="en" />
<Menu />
</nav>
</div>
</Container>
</header>
)
}