-
Notifications
You must be signed in to change notification settings - Fork 0
/
auth.html
156 lines (137 loc) · 4.61 KB
/
auth.html
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
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="shortcut icon" href="./src/assets/favicon.png" />
<title>Quasi</title>
<script src="https://www.gstatic.com/firebasejs/3.6.3/firebase.js"></script>
<script>
const config = {
apiKey: "AIzaSyAUxfsOXV74HSo9OAuWeh0-EtfAr0IlmAU",
authDomain: "quasi-d6c39.firebaseapp.com",
databaseURL: "https://quasi-d6c39.firebaseio.com",
storageBucket: "quasi-d6c39.appspot.com",
};
firebase.initializeApp(config);
</script>
<script src="https://cdn.firebase.com/libs/firebaseui/1.0.0/firebaseui.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.firebase.com/libs/firebaseui/1.0.0/firebaseui.css" />
<script type="text/javascript">
// FirebaseUI config.
var uiConfig = {
'signInSuccessUrl': '/',
'signInOptions': [ firebase.auth.EmailAuthProvider.PROVIDER_ID ],
'credentialHelper': firebaseui.auth.CredentialHelper.NONE
// Terms of service url
// 'tosUrl': 'tos.html',
};
// Initialize the FirebaseUI Widget using Firebase.
var ui = new firebaseui.auth.AuthUI(firebase.auth());
// The start method will wait until the DOM is loaded.
ui.start('#firebaseui-auth-container', uiConfig);
</script>
<style>
@font-face {
font-family: 'Copernicus';
src: url('./auth/fonts/Copernicus-Bold.woff') format('woff');
font-weight: bold;
font-style: normal;
}
body {
/*background-color: #eceff1;*/
background-color: #f5f7f8;
}
.auth-wrapper {
max-width: 600px;
margin: 64px auto 32px;
text-align: center;
}
.auth-wrapper > h1 {
font-family: 'Copernicus', 'serif' !important;
color: #2962FF;
margin: 0;
/*margin-bottom: 16px;*/
font-size: 60px;
}
a { color: #2962FF !important; }
a:hover {
opacity: 0.5 !important;
text-decoration: none !important;
}
h1, p, label, input, button {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto" !important;
}
.firebaseui-text {
font-size: 14px;
color: #90a4ae;
}
input {
font-size: 20px !important;
border: 1px solid #eceff1 !important;
border-radius: 4px !important;
background: white !important;
padding: 16px !important;
display: block !important;
width: calc( 100% - 32px ) !important;
/*width: auto !important;*/
}
.mdl-textfield {
display: flex !important;
flex-direction: column;
align-items: center;
padding: 0 !important;
}
.mdl-textfield__label,
.mdl-textfield__label.firebaseui-label {
position: relative !important;
bottom: auto !important;
top: auto !important;
left: auto !important;
font-size: 14px !important;
margin-bottom: 8px !important;
/*width: auto !important;*/
}
.mdl-textfield--floating-label.is-focused .mdl-textfield__label,
.mdl-textfield--floating-label.is-dirty .mdl-textfield__label {
font-size: 14px !important; }
input:active,
input:focus,
.mdl-textfield.is-focused { outline: none !important; outline-color: transparent !important; }
.firebaseui-input-floating-button {
right: 16px !important;
top: 42px !important;
}
button {
background: #2962FF !important;
border-radius: 4px !important;
font-size: 14px !important;
box-shadow: none !important;
transition: background 300ms ease-in;
}
button:focus,
button:active { box-shadow: none !important; }
button:hover { opacity: 0.9; }
.mdl-card {
max-width: inherit;
/*padding: 16px 32px;*/
border-radius: 8px;
/*background: #f5f7f8;*/
background: transparent;
/*box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);*/
box-shadow: none;
overflow: visible !important;
}
.firebaseui-card-header { border-bottom: none; }
.firebaseui-title { font-size: 16px; display: none; }
</style>
</head>
<body>
<div class="auth-wrapper">
<h1>Quasi</h1>
<div id="firebaseui-auth-container"></div>
</div>
</body>
</html>