mirror of
https://github.com/vercel/commerce.git
synced 2025-07-30 13:41:22 +00:00
Arch and components by functionality
This commit is contained in:
3
components/core/Layout/Layout.module.css
Normal file
3
components/core/Layout/Layout.module.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.root {
|
||||
@apply h-full border-indigo-900;
|
||||
}
|
26
components/core/Layout/Layout.tsx
Normal file
26
components/core/Layout/Layout.tsx
Normal 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;
|
1
components/core/Layout/index.ts
Normal file
1
components/core/Layout/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from "./Layout";
|
Reference in New Issue
Block a user