mirror of
https://github.com/vercel/commerce.git
synced 2025-07-31 05:51:23 +00:00
Changes
This commit is contained in:
21
components/core/Featurebar/Featurebar.module.css
Normal file
21
components/core/Featurebar/Featurebar.module.css
Normal file
@@ -0,0 +1,21 @@
|
||||
.root {
|
||||
@apply py-4 px-6 bg-black text-white flex flex-row justify-center items-center;
|
||||
}
|
||||
|
||||
.title {
|
||||
@apply text-white font-medium;
|
||||
}
|
||||
|
||||
.separator {
|
||||
@apply mx-3 bg-white;
|
||||
width: 1px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.separator:before {
|
||||
content: "";
|
||||
}
|
||||
|
||||
.description {
|
||||
@apply text-white font-medium;
|
||||
}
|
26
components/core/Featurebar/Featurebar.tsx
Normal file
26
components/core/Featurebar/Featurebar.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import cn from "classnames";
|
||||
import { FunctionComponent } from "react";
|
||||
import s from "./Featurebar.module.css";
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
title: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
const Featurebar: FunctionComponent<Props> = ({
|
||||
title,
|
||||
description,
|
||||
className,
|
||||
}) => {
|
||||
const rootClassName = cn(s.root, className);
|
||||
return (
|
||||
<div className={rootClassName}>
|
||||
<span className={s.title}>{title}</span>
|
||||
<span className={s.separator} />
|
||||
<span className={s.description}>{description}</span>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Featurebar;
|
1
components/core/Featurebar/index.ts
Normal file
1
components/core/Featurebar/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from "./Featurebar";
|
Reference in New Issue
Block a user