feat: BlogHeading

This commit is contained in:
unknown
2021-09-05 10:33:16 +07:00
parent c354a360eb
commit c966fcd9c6
9 changed files with 179 additions and 142 deletions

View File

@@ -0,0 +1,9 @@
@import "../../../../styles/utilities";
.headingWrapper{
@apply flex spacing-horizontal-left pb-16 justify-center;
.heading{
max-width: 121.6rem;
flex-grow: 1;
}
}

View File

@@ -0,0 +1,18 @@
import { HeadingCommon } from "src/components/common"
import s from './BlogHeading.module.scss'
interface BlogHeadingProps {
children?: React.ReactNode,
heading?: string,
}
const BlogHeading = ({heading = "BLOG"}: BlogHeadingProps) => {
return (
<section className={s.headingWrapper}>
<div className={s.heading}>
<HeadingCommon>{heading}</HeadingCommon>
</div>
</section>
)
}
export default BlogHeading