This commit is contained in:
Jeff Avallone
2018-02-10 17:20:56 -05:00
parent 5984f59063
commit 1576904f9c
5 changed files with 2 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
import React from 'react';
import style from './style.css';
const Message = ({ icon, heading, children }) => {
const IconComponent = icon;
return <div className={ style.message }>
<h2>{ IconComponent ? <IconComponent/> : '' }{ heading }</h2>
{ children }
</div>;
};
export default Message;
+20
View File
@@ -0,0 +1,20 @@
.message {
background: var(--color-tan);
padding: var(--spacing-margin);
margin: var(--spacing-margin) 0;
}
.message h2 {
margin: var(--spacing-margin) 0;
}
.message h2 svg {
margin-right: 0.5rem;
height: 3rem;
width: 3rem;
vertical-align: bottom;
}
.message p {
margin: var(--spacing-margin) 0;
}