THeader 추가
This commit is contained in:
18
com.twin.app.shoptime/src/components/THeader/THeader.jsx
Normal file
18
com.twin.app.shoptime/src/components/THeader/THeader.jsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from "react";
|
||||
|
||||
import css from "./THeader.module.less";
|
||||
import classNames from "classnames";
|
||||
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
|
||||
|
||||
const Container = SpotlightContainerDecorator(
|
||||
{ enterTo: "last-focused" },
|
||||
"div"
|
||||
);
|
||||
|
||||
export default function THeader({ title, className }) {
|
||||
return (
|
||||
<Container className={classNames(css.tHeader, className)}>
|
||||
<div className={css.title}>{title}</div>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
@import "../../style/CommonStyle.module.less";
|
||||
@import "../../style/utils.module.less";
|
||||
|
||||
.tHeader {
|
||||
width: 100%;
|
||||
height: 90px;
|
||||
color: #222;
|
||||
font-family: @baseFontBold;
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
|
||||
.title {
|
||||
font-size: 42px;
|
||||
margin-left: 61px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"main": "THeader.jsx",
|
||||
"styles": [
|
||||
"THeader.module.less"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user