-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (55 loc) · 2.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Starbucks Website Landing Pages</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>
<div class="circle">
</div>
<header>
<a href="#"><img src="images/logo.png" class="logo"></a>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Menu</a></li>
<li><a href="#">What's New</a></li>
<li><a href="#">Contact</a></li>
</ul>
</header>
<div class="content">
<div class="textBox">
<h2>It's not just coffee<br>It's<span>Starbucks</span></br></h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Maxime, reiciendis suscipit ratione beatae, tempore repellendus enim quas dolores distinctio itaque sint ipsa modi autem iste quisquam eum, in neque repellat!
</p>
<a href="#">Learn More</a>
</div>
<div class="imgBox">
<img src="images/img1.png" class="starbucks">
</div>
</div>
<ul class="thumb">
<li><img src="images/thumb1.png" onclick="imgSlider('images/img1.png');changeCircleColor('#017143')"></li>
<li><img src="images/thumb2.png" onclick="imgSlider('images/img2.png');changeCircleColor('#eb7495')"></li>
<li><img src="images/thumb3.png" onclick="imgSlider('images/img3.png');changeCircleColor('#d752b1')"></li>
</ul>
<ul class="sci">
<li><a href="#"><img src="images/facebook.png"></a></li>
<li><a href="#"><img src="images/twitter.png"></a></li>
<li><a href="#"><img src="images/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;
}
</script>
</body>
</html>