4
0
forked from crowetic/commerce
This commit is contained in:
Belen Curcio 2020-09-29 10:01:57 -03:00
parent 54cf948f56
commit ba43eae569
4 changed files with 16 additions and 6 deletions

View File

@ -16,7 +16,7 @@ const Navbar: FunctionComponent<Props> = ({ className }) => {
<Logo /> <Logo />
<div className="flex flex-row h-full content-center flex-1"> <div className="flex flex-row h-full content-center flex-1">
<Searchbar /> <Searchbar />
<nav className="flex flex-row items-center px-3"> <nav className="hidden flex-row items-center px-3 lg:flex">
<a className="pr-4">All</a> <a className="pr-4">All</a>
<a className="pr-4">Clothes</a> <a className="pr-4">Clothes</a>
<a>Accesories</a> <a>Accesories</a>

View File

@ -10,7 +10,11 @@ export default function Home() {
/> />
<Navbar /> <Navbar />
<Container className="px-4 py-5 h-screen"> <Container className="px-4 py-5 h-screen">
<Button>Click Me!</Button> <div className="grid grid-cols-1 gap-6 h-full lg:grid-cols-3 lg:grid-rows-2">
<div className="lg:row-span-2 lg:col-span-2 bg-indigo-700 h-full"></div>
<div className="lg:row-span-1 lg:col-span-1 bg-black h-full"></div>
<div className="lg:row-span-1 lg:col-span-1 bg-red-500"></div>
</div>
</Container> </Container>
<Footer></Footer> <Footer></Footer>
</> </>

View File

@ -1,5 +1,5 @@
.root { .root {
@apply py-4 bg-black text-white flex justify-center; @apply py-4 px-6 bg-black text-white flex flex-row justify-center items-center;
} }
.title { .title {
@ -7,7 +7,13 @@
} }
.separator { .separator {
@apply mx-2 font-medium text-xs leading-6; @apply mx-3 bg-white;
width: 1px;
height: 20px;
}
.separator:before {
content: "";
} }
.description { .description {

View File

@ -17,7 +17,7 @@ const Featurebar: FunctionComponent<Props> = ({
return ( return (
<div className={rootClassName}> <div className={rootClassName}>
<span className={s.title}>{title}</span> <span className={s.title}>{title}</span>
<span className={s.separator}>|</span> <span className={s.separator} />
<span className={s.description}>{description}</span> <span className={s.description}>{description}</span>
</div> </div>
); );