forked from crowetic/commerce
Arch and components by functionality
This commit is contained in:
31
components/core/Navbar/Navbar.tsx
Normal file
31
components/core/Navbar/Navbar.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import cn from "classnames";
|
||||
import React, { FunctionComponent } from "react";
|
||||
import s from "./Navbar.module.css";
|
||||
import { Logo, Container } from "@components/ui";
|
||||
import { Avatar, Searchbar } from "@components/core";
|
||||
interface Props {
|
||||
className?: string;
|
||||
children?: any;
|
||||
}
|
||||
|
||||
const Navbar: FunctionComponent<Props> = ({ className }) => {
|
||||
const rootClassName = cn(s.root, className);
|
||||
return (
|
||||
<Container className={rootClassName}>
|
||||
<Logo />
|
||||
<div className="flex flex-row h-full content-center flex-1">
|
||||
<Searchbar />
|
||||
<nav className="hidden flex-row items-center px-3 lg:flex">
|
||||
<a className="pr-4">All</a>
|
||||
<a className="pr-4">Clothes</a>
|
||||
<a>Accesories</a>
|
||||
</nav>
|
||||
</div>
|
||||
<nav>
|
||||
<Avatar />
|
||||
</nav>
|
||||
</Container>
|
||||
);
|
||||
};
|
||||
|
||||
export default Navbar;
|
Reference in New Issue
Block a user