-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPDV.html
208 lines (182 loc) · 6.42 KB
/
PDV.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LocalMarketing</title>
<style>
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
display: flex;
}
/* Estilo para o menu de navegação no topo */
.top-nav {
width: 100%;
background-color: #1e1c2e;
color: white;
padding: 10px;
display: flex;
align-items: center;
position: fixed;
}
.top-nav input[type="search"] {
border-radius: 15px;
border: none;
width: 400px;
height: 25px;
padding-left: 15px;
margin-left: 700px;
background-color: #1e1c2e;
color: #b6b6b6;
left: 50%;
transform: translateX(-50%);
}
.sair {
cursor: pointer;
width: 120px;
height: 25px;
border-radius: 20px;
border: none;
background-color: #1DB954;
color: #141414;
}
.end_pedido {
cursor: pointer;
width: 400px;
height: 40px;
border-radius: 20px;
border: none;
background-color: #1DB954;
color: #141414;
margin-top: 295px; /* Posição */
align-items: center;
}
/* Estilo para o menu lateral */
.sidebar {
width: 400px;
background-color: #1e1c2e;
color: #fff;
padding: 10px;
margin-top: 40px; /* Ajusta a margem para evitar a sobreposição com a barra de navegação */
height: calc(100vh - 50px); /* Ajusta a altura para evitar a sobreposição com a barra de navegação */
position: fixed; /* Torna o menu lateral fixo */
}
.sidebar ul {
list-style-type: none;
padding: 0;
}
.sidebar ul li {
padding: 10px;
cursor: pointer;
}
.sidebar ul li:hover {
background-color: #ddd;
}
/* Estilo para a lista de itens adicionados */
.main-content {
padding: 10px;
margin-left: 300px; /* Ajusta a margem para evitar a sobreposição com o menu lateral */
margin-top: 60px; /* Ajusta a margem para evitar a sobreposição com a barra de navegação */
flex-grow: 1;
}
.main-content ul {
list-style-type: none;
padding: 0;
}
.main-content ul li {
padding: 10px;
background-color: #eee;
margin-bottom: 5px;
display: flex;
justify-content: space-between;
align-items: center;
}
.main-content ul li button {
padding: 5px 10px;
background-color: #ff4d4d;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.main-content ul li button:hover {
background-color: #ff1a1a;
}
/* Estilo para a tela opaca */
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
justify-content: center;
align-items: center;
z-index: 1000;
}
.overlay iframe {
width: 90%;
max-width: 900px;
height: 90%;
max-height: 500px;
border: none;
}
</style>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 125 25" width="125" height="25">
<path fill="#1e1c2e" d="M114.31 12.47a9.58 9.58 0 1 0-14.2 7.33 10.21 10.21 0 0 0 14.2-7.33z"/>
<path fill="#1DB954" d="M114.31 12.47a9.58 9.58 0 1 1-14.2-7.33 10.21 10.21 0 0 1 14.2 7.33z"/>
</svg>
<!-- Menu de navegação no topo -->
<div class="top-nav">
<div class="form-logo">
<img src="asset/img/Sem título.png" alt="">
</div>
<input type="search" placeholder="Pesquisar Pedido">
<button class="sair" onclick="window.location.href='index.html';">Sair</button>
</div>
<!-- Menu lateral -->
<div class="sidebar">
<br>
<h3>Serviços</h3>
<ul id="item-list">
<li onclick="addItem('Preço $0 - Duração 80 horas - Treinamento em Ciências da Computação (Treinamento Alan Turing)')">Treinamento Alan Turing</li>
<li onclick="addItem('Preço $0 - Duração 80 horas - Treinamento em Eng.Básica (Treinamento Mary Jackson)')">Treinamento Mary Jackson</li>
<li onclick="addItem('Preço $0 - Duração 80 horas - Treinamento em Lógica de Programação (Treinamento Margaret Hamilton)')">Treinamento Margaret Hamilton</li>
<li onclick="addItem('Preço $0 - Duração 80 horas - Treinamento em Cálculos (Treinamento Katherine Johnson)')">Treinamento Katherine Johnson</li>
</ul>
<button class="end_pedido" onclick="showVideo()">Finalizar pedido</button>
</div>
<!-- Lista de itens adicionados -->
<div class="main-content">
<h3>Itens Adicionados</h3>
<ul id="added-items">
</ul>
</div>
<!-- Tela opaca com vídeo -->
<div class="overlay" id="overlay">
<iframe src="https://www.youtube.com/embed/E0YX8BC4RLo" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; muted" allowfullscreen></iframe>
</div>
<script>
function addItem(item) {
const ul = document.getElementById('added-items');
const li = document.createElement('li');
li.textContent = item;
const button = document.createElement('button');
button.textContent = 'Excluir';
button.onclick = function() {
ul.removeChild(li);
};
li.appendChild(button);
ul.appendChild(li);
}
function showVideo() {
document.getElementById('overlay').style.display = 'flex';
}
</script>
</body>
</html>