blob: aa319e9e961499245a5641b5f86d8249d7b92a15 (
plain) (
blame)
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
|
import * as _ from 'lodash';
import Paper from 'material-ui/Paper';
import * as React from 'react';
import { DefaultPlayer as Video } from 'react-html5video';
import 'react-html5video/dist/styles.css';
import { utils } from 'ts/utils/utils';
interface LoadingProps {}
interface LoadingState {}
export class Loading extends React.Component<LoadingProps, LoadingState> {
public render() {
return (
<div className="pt4 sm-px2 sm-pt2 sm-m1" style={{ height: 500 }}>
<Paper className="mx-auto" style={{ maxWidth: 400 }}>
{utils.isUserOnMobile() ? (
<img className="p1" src="/gifs/0xAnimation.gif" width="96%" />
) : (
<div style={{ pointerEvents: 'none' }}>
<Video
autoPlay={true}
loop={true}
muted={true}
controls={[]}
poster="/images/loading_poster.png"
>
<source src="/videos/0xAnimation.mp4" type="video/mp4" />
</Video>
</div>
)}
<div className="center pt2" style={{ paddingBottom: 11 }}>
Connecting to the blockchain...
</div>
</Paper>
</div>
);
}
}
|