|
|
@@ -12,7 +12,21 @@ class ThemeColorBox extends React.Component {
|
|
|
|
|
|
render() {
|
|
|
return (
|
|
|
- <p>hoge</p>
|
|
|
+ <div id={`theme-option-${this.props.name}`} className="theme-option-container d-flex flex-column align-items-center">
|
|
|
+ <a
|
|
|
+ className={`m-0 ${this.props.name} theme-button`}
|
|
|
+ id={this.props.name}
|
|
|
+ >
|
|
|
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
|
|
|
+ <g>
|
|
|
+ <path d="M -1 -1 L65 -1 L65 65 L-1 65 L-1 -1 Z" fill={this.props.bg}></path>
|
|
|
+ <path d="M -1 -1 L65 -1 L65 15 L-1 15 L-1 -1 Z" fill={this.props.topbar}></path>
|
|
|
+ <path d="M 44 15 L65 15 L65 65 L44 65 L44 15 Z" fill={this.props.theme}></path>
|
|
|
+ </g>
|
|
|
+ </svg>
|
|
|
+ </a>
|
|
|
+ <span className="theme-option-name"><b>{ this.props.name }</b></span>
|
|
|
+ </div>
|
|
|
);
|
|
|
}
|
|
|
|
|
|
@@ -26,6 +40,11 @@ ThemeColorBox.propTypes = {
|
|
|
t: PropTypes.func.isRequired, // i18next
|
|
|
appContainer: PropTypes.instanceOf(AppContainer).isRequired,
|
|
|
adminCustomizeContainer: PropTypes.instanceOf(AdminCustomizeContainer).isRequired,
|
|
|
+
|
|
|
+ name: PropTypes.string.isRequired,
|
|
|
+ bg: PropTypes.string.isRequired,
|
|
|
+ topbar: PropTypes.string.isRequired,
|
|
|
+ theme: PropTypes.string.isRequired,
|
|
|
};
|
|
|
|
|
|
export default withTranslation()(ThemeColorBoxWrapper);
|