project / index.html
Andxrey's picture
Update index.html
9a1d1df verified
Raw History Blame Contribute Delete
29.7 kB
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<!-- Configurações básicas do documento -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Infinity Açaí - Cardápio</title>
<!-- Importando bibliotecas externas -->
<!-- TailwindCSS para estilização -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Font Awesome para ícones -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Estilos personalizados -->
<style>
/* Estilo para os itens de navegação com efeito hover */
.nav-item {
transition: all 0.3s ease;
}
.nav-item:hover {
transform: translateY(-3px);
}
/* Estilo para o item ativo na navegação */
.active-item {
background-color: white;
color: #6B46C1;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.active-item .nav-text {
color: #6B46C1;
}
/* Estilo para o texto do logo - REMOVIDA A BORDA BRANHA */
.logo-text {
font-family: 'Arial', sans-serif;
letter-spacing: 1px;
color: #FFFFFF; /* Alterado para cor branca */
}
/* Estilo para o ícone do açaí */
.açai-icon {
color: #FFFFFF; /* Alterado para cor branca */
}
/* Efeito de brilho na logo */
.logo-hover-effect {
position: relative;
transition: all 0.3s ease;
}
.logo-hover-effect::before {
content: '';
position: absolute;
top: -5px;
left: -5px;
right: -5px;
bottom: -3px;
background: radial-gradient(circle, rgba(107,70,193,0.5) 0%, rgba(107,70,193,0) 70%);
border-radius: 50%;
opacity: 0;
transition: opacity 0.3s ease;
z-index: -1;
}
.logo-hover-effect:hover::before {
opacity: 1;
}
.logo-hover-effect:hover {
transform: scale(1.05);
}
/* Estilo para o overlay de login */
.login-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.login-overlay.active {
opacity: 1;
visibility: visible;
}
.login-container {
transform: translateY(-20px);
transition: all 0.3s ease;
}
.login-overlay.active .login-container {
transform: translateY(0);
}
/* Estilo para o input de telefone */
.input-phone {
letter-spacing: 2px;
}
/* Estilo para o banner hero */
.hero-banner {
background-image: url('https://images.unsplash.com/photo-1676515841519-7bb498597c73?q=80&w=1935&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
position: relative;
height: 320px;
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(107, 70, 193, 0.5);
}
.hero-content {
position: relative;
z-index: 1;
}
.hero-title {
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
/* Estilo para as abas de categoria */
.category-tab {
transition: all 0.3s ease;
position: relative;
}
.category-tab.active {
color: #6B46C1;
font-weight: bold;
}
.category-tab.active::after {
content: '';
position: absolute;
bottom: -8px;
left: 0;
width: 100%;
height: 3px;
background-color: #6B46C1;
border-radius: 3px;
}
/* Estilo para os cards de produto */
.product-card {
transition: all 0.3s ease;
transform: translateY(0);
}
.product-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.product-image {
height: 180px;
object-fit: cover;
transition: all 0.3s ease;
}
.product-card:hover .product-image {
transform: scale(1.05);
}
/* Espaçamento para a seção do catálogo */
.catalog-section {
padding-top: 100px;
padding-bottom: 80px;
}
</style>
</head>
<body class="bg-purple-50 min-h-screen flex flex-col">
<!-- Cabeçalho do site -->
<header class="sticky top-0 z-50">
<nav class="bg-purple-800 shadow-lg">
<div class="max-w-6xl mx-auto px-4">
<div class="flex justify-between items-center py-4">
<!-- Logo - REMOVIDO O BACKGROUND BRANCO E BORDA -->
<div class="logo-hover-effect flex items-center cursor-pointer transform transition-all duration-300">
<i class="fas fa-wine-glass-alt text-3xl açai-icon"></i>
<span class="logo-text text-2xl ml-2 font-bold">Infinity Açaí</span>
</div>
<!-- Itens de navegação -->
<div class="hidden md:flex items-center space-x-1">
<!-- Item Início -->
<a href="#" id="home-btn" class="nav-item active-item py-2 px-5 rounded-full flex flex-col items-center justify-center">
<i class="fas fa-home text-lg"></i>
<span class="nav-text text-xs mt-1">Início</span>
</a>
<!-- Item Promoções -->
<a href="#" class="nav-item py-2 px-5 rounded-full flex flex-col items-center justify-center">
<i class="fas fa-percent text-lg text-white"></i>
<span class="nav-text text-white text-xs mt-1">Promoções</span>
</a>
<!-- Item Pedidos -->
<a href="pedidos.html" class="nav-item py-2 px-5 rounded-full flex flex-col items-center justify-center">
<i class="fas fa-shopping-bag text-lg text-white"></i>
<span class="nav-text text-white text-xs mt-1">Pedidos</span>
</a>
<!-- Item Entrar/Cadastrar -->
<a href="#" id="login-btn" class="nav-item py-2 px-5 rounded-full flex flex-col items-center justify-center">
<i class="fas fa-user text-lg text-white"></i>
<span class="nav-text text-white text-xs mt-1">Entrar/Cadastrar</span>
</a>
</div>
<!-- Botão de menu mobile -->
<div class="md:hidden flex items-center">
<button class="outline-none mobile-menu-button">
<svg class="w-6 h-6 text-white" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" stroke="currentColor">
<path d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</button>
</div>
</div>
</div>
<!-- Menu mobile -->
<div class="hidden mobile-menu bg-purple-900">
<div class="flex flex-col items-center py-4 space-y-4">
<!-- Versão mobile do item Início -->
<a href="#" id="mobile-home-btn" class="nav-item active-item py-2 px-6 rounded-full flex flex-col items-center justify-center">
<i class="fas fa-home text-lg"></i>
<span class="nav-text text-xs mt-1">Início</span>
</a>
<!-- Versão mobile do item Promoções -->
<a href="#" class="nav-item py-2 px-6 rounded-full flex flex-col items-center justify-center">
<i class="fas fa-percent text-lg text-white"></i>
<span class="nav-text text-white text-xs mt-1">Promoções</span>
</a>
<!-- Versão mobile do item Pedidos -->
<a href="pedidos.html" class="nav-item py-2 px-6 rounded-full flex flex-col items-center justify-center">
<i class="fas fa-shopping-bag text-lg text-white"></i>
<span class="nav-text text-white text-xs mt-1">Pedidos</span>
</a>
<!-- Versão mobile do item Entrar/Cadastrar -->
<a href="#" id="mobile-login-btn" class="nav-item py-2 px-6 rounded-full flex flex-col items-center justify-center">
<i class="fas fa-user text-lg text-white"></i>
<span class="nav-text text-white text-xs mt-1">Entrar/Cadastrar</span>
</a>
</div>
</div>
</nav>
</header>
<!-- Conteúdo principal -->
<main class="flex-grow">
<!-- Banner hero -->
<div class="hero-banner flex items-center justify-center">
<div class="hero-overlay"></div>
<div class="hero-content text-center p-8">
<h1 class="hero-title text-4xl md:text-5xl font-bold text-white mb-4">Bem-vindo ao Infinity Açaí</h1>
<p class="hero-subtitle text-xl md:text-2xl text-purple-100 font-medium">A melhor experiência de açaí da região</p>
<button class="mt-8 bg-white text-purple-800 hover:bg-purple-100 font-bold py-3 px-8 rounded-full transition-all transform hover:scale-105 shadow-lg">
Faça seu pedido agora
</button>
</div>
</div>
<!-- Seção de catálogo de produtos -->
<section class="catalog-section bg-purple-50">
<div class="max-w-6xl mx-auto px-4">
<!-- Abas de categorias -->
<div class="flex justify-center mb-12">
<div class="bg-white rounded-full p-1 shadow-md">
<div class="flex space-x-1">
<button class="category-tab active px-6 py-2 rounded-full" data-category="all">Todos</button>
<button class="category-tab px-6 py-2 rounded-full", data-category="combos">Combos</button>
<button class="category-tab px-6 py-2 rounded-full" data-category="promocoes">Promoções</button>
<button class="category-tab px-6 py-2 rounded-full" data-category="novos">Novidades</button>
<button class="category-tab px-6 py-2 rounded-full" data-category="acompanhamentos">Acompanhamentos</button>
</div>
</div>
</div>
<!-- Grid de produtos -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" id="product-grid">
<!-- Produto: Combo 1 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md cursor-pointer" data-category="combos promocoes">
<div class="relative overflow-hidden">
<img src="https://images.unsplash.com/photo-1551790629-7a12b0517a2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
alt="Açaí Especial"
class="w-full h-48 object-cover product-image">
<div class="absolute top-2 left-2 bg-red-500 text-white text-xs font-bold px-2 py-1 rounded-full">
PROMOÇÃO
</div>
</div>
<div class="p-4">
<h3 class="text-xl font-bold text-gray-800 mb-1">Combo Família</h3>
<p class="text-gray-600 text-sm mb-3">3 açaís grandes + 5 acompanhamentos</p>
<div class="flex justify-between items-center">
<span class="text-2xl font-bold text-purple-800">R$ 49,90</span>
<span class="text-sm line-through text-gray-400">R$ 64,90</span>
</div>
<button class="mt-4 w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded-lg transition-colors">
Adicionar ao carrinho
</button>
</div>
</div>
<!-- Produto: Combo 2 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md cursor-pointer" data-category="combos">
<div class="relative overflow-hidden">
<img src="https://images.unsplash.com/photo-1600712243703-c9e842b2248d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
alt="Açaí Tradicional"
class="w-full h-48 object-cover product-image">
</div>
<div class="p-4">
<h3 class="text-xl font-bold text-gray-800 mb-1">Combo Açaí Tropical</h3>
<p class="text-gray-600 text-sm mb-3">Açaí médio + 3 frutas tropicais</p>
<div class="flex justify-between items-center">
<span class="text-2xl font-bold text-purple-800">R$ 29,90</span>
</div>
<button class="mt-4 w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded-lg transition-colors">
Adicionar ao carrinho
</button>
</div>
</div>
<!-- Produto: Novidade 1 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md cursor-pointer" data-category="novos">
<div class="relative overflow-hidden">
<img src="https://images.unsplash.com/photo-1633617361910-df9fc1b5a7d5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
alt="Açaí com Nutella"
class="w-full h-48 object-cover product-image">
<div class="absolute top-2 left-2 bg-green-500 text-white text-xs font-bold px-2 py-1 rounded-full">
NOVIDADE
</div>
</div>
<div class="p-4">
<h3 class="text-xl font-bold text-gray-800 mb-1">Açaí com Nutella</h3>
<p class="text-gray-600 text-sm mb-3">Açaí cremoso com Nutella e morangos</p>
<div class="flex justify-between items-center">
<span class="text-2xl font-bold text-purple-800">R$ 24,90</span>
</div>
<button class="mt-4 w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded-lg transition-colors">
Adicionar ao carrinho
</button>
</div>
</div>
<!-- Produto: Promoção 1 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md cursor-pointer" data-category="promocoes">
<div class="relative overflow-hidden">
<img src="https://images.unsplash.com/photo-1609950223867-60c54fc6d8a3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVuf DB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
alt="Açaí Light"
class="w-full h-48 object-cover product-image">
<div class="absolute top-2 left-2 bg-red-500 text-white text-xs font-bold px-2 py-1 rounded-full">
PROMOÇÃO
</div>
</div>
<div class="p-4">
<h3 class="text-xl font-bold text-gray-800 mb-1">Açaí Light</h3>
<p class="text-gray-600 text-sm mb-3">Versão mais saudável sem açúcar</p>
<div class="flex justify-between items-center">
<span class="text-2xl font-bold text-purple-800">R$ 19,90</span>
<span class="text-sm line-through text-gray-400">R$ 24,90</span>
</div>
<button class="mt-4 w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded-lg transition-colors">
Adicionar ao carrinho
</button>
</div>
</div>
<!-- Produto: Acompanhamento 1 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md cursor-pointer" data-category="acompanhamentos">
<div class="relative overflow-hidden">
<img src="https://images.unsplash.com/photo-1470124182917-cc6e71b22ecc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
alt="Granola Caseira"
class="w-full h-48 object-cover product-image">
</div>
<div class="p-4">
<h3 class="text-xl font-bold text-gray-800 mb-1">Granola Especial</h3>
<p class="text-gray-600 text-sm mb-3">Granola artesanal com mel e castanhas</p>
<div class="flex justify-between items-center">
<span class="text-2xl font-bold text-purple-800">R$ 8,90</span>
</div>
<button class="mt-4 w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded-lg transition-colors">
Adicionar ao carrinho
</button>
</div>
</div>
<!-- Produto: Novidade 2 -->
<div class="product-card bg-white rounded-lg overflow-hidden shadow-md cursor-pointer" data-category="novos promocoes">
<div class="relative overflow-hidden">
<img src="https://images.unsplash.com/photo-1550583725-96c97c33da5a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
alt="Açaí com Paçoca"
class="w-full h-48 object-cover product-image">
<div class="absolute top-2 left-2 bg-green-500 text-white text-xs font-bold px-2 py-1 rounded-full">
NOVIDADE
</div>
<div class="absolute top-2 right-2 bg-red-500 text-white text-xs font-bold px-2 py-1 rounded-full">
PROMOÇÃO
</div>
</div>
<div class="p-4">
<h3 class="text-xl font-bold text-gray-800 mb-1">Açaí com Paçoca</h3>
<p class="text-gray-600 text-sm mb-3">Açaí cremoso com paçoca artesanal</p>
<div class="flex justify-between items-center">
<span class="text-2xl font-bold text-purple-800">R$ 22,90</span>
<span class="text-sm line-through text-gray-400">R$ 27,90</span>
</div>
<button class="mt-4 w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded-lg transition-colors">
Adicionar ao carrinho
</button>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Popup de login -->
<div class="login-overlay" id="login-overlay">
<div class="login-container bg-white rounded-lg shadow-xl w-full max-w-md mx-4">
<div class="p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-purple-800">Entrar ou Cadastrar</h2>
<button id="close-login" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times text-xl"></i>
</button>
</div>
<div class="mb-6">
<p class="text-gray-600 mb-4">Digite seu número de telefone para continuar</p>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<span class="text-gray-500">+55</span>
</div>
<input type="tel" id="phone-number" class="input-phone w-full pl-12 py-3 border-b-2 border-purple-300 focus:border-purple-600 outline-none text-lg" placeholder="(00) 00000-0000" maxlength="15">
</div>
</div>
<div class="flex flex-col space-y-3">
<button id="continue-btn" class="bg-purple-600 hover:bg-purple-700 text-white py-3 px-4 rounded-lg font-medium transition-colors">
Continuar
</button>
<button class="text-purple-600 hover:text-purple-800 py-2 font-medium transition-colors">
Entrar com e-mail
</button>
</div>
<div class="mt-6 pt-6 border-t border-gray-200">
<p class="text-sm text-gray-500">Ao continuar, você concorda com nossos <a href="#" class="text-purple-600 hover:underline">Termos de Serviço</a> e <a href="#" class="text-purple-600 hover:underline">Política de Privacidade</a>.</p>
</div>
</div>
</div>
</div>
<!-- Scripts JavaScript -->
<script>
// Função para alternar o menu mobile
const btn = document.querySelector(".mobile-menu-button");
const menu = document.querySelector(".mobile-menu");
btn.addEventListener("click", () => {
menu.classList.toggle("hidden");
});
// Ativação dos itens de navegação
const navItems = document.querySelectorAll('.nav-item');
navItems.forEach(item => {
item.addEventListener('click', function() {
// Remove a classe ativa de todos os itens
navItems.forEach(nav => {
nav.classList.remove('active-item');
nav.querySelector('i').classList.remove('text-purple-800');
nav.querySelector('i').classList.add('text-white');
nav.querySelector('.nav-text').classList.remove('text-purple-800');
nav.querySelector('.nav-text').classList.add('text-white');
});
// Adiciona a classe ativa ao item clicado
this.classList.add('active-item');
this.querySelector('i').classList.remove('text-white');
this.querySelector('i').classList.add('text-purple-800');
this.querySelector('.nav-text').classList.remove('text-white');
this.querySelector('.nav-text').classList.add('text-purple-800');
});
});
// Lógica do popup de login
const loginOverlay = document.getElementById('login-overlay');
const loginBtn = document.getElementById('login-btn');
const mobileLoginBtn = document.getElementById('mobile-login-btn');
const closeLogin = document.getElementById('close-login');
const continueBtn = document.getElementById('continue-btn');
const phoneInput = document.getElementById('phone-number');
// Formatação do input de telefone
phoneInput.addEventListener('input', function(e) {
let value = e.target.value.replace(/\D/g, '');
if (value.length > 0) {
value = value.replace(/^(\d{2})(\d)/g, '($1) $2');
}
if (value.length > 10) {
value = value.replace(/(\d{5})(\d)/, '$1-$2');
}
e.target.value = value.substring(0, 15);
});
// Alternar popup de login
function toggleLoginPopup() {
loginOverlay.classList.toggle('active');
document.body.style.overflow = loginOverlay.classList.contains('active') ? 'hidden' : '';
}
loginBtn.addEventListener('click', function(e) {
e.preventDefault();
toggleLoginPopup();
});
mobileLoginBtn.addEventListener('click', function(e) {
e.preventDefault();
menu.classList.add('hidden');
toggleLoginPopup();
});
closeLogin.addEventListener('click', toggleLoginPopup);
continueBtn.addEventListener('click', function() {
const phoneNumber = phoneInput.value;
if (phoneNumber.replace(/\D/g, '').length >= 11) {
alert(`Número válido: ${phoneNumber}\nRedirecionando para verificação...`);
// Lógica para enviar o número para verificação
toggleLoginPopup();
} else {
alert('Por favor, insira um número de telefone válido com DDD (11 dígitos)');
}
});
// Fechar popup ao clicar fora
loginOverlay.addEventListener('click', function(e) {
if (e.target === loginOverlay) {
toggleLoginPopup();
}
});
// Função do botão home
const homeBtn = document.getElementById('home-btn');
const mobileHomeBtn = document.getElementById('mobile-home-btn');
function goToHomePage(e) {
e.preventDefault();
window.scrollTo({ top: 0, behavior: 'smooth' });
}
homeBtn.addEventListener('click', goToHomePage);
mobileHomeBtn.addEventListener('click', function(e) {
goToHomePage(e);
menu.classList.add('hidden');
});
// Filtragem por categoria
const categoryTabs = document.querySelectorAll('.category-tab');
const productCards = document.querySelectorAll('.product-card');
categoryTabs.forEach(tab => {
tab.addEventListener('click', function() {
// Remove a classe ativa de todas as abas
categoryTabs.forEach(t => t.classList.remove('active'));
// Adiciona a classe ativa à aba clicada
this.classList.add('active');
// Filtra os produtos
const category = this.dataset.category;
productCards.forEach(card => {
if (category === 'all') {
card.style.display = 'block';
} else {
const cardCategories = card.dataset.category.split(' ');
if (cardCategories.includes(category)) {
card.style.display = 'block';
} else {
card.style.display = 'none';
}
}
});
});
});
</script>
</body>
</html>