-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.js
42 lines (36 loc) · 858 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import React from 'react';
import { Provider, createComponent } from 'react-fela';
import { createRenderer } from 'fela';
import webPreset from 'fela-preset-web';
import Form from './form';
import Header from './header';
const renderer = createRenderer({
plugins: [...webPreset]
});
const Container = createComponent(() => ({
display: 'flex',
flexDirection: 'column',
minHeight: '100%',
width: '100%',
backgroundColor: '#f6f9fc'
}));
const Stripe = createComponent(() => ({
height: '10vh',
overflow: 'hidden',
transform: 'skewY(-8deg)',
transformOrigin: 0,
background:
'linear-gradient(-150deg, rgba(255, 255, 255, 0) 40%, #ddecf7 70%)'
}));
const Login = () => (
<Container>
<Header />
<Stripe />
<Form />
</Container>
);
export default () => (
<Provider renderer={renderer}>
<Login />
</Provider>
);