1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
+
3
4
< head >
4
5
< meta charset ="UTF-8 ">
5
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
9
10
< link rel ="stylesheet " href ="assets/style.css ">
10
11
< link rel ="icon " sizes ="192x192 " href ="assets/reactssa.png ">
11
12
</ head >
13
+
12
14
< body >
13
15
< div class ="container ">
14
- < img src ="assets/react-logo-fitas.png " alt ="Logo do React Salvador composto por fitas do Senhor do Bomfim " class ="rotating ">
15
- < img src ="assets/react-ssa-text.png " alt ="Logo do React Salvador composto por fitas do Senhor do Bomfim ">
16
+ < img id ="logo-image " src ="assets/react-logo-fitas.png " alt ="Logo do React Salvador composto por fitas do Senhor do Bomfim ">
17
+ < img id ="logo-text " src ="assets/react-ssa-text.png " alt ="Logo do React Salvador composto por fitas do Senhor do Bomfim ">
18
+
19
+ < form id ="meetup-notification-form ">
20
+ < h2 > Quer ser avisado sobre os próximos encontros?</ h2 >
21
+ < input type ="email " id ="email " placeholder ="Digite seu email e pressione enter " />
22
+ </ form >
23
+
16
24
< a href ="https://github.com/ReactSSA " class ="github-link "> ReactSSA</ a >
17
25
</ div >
26
+
27
+ < script src ="https://www.gstatic.com/firebasejs/5.4.2/firebase-app.js "> </ script >
28
+ < script src ="https://www.gstatic.com/firebasejs/5.4.2/firebase-database.js "> </ script >
29
+
30
+ < script >
31
+ var config = {
32
+ apiKey : "AIzaSyDthLRn1-FtkR9duSYmGO5vcxv27Mw6zfY" ,
33
+ authDomain : "reactssa-d6ce0.firebaseapp.com" ,
34
+ databaseURL : "https://reactssa-d6ce0.firebaseio.com" ,
35
+ projectId : "reactssa-d6ce0" ,
36
+ storageBucket : "reactssa-d6ce0.appspot.com" ,
37
+ messagingSenderId : "146802970530"
38
+ } ;
39
+ firebase . initializeApp ( config ) ;
40
+
41
+ var emailsStore = firebase . database ( ) . ref ( "emails" ) ;
42
+
43
+ document . getElementById ( "meetup-notification-form" ) . addEventListener ( "submit" , function ( e ) {
44
+ e . preventDefault ( ) ;
45
+
46
+ var emailInputEl = document . getElementById ( "email" ) ;
47
+ emailsStore . push ( {
48
+ email : emailInputEl . value
49
+ } ) . then ( function ( ) {
50
+ emailInputEl . value = "Pronto, anotado!" ;
51
+ emailInputEl . disabled = true ;
52
+ emailInputEl . style . color = "#229400" ;
53
+ } ) . catch ( function ( ) {
54
+ emailInputEl . value = "Erro, nos avise lá no github!" ;
55
+ } ) ;
56
+ } )
57
+ </ script >
18
58
</ body >
19
- </ html >
59
+
60
+ </ html >
0 commit comments