-
Notifications
You must be signed in to change notification settings - Fork 0
/
produto.html
116 lines (101 loc) · 4.89 KB
/
produto.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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Olist Project :: MegaHack 2.0</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<!-- CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link href="style.css" rel="stylesheet">
<meta name="robots" content="noindex,follow" />
</head>
<body>
<div id="app">
<div class="row">
<div class="col">
<main class="container">
<div class="row">
<div class="col-12 col-lg-6 offset-lg-6 text-center">
<!-- Product Title -->
<div class="product-title">
<span>{{ produto.categoria }}</span>
<h4>{{ produto.titulo }}</h4>
</div>
</div>
<!-- Left Column / Headphones Image -->
<div class="col-12 col-lg-6">
<div class="row text-center">
<div class="col-12">
<img :src="imagem_capa" class="img-fluid" alt="">
</div>
</div>
<div class="row text-center">
<div class="col-2 ml-5 text-center" v-for="img in produto.imagens">
<img :src="img" class="ml-2 img-fluid" alt="" width="100" @click="muda_imagem(img)" style="cursor: pointer;">
</div>
</div>
</div>
<!-- Right Column -->
<div class="col-12 col-lg-6">
<!-- Product Configuration -->
<div class="product-configuration">
<!-- Product Color -->
<div class="product-caracteristics">
<table class="table table-striped table-hover">
<thead>
<tr class="text-center">
<th colspan="2">Características</th>
</tr>
</thead>
<tr v-for="c in produto.caracteristicas">
<td>{{c.chave}}</td>
<td>{{c.valor}}</td>
</tr>
</table>
</div>
<!-- Cable Configuration -->
<div class="cable-config">
<a href="#">Manual de configuração</a>
</div>
</div>
<!-- Product Description -->
<div class="product-description">
<p class="text-justify">{{ produto.descricao }}</p>
</div>
<!-- Product Pricing -->
<div class="product-price">
<span>R$ {{produto.preco}}</span>
<a href="#" class="cart-btn">Comprar</a>
</div>
</div>
</div>
</main>
</div>
</div>
<hr>
<div class="row">
<div class="col p-2 ml-5">
<label for="pergunta">Faça sua pergunta abaixo:</label>
<textarea cols="15" placeholder="Escreva sua pergunta aqui" class="form-control" v-model="pergunta"></textarea>
</div>
<div class="col p-5">
<button @click="verificar_pergunta()" class="btn btn-primary">Enviar Pergunta</button>
</div>
</div>
<br>
<div class="row">
<div class="col pl-5 respostas">
<h4 class="p-2">Últimas perguntas:</h4>
<div v-for="p in perguntas.slice().reverse()" class="mb-3">
<b>Pergunta:</b> {{p.pergunta}}<br><i class="pl-5"> <b>Resposta:</b></i> {{p.resposta}}
</div>
</div>
</div>
</div>
<!-- Scripts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js" charset="utf-8"></script>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="script.js" charset="utf-8"></script>
</body>
</html>