Skip to content

Commit a49cca2

Browse files
authored
Merge pull request #4 from ReactSSA/social-links
Add Social links in footer area
2 parents 0c37f44 + 5ccee06 commit a49cca2

File tree

4 files changed

+126
-12
lines changed

4 files changed

+126
-12
lines changed

assets/facebook.svg

Lines changed: 40 additions & 0 deletions
Loading

assets/style.css

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,39 @@ body {
1818
margin-bottom: 30px;
1919
}
2020

21-
.github-link {
22-
display: block;
21+
.social {
22+
align-items: center;
23+
display: flex;
24+
justify-content: space-around;
25+
margin: 2em auto;
26+
height: 20px;
27+
width: auto;
28+
}
29+
30+
.social a {
31+
color: white;
32+
flex: 0 1 auto;
33+
height: auto;
34+
margin: 0 1em;
35+
padding-left: 24px;
36+
text-decoration: none;
37+
}
38+
39+
.social a:hover {
40+
text-decoration: underline;
41+
}
42+
43+
.github {
2344
background: url(github.svg) no-repeat;
2445
background-size: contain;
25-
width: 30px;
26-
height: 30px;
27-
overflow: hidden;
28-
line-height: 200px;
29-
margin-top: 20px;
46+
}
47+
.twitter {
48+
background: url(twitter.svg) no-repeat;
49+
background-size: contain;
50+
}
51+
.facebook {
52+
background: url(facebook.svg) no-repeat;
53+
background-size: contain;
3054
}
3155

3256
#meetup-notification-form {
@@ -52,4 +76,4 @@ body {
5276
width: calc(100% - 20px);
5377
font-size: 15px;
5478
}
55-
}
79+
}

assets/twitter.svg

Lines changed: 46 additions & 0 deletions
Loading

index.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ <h2>Quer ser avisado sobre os próximos encontros?</h2>
2121
<input type="email" id="email" placeholder="Digite seu email e pressione enter" />
2222
</form>
2323

24-
<a href="https://github.com/ReactSSA" class="github-link">ReactSSA</a>
24+
<div class="social">
25+
<a rel="external" target="_blank" href="https://github.com/ReactSSA" class="github">ReactSSA</a>
26+
<a rel="external" target="_blank" href="https://twitter.com/ReactSSA" class="twitter">@ReactSSA</a>
27+
<a rel="external" target="_blank" href="https://facebook.com/reactssa" class="facebook">React Salvador</a>
28+
</div>
2529
</div>
2630

2731
<script src="https://www.gstatic.com/firebasejs/5.4.2/firebase-app.js"></script>
2832
<script src="https://www.gstatic.com/firebasejs/5.4.2/firebase-database.js"></script>
29-
33+
3034
<script>
3135
var config = {
3236
apiKey: "AIzaSyDthLRn1-FtkR9duSYmGO5vcxv27Mw6zfY",
@@ -42,7 +46,7 @@ <h2>Quer ser avisado sobre os próximos encontros?</h2>
4246

4347
document.getElementById("meetup-notification-form").addEventListener("submit", function(e) {
4448
e.preventDefault();
45-
49+
4650
var emailInputEl = document.getElementById("email");
4751
emailsStore.push({
4852
email: emailInputEl.value
@@ -57,4 +61,4 @@ <h2>Quer ser avisado sobre os próximos encontros?</h2>
5761
</script>
5862
</body>
5963

60-
</html>
64+
</html>

0 commit comments

Comments
 (0)