mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 00:39:49 +00:00
design content header
This commit is contained in:
parent
d46f47e0b9
commit
24c05297c4
@ -12,10 +12,10 @@ class ContentHeader extends React.Component { // eslint-disable-line react/prefe
|
||||
render() {
|
||||
return (
|
||||
<div className={styles.contentHeader}>
|
||||
<div>
|
||||
<FormattedMessage {...{id: this.props.content.name}} />
|
||||
<div className={styles.title}>
|
||||
<FormattedMessage {...{id: this.props.name }} />
|
||||
</div>
|
||||
<FormattedMessage {...{id: this.props.content.description}} />
|
||||
<span><FormattedMessage {...{id: this.props.description}} /></span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -1,3 +1,16 @@
|
||||
.contentHeader { /* stylelint-disable */
|
||||
|
||||
padding: 3rem 4rem;
|
||||
font-family: Lato;
|
||||
> span {
|
||||
color: #787E8F;
|
||||
font-size: 1.3rem;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
color: #333740;
|
||||
font-family: Lato;
|
||||
font-size: 2.4rem;
|
||||
line-height: 2.9rem;
|
||||
}
|
||||
|
@ -8,10 +8,9 @@ import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { createStructuredSelector } from 'reselect';
|
||||
import { map } from 'lodash';
|
||||
import Helmet from 'react-helmet';
|
||||
import { router } from 'app';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
// design
|
||||
import ContentHeader from 'components/ContentHeader';
|
||||
|
||||
@ -56,14 +55,17 @@ export class Home extends React.Component { // eslint-disable-line react/prefer-
|
||||
return <div />;
|
||||
}
|
||||
return (
|
||||
<div className={styles.home}>
|
||||
<div className={`${styles.home} col-md-9`}>
|
||||
<Helmet
|
||||
title="Home"
|
||||
meta={[
|
||||
{ name: 'description', content: 'Description of Home' },
|
||||
]}
|
||||
/>
|
||||
<FormattedMessage {...{id: this.props.home.configsDisplay.name}} />
|
||||
<ContentHeader
|
||||
name={this.props.home.configsDisplay.name}
|
||||
description={this.props.home.configsDisplay.description}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
.home { /* stylelint-disable */
|
||||
background: rgba(14,22,34,0.02);
|
||||
min-height: calc(100vh - 6rem); // TODO shoukd be variable
|
||||
padding: 0;
|
||||
}
|
||||
.baseline {
|
||||
// display: none;
|
||||
|
Loading…
x
Reference in New Issue
Block a user