4
0
forked from crowetic/commerce

Arch and components by functionality

This commit is contained in:
Belen Curcio
2020-09-29 19:22:24 -03:00
parent 7c890c7587
commit 9c3cb31b49
41 changed files with 12 additions and 12 deletions

View File

@@ -0,0 +1,3 @@
.root {
@apply flex justify-between items-center flex-row px-6 h-20 relative;
}

View 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;

View File

@@ -0,0 +1 @@
export { default } from "./Navbar";