Skip to content
Snippets Groups Projects
Commit 672e0b54 authored by Brian Peiris's avatar Brian Peiris
Browse files

tweak styling

parent e407f698
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,9 @@
margin: 8px;
display: flex;
align-items: center;
@media (max-width: 768px) {
font-size: 0.8em;
}
}
:local(.menu) {
padding: 5px 0;
......
......@@ -17,10 +17,6 @@ export default class Footer extends Component {
hubName: PropTypes.string,
participantCount: PropTypes.number
};
static defaultProps = {
hubName: "Bobo's Super Test House",
participantCount: 10
};
state = {
menuVisible: false
};
......@@ -39,7 +35,7 @@ export default class Footer extends Component {
) : (
<div className={styles.header}>
<div className={styles.hubInfo}>
<span className={styles.hubName}>{this.props.hubName}</span>
<span>{this.props.hubName}</span>
</div>
<button className={styles.menuButton} onClick={() => this.setState({ menuVisible: !menuVisible })}>
<i className={styles.menuButtonIcon}>
......@@ -48,7 +44,7 @@ export default class Footer extends Component {
</button>
<div className={styles.hubStats}>
<FontAwesomeIcon icon={faUsers} />
<span className={styles.hubParticipantCount}>{this.props.participantCount}</span>
<span className={styles.hubParticipantCount}>{this.props.participantCount || "-"}</span>
</div>
</div>
)}
......@@ -57,11 +53,11 @@ export default class Footer extends Component {
{mobiledetect.mobile() && (
<div className={styles.header}>
<div className={styles.hubInfo}>
<span className={styles.hubName}>{this.props.hubName}</span>
<span>{this.props.hubName}</span>
</div>
<div className={styles.hubStats}>
<FontAwesomeIcon icon={faUsers} />
<span className={styles.hubParticipantCount}>{this.props.participantCount}</span>
<span className={styles.hubParticipantCount}>{this.props.participantCount || "-"}</span>
</div>
</div>
)}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment