forked from berty/berty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservices_auth_templates.go
120 lines (117 loc) · 3.14 KB
/
services_auth_templates.go
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
package bertyprotocol
import "html/template"
var templateAuthTokenServerRedirect = template.Must(template.New("redirect").Parse(`<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Redirect</title>
<script>
location.href = "{{.URL}}";
</script>
</head>
<body>
<div
style="display: flex; align-items: center; justify-content: center; height: 100vh"
>
<a
style="text-decoration: none; font-family: Verdana, Geneva, sans-serif; font-weight: 600; color: white; border-radius: 10px; background-color: #404148; padding: 10px 17px; display: flex; align-items: center; justify-content: center;"
href="{{.URL}}"
>
REDIRECT
</a>
</div>
</body>
</html>
`))
// nolint:gosec
var templateAuthTokenServerAuthorizeButton = `<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CONNECT & REPLICATE</title>
<style>
body {
margin: 0;
background-color: #3f49ea;
font-family: Arial, Helvetica, sans-serif;
}
main {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
p {
color: #898ba3;
}
.title {
color: #3f49ea;
}
.block {
width: 300px;
max-width: 100%;
text-align: center;
background-color: #fff;
border-radius: 12px;
box-shadow: 0 6px 15px rgba(171, 174, 209, 0.3);
font-weight: 400;
display: block;
position: relative;
padding: 25px;
}
.badge-wrapper {
text-align: right;
}
.badge {
color: #20d6b5;
background-color: #d3f8f2;
display: initial;
padding: 5px 12px;
border-radius: 20px;
}
.btn {
margin-top: 20px;
font-weight: 600;
color: #3f49ea;
background-color: #e2e4fc;
border-radius: 9px;
padding: 9px 18px;
cursor: pointer;
text-align: center;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
border: none;
outline: none;
font-size: 1rem;
line-height: 1.5;
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn:hover {
color: #fff;
background-color: #3f49ea;
}
</style>
</head>
<body>
<main>
<div class="block">
<div class="badge-wrapper">
<div class="badge">Performance</div>
</div>
<h2 class="title">Berty Replication Service</h2>
<p>
This will automatically replicate your conversations on our server, to
provide your device the most efficient network performance.
</p>
<p>This feature is optional.</p>
<form method="POST">
<button class="btn" type="submit">CONNECT & REPLICATE</button>
</form>
</div>
</main>
</body>
</html>
`