Dwayne Harris
5 years ago
21 changed files with 204 additions and 63 deletions
-
28src/components/app/app.scss
-
23src/components/app/app.tsx
-
2src/components/app/index.ts
-
21src/components/pages/about/index.tsx
-
13src/components/pages/developers/index.tsx
-
0src/components/pages/directory/directory.scss
-
5src/components/pages/directory/directory.tsx
-
2src/components/pages/home/index.tsx
-
9src/components/pages/login/index.tsx
-
0src/components/pages/login/login.scss
-
2src/components/pages/register-group/register-group.tsx
-
12src/components/pages/register/index.ts
-
33src/components/pages/register/register.tsx
-
18src/components/pages/test/index.ts
-
30src/components/pages/test/test.tsx
-
2src/components/register-form/index.ts
-
5src/components/register-form/register-form.tsx
-
14src/components/text-field/text-field.tsx
-
11src/components/user-info/user-info.scss
-
33src/components/user-info/user-info.tsx
-
4src/selectors/index.ts
@ -0,0 +1,21 @@ |
|||
import React, { FC } from 'react' |
|||
|
|||
const About: FC = () => ( |
|||
<div> |
|||
<section className="hero is-dark is-bold"> |
|||
<div className="hero-body"> |
|||
<div className="container"> |
|||
<h1 className="title">About Flexor</h1> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<div className="main-content"> |
|||
<p> |
|||
Flexor is a website. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
) |
|||
|
|||
export default About |
@ -0,0 +1,13 @@ |
|||
import React, { FC } from 'react' |
|||
|
|||
const Developers: FC = () => ( |
|||
<div className="main-content"> |
|||
<h1 className="title">Developers</h1> |
|||
|
|||
<p> |
|||
Developer documentation coming soon. |
|||
</p> |
|||
</div> |
|||
) |
|||
|
|||
export default Developers |
@ -0,0 +1,12 @@ |
|||
import { connect } from 'react-redux' |
|||
import { AppState, AppThunkDispatch } from 'src/types' |
|||
|
|||
import Register from './register' |
|||
|
|||
const mapStateToProps = (state: AppState) => ({}) |
|||
const mapDispatchToProps = (dispatch: AppThunkDispatch) => ({}) |
|||
|
|||
export default connect( |
|||
mapStateToProps, |
|||
mapDispatchToProps |
|||
)(Register) |
@ -0,0 +1,33 @@ |
|||
import React, { FC } from 'react' |
|||
|
|||
import TextField from '../../text-field' |
|||
import RegisterForm from '../../register-form' |
|||
|
|||
export interface Props { |
|||
} |
|||
|
|||
const Register: FC<Props> = () => { |
|||
return ( |
|||
<div className="main-content"> |
|||
<h1 className="title">Create a new Community and Account</h1> |
|||
|
|||
<div className="columns"> |
|||
<div className="column"> |
|||
<h1 className="subtitle has-text-primary">Community</h1> |
|||
|
|||
<div> |
|||
<TextField name="group-name" label="Name" placeholder="Community Name" /> |
|||
</div> |
|||
</div> |
|||
|
|||
<div className="column"> |
|||
<h1 className="subtitle has-text-primary">You</h1> |
|||
|
|||
<RegisterForm /> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
) |
|||
} |
|||
|
|||
export default Register |
@ -0,0 +1,18 @@ |
|||
import { connect } from 'react-redux' |
|||
import { showNotification } from 'src/actions/notifications' |
|||
import { AppThunkDispatch, NotificationType } from 'src/types' |
|||
|
|||
import Test from './test' |
|||
|
|||
const mapStateToProps = () => ({}) |
|||
|
|||
const mapDispatchToProps = (dispatch: AppThunkDispatch) => ({ |
|||
show: async (type: NotificationType, content: string) => { |
|||
dispatch(showNotification(type, content)) |
|||
}, |
|||
}) |
|||
|
|||
export default connect( |
|||
mapStateToProps, |
|||
mapDispatchToProps |
|||
)(Test) |
@ -0,0 +1,30 @@ |
|||
import React, { FC } from 'react' |
|||
import { NotificationType } from 'src/types' |
|||
|
|||
interface Props { |
|||
show: (type: NotificationType, content: string) => void |
|||
} |
|||
|
|||
const Test: FC<Props> = ({ show }) => ( |
|||
<div> |
|||
<section className="hero is-dark is-bold"> |
|||
<div className="hero-body"> |
|||
<div className="container"> |
|||
<h1 className="title">Test Page</h1> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<div className="main-content"> |
|||
<p> |
|||
<button className="button is-success" onClick={() => show('success', 'You did it!!!!!')}>Show Success</button> |
|||
<br /><br /> |
|||
<button className="button is-info" onClick={() => show('info', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.')}>Show Info</button> |
|||
<br /><br /> |
|||
<button className="button is-danger" onClick={() => show('error', 'Fuck')}>Show Error</button> |
|||
</p> |
|||
</div> |
|||
</div> |
|||
) |
|||
|
|||
export default Test |
@ -1,14 +1,3 @@ |
|||
$image-size: 64px; |
|||
|
|||
div.empty-image { |
|||
background-color: #eeeeee; |
|||
background-image: linear-gradient(145deg, #eeeeee, #aaaaaa); |
|||
border: solid 1px #cccccc; |
|||
border-radius: $image-size; |
|||
height: $image-size; |
|||
width: $image-size; |
|||
} |
|||
|
|||
article#user-info { |
|||
padding: 20px; |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue