summaryrefslogtreecommitdiffhomepage
path: root/app/components/ConnectStyles.js
blob: 85558d6a12a831c25e0f5fed3b4b81d0cb0d74ff (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// @flow
import { createViewStyles, createTextStyles } from '../lib/styles';
import { colors } from '../config';

export default {
  ...createViewStyles({
    connect: {
      height: '100%',
      flex: 1,
    },
    map: {
      position: 'absolute',
      top: 0,
      left: 0,
      right: 0,
      bottom: 0,
      zIndex: 0,
      height: '100%',
      width: '100%',
    },
    container: {
      flexDirection: 'column',
      flex: 1,
      position: 'relative' /* need this for z-index to work to cover map */,
      zIndex: 1,
    },
    footer: {
      flex: 0,
      marginBottom: 16,
    },
    blocking_container: {
      width: '100%',
      position: 'absolute',
    },
    blocking_icon: {
      width: 10,
      height: 10,
      flex: 0,
      display: 'flex',
      borderRadius: 5,
      marginTop: 4,
      marginRight: 8,
      backgroundColor: colors.red,
    },
    server: {
      paddingTop: 7,
      paddingLeft: 12,
      paddingRight: 12,
      paddingBottom: 9,
      backgroundColor: colors.white20,
      borderRadius: 4,
      flexDirection: 'row',
      alignItems: 'center',
    },
    status: {
      paddingTop: 0,
      paddingLeft: 24,
      paddingRight: 24,
      paddingBottom: 0,
      marginTop: 186,
      flex: 1,
    },
    status_icon: {
      position: 'absolute',
      alignSelf: 'center',
      width: 60,
      height: 60,
      marginTop: 94,
    },
  }),
  ...createTextStyles({
    blocking_message: {
      display: 'flex',
      flexDirection: 'row',
      fontFamily: 'Open Sans',
      fontSize: 12,
      fontWeight: '800',
      lineHeight: 17,
      paddingTop: 8,
      paddingLeft: 20,
      paddingRight: 20,
      paddingBottom: 8,
      color: colors.white60,
      backgroundColor: colors.blue,
    },
    server_label: {
      fontFamily: 'DINPro',
      fontSize: 32,
      fontWeight: '900',
      lineHeight: 44,
      letterSpacing: -0.7,
      color: colors.white,
      marginBottom: 7,
      flex: 0,
    },
    error_title: {
      fontFamily: 'DINPro',
      fontSize: 32,
      fontWeight: '900',
      lineHeight: 40,
      color: colors.white,
      marginBottom: 8,
    },
    error_message: {
      fontFamily: 'Open Sans',
      fontSize: 13,
      fontWeight: '600',
      color: colors.white,
      marginBottom: 24,
    },
    status_security: {
      fontFamily: 'Open Sans',
      fontSize: 16,
      fontWeight: '800',
      lineHeight: 22,
      marginBottom: 4,
      color: colors.white,
    },
    status_security__secure: {
      color: colors.green,
    },
    status_security__unsecured: {
      color: colors.red,
    },
    status_ipaddress: {
      fontFamily: 'Open Sans',
      fontSize: 16,
      fontWeight: '800',
      color: colors.white,
    },
    status_ipaddress__invisible: {
      opacity: 0,
    },
    status_location: {
      fontFamily: 'DINPro',
      fontSize: 38,
      fontWeight: '900',
      lineHeight: 40,
      overflow: 'hidden',
      letterSpacing: -0.9,
      color: colors.white,
      marginBottom: 4,
    },
  }),
};