-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
94 lines (86 loc) · 3.87 KB
/
index.html
File metadata and controls
94 lines (86 loc) · 3.87 KB
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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MPstore</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body class="bg-gray-50 text-gray-800">
<!-- Header -->
<header class="bg-white shadow-md">
<div class="container mx-auto px-4 py-4 flex items-center justify-between">
<!-- Logo + Nome centralizados -->
<div class="flex items-center space-x-3 mx-auto">
<img src="1.png" alt="Logo MProupas" class="h-10 w-10 object-contain" />
<h1 class="text-2xl font-bold text-black">MPstore</h1>
</div>
<!-- Carrinho -->
<button onclick="toggleCart()" class="relative">
🛒 <span id="cartCount" class="absolute top-0 right-0 bg-red-500 text-white text-xs rounded-full px-1">0</span>
</button>
</div>
</header>
<!-- Banner -->
<section class="bg-black py-10 text-center">
<h2 class="text-4xl font-semibold text-white">Novas blusas na MPstore
<p class="text-lg mt-2 text-gray-300">Estilo e conforto para você.</p>
</section>
<!-- Produtos -->
<section class="container mx-auto px-4 py-10 grid md:grid-cols-3 gap-6">
<div class="product-card bg-white p-4 rounded shadow">
<img src="img/conjunto azul.jpeg" alt="Blusa 1" class="w-full">
<h3 class="mt-4 font-semibold text-lg">Blusa azul</h3>
<p class="text-sm text-gray-600">R$ 189,90</p>
<button onclick="addToCart()" class="mt-2 bg-black text-white px-4 py-2 rounded">Adicionar ao carrinho</button>
</div>
<div class="product-card bg-white p-4 rounded shadow">
<img src="img/conjunto nike cinza.jpeg" alt="Blusa 2" class="w-full">
<h3 class="mt-4 font-semibold text-lg">Blusa cinza nike</h3>
<p class="text-sm text-gray-600">R$ 189,90</p>
<button onclick="addToCart()" class="mt-2 bg-black text-white px-4 py-2 rounded">Adicionar ao carrinho</button>
</div>
<div class="product-card bg-white p-4 rounded shadow">
<img src="img/conjunto nike preto.jpeg" alt="Blusa 3" class="w-full">
<h3 class="mt-4 font-semibold text-lg">Blusa preto nike</h3>
<p class="text-sm text-gray-600">R$ 190,90</p>
<button onclick="addToCart()" class="mt-2 bg-black text-white px-4 py-2 rounded">Adicionar ao carrinho</button>
</div>
</section>
<!-- Contato -->
<section class="bg-white py-10">
<div class="container mx-auto px-4">
<h2 class="text-2xl font-bold mb-4">Fale com MPSTORE</h2>
<form class="space-y-4 max-w-md">
<input type="text" placeholder="Seu nome" class="w-full border border-gray-300 p-2 rounded" />
<input type="email" placeholder="Seu email" class="w-full border border-gray-300 p-2 rounded" />
<textarea placeholder="Sua mensagem" class="w-full border border-gray-300 p-2 rounded"></textarea>
<button type="submit" class="bg-black text-white px-4 py-2 rounded">Enviar</button>
</form>
</div>
</section>
<!-- Carrinho -->
<div id="cart" class="fixed bottom-4 right-4 bg-white border border-gray-300 p-4 rounded shadow-md hidden">
<h3 class="font-bold mb-2">Carrinho</h3>
<p id="cartItems">Nenhum item ainda.</p>
</div>
<!-- Rodapé -->
<footer class="bg-black text-white text-center py-4 mt-10">
© 2025 MPstore. Todos os direitos reservados.
</footer>
<!-- Script -->
<script>
let cartCount = 0;
function addToCart() {
cartCount++;
document.getElementById('cartCount').textContent = cartCount;
document.getElementById('cartItems').textContent = cartCount + ' item(s) no carrinho.';
}
function toggleCart() {
const cart = document.getElementById('cart');
cart.classList.toggle('hidden');
}
</script>
</body>
</html>