-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (63 loc) · 2.44 KB
/
index.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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="src/css/style.css">
<title>Starbucks Website Landing Page</title>
</head>
<body>
<section>
<div class="circle"></div>
<header>
<a href="#" >
<img src="src/img/logo.png" class="logo">
</a>
<div class="toggle" onclick="toggleMenu();"></div>
<ul class="navigation">
<li><a href="#">Rewards</a></li>
<li><a href="#">Nosso Café</a></li>
<li><a href="#">Impacto Social</a></li>
</ul>
</header>
<div class="content">
<div class="textBox">
<h2>It's not just Coffee<br>It's <span>Starbucks</span></h2>
<p>Todos os dias esperamos fazer duas coisas: dividir um ótimo café com nossos
amigos e ajudar a tornar o mundo um pouquinho melhor. Já era assim quando a
primeira Starbucks abriu em 1971 e continua sendo assim até hoje.
</p>
<a href="#">Saber mais</a>
</div>
<div class="imgBox">
<img src="src/img/img1.png" class="starbucks">
</div>
</div>
<ul class="thumb">
<li><img src="src/img/thumb1.png" onclick="imgSlider('src/img/img1.png'); changeCircleColor('#017143')"></li>
<li><img src="src/img/thumb2.png" onclick="imgSlider('src/img/img2.png'); changeCircleColor('#eb7495')"></li>
<li><img src="src/img/thumb3.png" onclick="imgSlider('src/img/img3.png'); changeCircleColor('#d752b1')"></li>
</ul>
<ul class="sci">
<li><a href="https://www.facebook.com/dionbiancha/" target="_blank"><img src="src/img/facebook.png"></a></li>
<li><a href="https://twitter.com/dionbiancha" target="_blank"><img src="src/img/twitter.png"></a></li>
<li><a href="https://www.instagram.com/dionbiancha/" target="_blank"><img src="src/img/instagram.png"></a></li>
</ul>
</section>
<script type="text/javascript">
function imgSlider(anything) {
document.querySelector('.starbucks').src = anything;
}
function changeCircleColor(color) {
const circle = document.querySelector('.circle');
circle.style.background = color;
}
function toggleMenu(){
var menuToggle = document.querySelector('.toggle');
var navigation = document.querySelector('.navigation');
menuToggle.classList.toggle('active');
navigation.classList.toggle('active');
}
</script>
</body>
</html>