mirror of
https://github.com/Ai-hack-MAGNUM-OPUS/frontend.git
synced 2024-11-22 01:26:46 +03:00
34 lines
1.4 KiB
TypeScript
34 lines
1.4 KiB
TypeScript
import { useRouter } from "next/router";
|
||
import React, { useState } from "react";
|
||
import styles from "./header.module.css"
|
||
import 'antd/dist/antd.css';
|
||
|
||
export const Header:React.FC = () =>{
|
||
let router = useRouter()
|
||
const [open, setOpen] = useState(true)
|
||
return(
|
||
<div className={styles.header}>
|
||
<div className={styles.logo} onClick={()=>router.push("/")}>
|
||
<img src="/images/logo.svg"></img>
|
||
</div>
|
||
<img src="/images/logo.svg" className={styles.burger} onClick={()=>setOpen(!open)}></img>
|
||
<div className={styles.itemWrapper} style={{display: open? "":"none"}}>
|
||
<div className={styles.item} onClick={()=>router.push("/")}>
|
||
Проверить документы
|
||
</div>
|
||
<div className={styles.item} onClick={()=>router.push("/guide")}>
|
||
Инструкция
|
||
</div>
|
||
<div className={styles.item} onClick={()=>router.push("/history")}>
|
||
История файлов
|
||
</div>
|
||
<div className={styles.item} onClick={()=>router.push("/about")}>
|
||
О нас
|
||
</div>
|
||
<div className={styles.item} onClick={()=>router.push("/download")}>
|
||
Скачать <img src="/images/downloadSmall.svg"></img>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
);
|
||
} |