1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

home tweaks

This commit is contained in:
Matthias Kretschmann 2019-02-08 15:03:26 +01:00
parent de36f2d7a2
commit f2c49db9a6
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 19 additions and 17 deletions

View File

@ -14,10 +14,14 @@ const Form = ({
onSubmit?: any
}) => (
<form className={styles.form} onSubmit={onSubmit} {...props}>
<header className={styles.formHeader}>
<h1 className={styles.formTitle}>{title}</h1>
<p className={styles.formDescription}>{description}</p>
</header>
{title && (
<header className={styles.formHeader}>
<h1 className={styles.formTitle}>{title}</h1>
{description && (
<p className={styles.formDescription}>{description}</p>
)}
</header>
)}
{children}
</form>

View File

@ -1,18 +1,16 @@
@import '../styles/variables';
.home {
// background: $brand-black;
// color: $brand-white;
// min-height: calc(100vh - #{$page-frame} * 2);
// display: flex;
// align-items: center;
// justify-content: center;
// flex-wrap: wrap;
// padding-top: 4rem;
// padding-bottom: 4rem;
height: 100%;
display: flex;
align-items: center;
flex-wrap: wrap;
// > div {
// text-align: center;
// width: 100%;
// }
> * {
width: 100%;
}
> div > header {
margin-top: -($spacer);
}
}