[components] SectionTitle 추가

Detail Notes :

1. HomePaenl, FeaturedPanel, CategoryPanel 등에 사용되는 SectionTitle 추가
This commit is contained in:
younghoon100.park
2024-01-26 13:50:25 +09:00
parent ba9e8d6708
commit 99de2dea2e
3 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import React, { memo } from "react";
import classNames from "classnames";
import css from "./SectionTitle.module.less";
export default memo(function SectionTitle({ className, title, ...rest }) {
return (
<h2
className={classNames(className ? className : css.sectionTitle)}
{...rest}
>
<span />
{title}
</h2>
);
});

View File

@@ -0,0 +1,15 @@
@import "../../style/CommonStyle.module.less";
@import "../../style/utils.module.less";
.sectionTitle {
.flex(@justifyCenter: flex-start);
gap: 12px;
.font(@fontFamily: @baseFontBold, @fontSize: 42px);
color: @COLOR_GRAY08;
span {
display: inline-block;
.size(@w: 6px, @h: 36px);
background-color: @PRIMARY_COLOR_RED;
}
}

View File

@@ -0,0 +1,6 @@
{
"main": "SectionTitle.jsx",
"styles": [
"SectionTitle.module.less"
]
}