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 h-full border-indigo-900;
}

View File

@@ -0,0 +1,26 @@
import cn from "classnames";
import React, { FunctionComponent } from "react";
import s from "./Layout.module.css";
import { Navbar, Featurebar } from "@components/core";
import { Container } from "@components/ui";
interface Props {
className?: string;
children?: any;
}
const Layout: FunctionComponent<Props> = ({ className, children }) => {
const rootClassName = cn(s.root, className);
return (
<Container className={rootClassName}>
<Featurebar
title="Free Standard Shipping on orders over $99.99"
description="Due to COVID-19, some orders may experience processing and delivery delays."
/>
<Navbar />
<main className="h-screen">{children}</main>
</Container>
);
};
export default Layout;

View File

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