-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
122 lines (112 loc) · 4.61 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
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
<!DOCTYPE html>
<html lang="pt">
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Welcome to Merlin's Potions." />
<meta name="robots" content="INDEX,FOLLOW" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no" />
<link rel="shortcut icon" href="./img/icon/potion.svg" type="image/x-icon">
<title>Merlin's Potions</title>
<!-- IMPORTS -->
<link rel="stylesheet" href="./css/style.css">
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<!-- /IMPORTS -->
</head>
<body>
<!-- NAVBAR-->
<nav>
<div class="menu-icon">
<span class="fas fa-bars"></span></div>
<div class="logo">
Merlin's Potions</div>
<div class="nav-items">
<li><a href="#">Potions</a></li>
<li><a href="#">Ingredients</a></li>
<li><a href="#">Books</a></li>
<li><a href="#">Supplies</a></li>
<li><a href="#">Clearance</a></li>
<li><a href="#">Sign-in</a></li>
</div>
<div class="cancel-icon">
<span class="fas fa-times"></span></div>
</nav>
<!-- /NAVBAR -->
<!-- CONTENT -->
<!-- api data goes here -->
<div class="wrapper" id="app">
<section v-if="errored">
<p>Pedimos desculpas, não estamos conseguindo recuperar as informações no momento. Por favor, tente
novamente mais tarde.</p>
</section>
<div v-else>
<div class="container">
<div class="card" v-for="(potion, index) in potions_list" :key="index">
<div class="img">
<img :src="`./img/products/${potion.image}`" /></a>
</div> <!-- /image -->
<div class="top-text">
<div class="name">
{{potion.name}}
</div> <!-- /top-name-->
<p>for only {{potion.price}}</p>
</div> <!-- /top-text-->
<div class="bottom-text">
<h4>Effects:</h4>
<p>{{potion.effect}}</p>
<h4>Ingredients:</h4>
<div v-for="(ingredient, index) in potion.ingredients" :key="index">
<div class="text">
<p>{{ingredient}}</p>
</div>
</div> <!-- /ingredients text-->
<div class="btn"><a href="#">Buy</a></div>
</div> <!-- /bottom-text -->
</div> <!-- /card-->
</div>
</div>
</div>
<!-- FOOTER -->
<footer>
<div class="footer-container">
<div class="left-col">
<div class="infos social-media">
<a href="">Company</a>
<a href="">Contact Us</a>
<a href="">Shipping</a>
<a href="">Returns</a>
<a href="">Careers</a>
</div>
<div class="social-media">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-youtube"></i></a>
<a href="#"><i class="fab fa-linkedin-in"></i></a>
</div>
<p class="rights-text">© 2015 Merlin's Potions. All Rights Reserved</p>
</div>
<div class="right-col">
<h1>Our Newsletter</h1>
<div class="border"></div>
<p>Sign up for our newsletter & get exclusive discounts!</p>
<form action="" class="newsletter-form">
<input type="text" class="txtb" placeholder="Enter Your Email" required>
<input type="submit" class="btn-newsletter" value="submit">
</form>
</div>
</div>
</footer>
<!-- /FOOTER -->
<!-- /CONTENT -->
<!-- JS -->
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.11"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<!-- arquivo para uso do vue + axios com get da api -->
<script src="./js/app.js"></script>
<!-- arquivo js -->
<script src="./js/main.js"></script>
<!-- /JS -->
</body>
</html>