BD / products.html
Simbinosvaldo's picture
como posso associar a base de dados? - Initial Deployment
7011989 verified
Raw History Blame Contribute Delete
24 kB
<!DOCTYPE html>
<html lang="pt">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Produtos - PãoMoz</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.bread-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.filter-btn.active {
background-color: #d97706;
color: white;
}
</style>
</head>
<body class="bg-gray-50">
<!-- Navigation -->
<nav class="bg-yellow-600 text-white shadow-lg">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<a href="index.html" class="text-2xl font-bold flex items-center">
<i data-feather="coffee" class="mr-2"></i> Bread Easy
</a>
<div class="hidden md:flex space-x-6">
<a href="index.html" class="hover:text-yellow-200 font-medium">Home</a>
<a href="products.html" class="hover:text-yellow-200 font-medium underline">Produtos</a>
<a href="register.html" class="hover:text-yellow-200 font-medium">Registro</a>
<a href="cart.html" class="hover:text-yellow-200 font-medium flex items-center">
<i data-feather="shopping-cart" class="mr-1"></i> Carrinho
</a>
</div>
<button class="md:hidden focus:outline-none" id="menu-toggle">
<i data-feather="menu"></i>
</button>
</div>
<!-- Mobile menu -->
<div class="md:hidden hidden bg-yellow-700 px-4 py-2" id="mobile-menu">
<a href="index.html" class="block py-2 hover:text-yellow-200">Home</a>
<a href="products.html" class="block py-2 hover:text-yellow-200">Produtos</a>
<a href="register.html" class="block py-2 hover:text-yellow-200">Registro</a>
<a href="cart.html" class="block py-2 hover:text-yellow-200 flex items-center">
<i data-feather="shopping-cart" class="mr-2"></i> Carrinho
</a>
</div>
</nav>
<!-- Breadcrumb -->
<div class="bg-gray-100 py-3">
<div class="container mx-auto px-4">
<div class="flex items-center text-sm text-gray-600">
<a href="index.html" class="hover:text-yellow-600">Home</a>
<i data-feather="chevron-right" class="mx-2 w-4 h-4"></i>
<span>Produtos</span>
</div>
</div>
</div>
<!-- Products Section -->
<section class="py-10">
<div class="container mx-auto px-4">
<h1 class="text-3xl font-bold mb-6 text-gray-800">Nossos Pães</h1>
<!-- Search and Filters -->
<div class="bg-white rounded-lg shadow-md p-4 mb-8">
<div class="flex flex-col md:flex-row md:items-center justify-between gap-4">
<div class="relative flex-grow">
<input type="text" placeholder="Pesquisar pães ou padarias..." class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-yellow-500">
<i data-feather="search" class="absolute right-3 top-3 text-gray-400"></i>
</div>
<div class="flex items-center">
<span class="mr-2 text-gray-700">Filtrar por:</span>
<select class="px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-yellow-500">
<option>Localização</option>
<option>Maputo</option>
<option>Matola</option>
<option>Beira</option>
<option>Nampula</option>
</select>
</div>
</div>
<!-- Quick Filters -->
<div class="mt-4 flex flex-wrap gap-2">
<button class="filter-btn px-3 py-1 bg-gray-200 text-gray-800 rounded-full text-sm hover:bg-yellow-500 hover:text-white transition active">
Todos
</button>
<button class="filter-btn px-3 py-1 bg-gray-200 text-gray-800 rounded-full text-sm hover:bg-yellow-500 hover:text-white transition">
Pão Careca
</button>
<button class="filter-btn px-3 py-1 bg-gray-200 text-gray-800 rounded-full text-sm hover:bg-yellow-500 hover:text-white transition">
Pão Francês
</button>
<button class="filter-btn px-3 py-1 bg-gray-200 text-gray-800 rounded-full text-sm hover:bg-yellow-500 hover:text-white transition">
Pão Doce
</button>
<button class="filter-btn px-3 py-1 bg-gray-200 text-gray-800 rounded-full text-sm hover:bg-yellow-500 hover:text-white transition">
Pão Integral
</button>
</div>
</div>
<!-- Products Grid -->
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
<!-- Product 1 -->
<div class="bread-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300" data-aos="fade-up">
<div class="relative">
<img src="http://static.photos/food/640x360/1" alt="Pão Careca" class="w-full h-48 object-cover">
<span class="absolute top-2 right-2 bg-yellow-500 text-white text-xs font-bold px-2 py-1 rounded-full">Popular</span>
</div>
<div class="p-4">
<h3 class="font-bold text-xl mb-2 text-gray-800">Pão Careca</h3>
<p class="text-gray-600 mb-2">Padaria Nossa Senhora</p>
<p class="text-gray-500 text-sm mb-3 flex items-center">
<i data-feather="map-pin" class="w-4 h-4 mr-1"></i> Alto Maé, Maputo
</p>
<div class="flex justify-between items-center">
<span class="font-bold text-lg">15 MT</span>
<div class="flex space-x-2">
<button class="bg-yellow-500 hover:bg-yellow-600 text-white px-3 py-1 rounded-full text-sm">
<i data-feather="shopping-cart" class="w-4 h-4"></i>
</button>
<a href="product.html" class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-3 py-1 rounded-full text-sm">
Detalhes
</a>
</div>
</div>
</div>
</div>
<!-- Product 2 -->
<div class="bread-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300" data-aos="fade-up" data-aos-delay="100">
<img src="http://static.photos/food/640x360/2" alt="Pão Francês" class="w-full h-48 object-cover">
<div class="p-4">
<h3 class="font-bold text-xl mb-2 text-gray-800">Pão Francês</h3>
<p class="text-gray-600 mb-2">Padaria Maputo</p>
<p class="text-gray-500 text-sm mb-3 flex items-center">
<i data-feather="map-pin" class="w-4 h-4 mr-1"></i> Central, Maputo
</p>
<div class="flex justify-between items-center">
<span class="font-bold text-lg">12 MT</span>
<div class="flex space-x-2">
<button class="bg-yellow-500 hover:bg-yellow-600 text-white px-3 py-1 rounded-full text-sm">
<i data-feather="shopping-cart" class="w-4 h-4"></i>
</button>
<a href="product.html" class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-3 py-1 rounded-full text-sm">
Detalhes
</a>
</div>
</div>
</div>
</div>
<!-- Product 3 -->
<div class="bread-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300" data-aos="fade-up" data-aos-delay="200">
<div class="relative">
<img src="http://static.photos/food/640x360/3" alt="Pão Doce" class="w-full h-48 object-cover">
<span class="absolute top-2 right-2 bg-green-500 text-white text-xs font-bold px-2 py-1 rounded-full">Promoção</span>
</div>
<div class="p-4">
<h3 class="font-bold text-xl mb-2 text-gray-800">Pão Doce</h3>
<p class="text-gray-600 mb-2">Padaria Doce Mania</p>
<p class="text-gray-500 text-sm mb-3 flex items-center">
<i data-feather="map-pin" class="w-4 h-4 mr-1"></i> Matola Rio, Matola
</p>
<div class="flex justify-between items-center">
<div>
<span class="font-bold text-lg">20 MT</span>
<span class="text-sm text-gray-500 line-through ml-1">25 MT</span>
</div>
<div class="flex space-x-2">
<button class="bg-yellow-500 hover:bg-yellow-600 text-white px-3 py-1 rounded-full text-sm">
<i data-feather="shopping-cart" class="w-4 h-4"></i>
</button>
<a href="product.html" class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-3 py-1 rounded-full text-sm">
Detalhes
</a>
</div>
</div>
</div>
</div>
<!-- Product 4 -->
<div class="bread-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300" data-aos="fade-up" data-aos-delay="300">
<img src="http://static.photos/food/640x360/4" alt="Pão de Milho" class="w-full h-48 object-cover">
<div class="p-4">
<h3 class="font-bold text-xl mb-2 text-gray-800">Pão de Milho</h3>
<p class="text-gray-600 mb-2">Padaria Tradicional</p>
<p class="text-gray-500 text-sm mb-3 flex items-center">
<i data-feather="map-pin" class="w-4 h-4 mr-1"></i> Zimpeto, Maputo
</p>
<div class="flex justify-between items-center">
<span class="font-bold text-lg">18 MT</span>
<div class="flex space-x-2">
<button class="bg-yellow-500 hover:bg-yellow-600 text-white px-3 py-1 rounded-full text-sm">
<i data-feather="shopping-cart" class="w-4 h-4"></i>
</button>
<a href="product.html" class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-3 py-1 rounded-full text-sm">
Detalhes
</a>
</div>
</div>
</div>
</div>
<!-- Product 5 -->
<div class="bread-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300" data-aos="fade-up">
<img src="http://static.photos/food/640x360/5" alt="Pão Integral" class="w-full h-48 object-cover">
<div class="p-4">
<h3 class="font-bold text-xl mb-2 text-gray-800">Pão Integral</h3>
<p class="text-gray-600 mb-2">Padaria Saúde</p>
<p class="text-gray-500 text-sm mb-3 flex items-center">
<i data-feather="map-pin" class="w-4 h-4 mr-1"></i> Polana, Maputo
</p>
<div class="flex justify-between items-center">
<span class="font-bold text-lg">25 MT</span>
<div class="flex space-x-2">
<button class="bg-yellow-500 hover:bg-yellow-600 text-white px-3 py-1 rounded-full text-sm">
<i data-feather="shopping-cart" class="w-4 h-4"></i>
</button>
<a href="product.html" class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-3 py-1 rounded-full text-sm">
Detalhes
</a>
</div>
</div>
</div>
</div>
<!-- Product 6 -->
<div class="bread-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300" data-aos="fade-up" data-aos-delay="100">
<img src="http://static.photos/food/640x360/6" alt="Pão de Batata Doce" class="w-full h-48 object-cover">
<div class="p-4">
<h3 class="font-bold text-xl mb-2 text-gray-800">Pão de Batata Doce</h3>
<p class="text-gray-600 mb-2">Padaria Natural</p>
<p class="text-gray-500 text-sm mb-3 flex items-center">
<i data-feather="map-pin" class="w-4 h-4 mr-1"></i> Costa do Sol, Maputo
</p>
<div class="flex justify-between items-center">
<span class="font-bold text-lg">22 MT</span>
<div class="flex space-x-2">
<button class="bg-yellow-500 hover:bg-yellow-600 text-white px-3 py-1 rounded-full text-sm">
<i data-feather="shopping-cart" class="w-4 h-4"></i>
</button>
<a href="product.html" class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-3 py-1 rounded-full text-sm">
Detalhes
</a>
</div>
</div>
</div>
</div>
<!-- Product 7 -->
<div class="bread-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300" data-aos="fade-up" data-aos-delay="200">
<img src="http://static.photos/food/640x360/7" alt="Pão com Gergelim" class="w-full h-48 object-cover">
<div class="p-4">
<h3 class="font-bold text-xl mb-2 text-gray-800">Pão com Gergelim</h3>
<p class="text-gray-600 mb-2">Padaria Oriental</p>
<p class="text-gray-500 text-sm mb-3 flex items-center">
<i data-feather="map-pin" class="w-4 h-4 mr-1"></i> Baixa, Maputo
</p>
<div class="flex justify-between items-center">
<span class="font-bold text-lg">20 MT</span>
<div class="flex space-x-2">
<button class="bg-yellow-500 hover:bg-yellow-600 text-white px-3 py-1 rounded-full text-sm">
<i data-feather="shopping-cart" class="w-4 h-4"></i>
</button>
<a href="product.html" class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-3 py-1 rounded-full text-sm">
Detalhes
</a>
</div>
</div>
</div>
</div>
<!-- Product 8 -->
<div class="bread-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300" data-aos="fade-up" data-aos-delay="300">
<div class="relative">
<img src="http://static.photos/food/640x360/8" alt="Pão de Forma" class="w-full h-48 object-cover">
<span class="absolute top-2 right-2 bg-blue-500 text-white text-xs font-bold px-2 py-1 rounded-full">Novo</span>
</div>
<div class="p-4">
<h3 class="font-bold text-xl mb-2 text-gray-800">Pão de Forma</h3>
<p class="text-gray-600 mb-2">Padaria Moderna</p>
<p class="text-gray-500 text-sm mb-3 flex items-center">
<i data-feather="map-pin" class="w-4 h-4 mr-1"></i> Sommerschield, Maputo
</p>
<div class="flex justify-between items-center">
<span class="font-bold text-lg">30 MT</span>
<div class="flex space-x-2">
<button class="bg-yellow-500 hover:bg-yellow-600 text-white px-3 py-1 rounded-full text-sm">
<i data-feather="shopping-cart" class="w-4 h-4"></i>
</button>
<a href="product.html" class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-3 py-1 rounded-full text-sm">
Detalhes
</a>
</div>
</div>
</div>
</div>
</div>
<!-- Pagination -->
<div class="mt-10 flex justify-center">
<nav class="flex items-center space-x-2">
<a href="#" class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-yellow-500 hover:text-white hover:border-yellow-500">
<i data-feather="chevron-left" class="w-4 h-4"></i>
</a>
<a href="#" class="px-3 py-1 border border-yellow-500 bg-yellow-500 text-white rounded-md">1</a>
<a href="#" class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-yellow-500 hover:text-white hover:border-yellow-500">2</a>
<a href="#" class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-yellow-500 hover:text-white hover:border-yellow-500">3</a>
<span class="px-2 text-gray-500">...</span>
<a href="#" class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-yellow-500 hover:text-white hover:border-yellow-500">8</a>
<a href="#" class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-yellow-500 hover:text-white hover:border-yellow-500">
<i data-feather="chevron-right" class="w-4 h-4"></i>
</a>
</nav>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold mb-4 flex items-center">
<i data-feather="coffee" class="mr-2"></i> Bread Easy
</h3>
<p class="text-gray-400">Conectando padarias e clientes em Moçambique para facilitar o acesso a pães frescos e deliciosos.</p>
</div>
<div>
<h4 class="font-bold text-lg mb-4">Links Rápidos</h4>
<ul class="space-y-2">
<li><a href="index.html" class="text-gray-400 hover:text-white">Home</a></li>
<li><a href="products.html" class="text-gray-400 hover:text-white">Produtos</a></li>
<li><a href="register.html" class="text-gray-400 hover:text-white">Registro</a></li>
<li><a href="cart.html" class="text-gray-400 hover:text-white">Carrinho</a></li>
</ul>
</div>
<div>
<h4 class="font-bold text-lg mb-4">Contato</h4>
<ul class="space-y-2">
<li class="flex items-center text-gray-400"><i data-feather="mail" class="mr-2 w-4 h-4"></i> contato@breadeasy.co.mz</li>
<li class="flex items-center text-gray-400"><i data-feather="phone" class="mr-2 w-4 h-4"></i> +258 84 123 4567</li>
<li class="flex items-center text-gray-400"><i data-feather="map-pin" class="mr-2 w-4 h-4"></i> Maputo, Moçambique</li>
</ul>
</div>
<div>
<h4 class="font-bold text-lg mb-4">Redes Sociais</h4>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="facebook" class="w-6 h-6"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="instagram" class="w-6 h-6"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="twitter" class="w-6 h-6"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="whatsapp" class="w-6 h-6"></i>
</a>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
<p>&copy; 2023 Bread Easy. Todos os direitos reservados.</p>
</div>
</div>
</footer>
<script>
// Mobile menu toggle
document.getElementById('menu-toggle').addEventListener('click', function() {
const menu = document.getElementById('mobile-menu');
menu.classList.toggle('hidden');
});
// Filter buttons
const filterButtons = document.querySelectorAll('.filter-btn');
filterButtons.forEach(button => {
button.addEventListener('click', function() {
filterButtons.forEach(btn => btn.classList.remove('active'));
this.classList.add('active');
});
});
// Initialize AOS and Feather Icons
document.addEventListener('DOMContentLoaded', function() {
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
feather.replace();
});
</script>
</body>
</html>