-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #21 - standardises CSS for all forms and adds text component
- Loading branch information
ortonomy
committed
Feb 8, 2018
1 parent
a614611
commit 8fcc41f
Showing
10 changed files
with
52 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
author: @ortonomy | ||
date: Feb 2018 | ||
version: 1 | ||
*/ | ||
|
||
.Form { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
author: @ortonomy | ||
date: Feb 2018 | ||
version: 1 | ||
*/ | ||
|
||
.Element { | ||
text-align: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// author: Ortonomy, 2018, v1 | ||
|
||
// react | ||
import React from 'react'; | ||
|
||
//styles | ||
import styles from './FormText.module.css'; | ||
|
||
const FormText = ({ text, ...props}) => { | ||
return ( | ||
<p className={styles.Element}>{text}</p> | ||
); | ||
} | ||
|
||
export default FormText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,19 +3,21 @@ | |
// react | ||
import React, { Component } from 'react'; | ||
|
||
|
||
//library dependencies | ||
import { Link } from 'react-router-dom'; | ||
|
||
// component dependencies | ||
import EnrollmentForms from '../../components/EnrollmentForms'; | ||
import FormText from '../../components/FormText'; | ||
|
||
// styles | ||
import styles from './style.module.css'; | ||
|
||
// copy and assets | ||
import logo from '../../assets/images/[email protected]'; | ||
|
||
// in-component copy | ||
const instructionText = `Find or create an organization.`; | ||
|
||
class OrgEnrolment extends Component { | ||
render() { | ||
|
@@ -26,6 +28,7 @@ class OrgEnrolment extends Component { | |
<Link to="/"><img src={logo} alt="Fling" /></Link> | ||
</div> | ||
<div className={styles.Components} > | ||
<FormText text={instructionText}/> | ||
<EnrollmentForms /> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters