Spaces:
Running

undefined / projetos.html
iohidubudi's picture
arrume esse codigo
9ed177a verified
Raw History Blame Contribute Delete
6.29 kB
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Projetos - CodeMagician</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
<style>
.glass-effect {
background: rgba(74, 47, 144, 0.15);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.gradient-bg {
background: linear-gradient(135deg, #4a2f90 0%, #1a1a40 100%);
}
.project-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.3);
}
</style>
</head>
<body class="min-h-screen gradient-bg text-white font-sans">
<div id="vanta-bg" class="fixed inset-0 z-0"></div>
<nav class="relative z-10 glass-effect rounded-full mx-4 mt-4 p-3">
<div class="container mx-auto flex justify-between items-center">
<div class="flex items-center">
<i data-feather="code" class="text-purple-400 mr-2"></i>
<span class="text-xl font-bold">CodeMagician</span>
</div>
<div class="hidden md:flex space-x-6">
<a href="index.html#services" class="hover:text-purple-300 transition-colors">Serviços</a>
<a href="index.html#portfolio" class="hover:text-purple-300 transition-colors">Portfólio</a>
<a href="projetos.html" class="hover:text-purple-300 transition-colors">Projetos</a>
<a href="index.html#contact" class="hover:text-purple-300 transition-colors">Contato</a>
</div>
<button onclick="window.location.href='index.html#contact'" class="bg-purple-600 hover:bg-purple-700 px-6 py-2 rounded-full transition-colors">
Fazer Pedido
</button>
</div>
</nav>
<main class="relative z-10 container mx-auto px-4 py-16">
<section class="text-center mb-12">
<h1 class="text-4xl md:text-6xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-r from-purple-400 to-blue-400">
Meus Projetos
</h1>
<p class="text-xl text-purple-200 mb-8 max-w-3xl mx-auto">
Confira abaixo alguns dos projetos que desenvolvi. Cada projeto representa uma solução única e personalizada.
</p>
</section>
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8" id="projectsGrid">
<!-- Projects will be loaded here -->
<div class="text-center text-purple-300">Carregando projetos...</div>
</div>
</main>
<footer class="relative z-10 glass-effect mt-20 py-8">
<div class="container mx-auto px-4 text-center">
<p>&copy; 2024 CodeMagician. Todos os direitos reservados.</p>
</div>
</footer>
<script>
// Vanta.js background
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x6d28d9,
backgroundColor: 0x1a1a40,
points: 12.00,
maxDistance: 22.00,
spacing: 17.00
});
// Load projects from localStorage
function loadProjects() {
const projectsGrid = document.getElementById('projectsGrid');
const projects = JSON.parse(localStorage.getItem('projects')) || [
{
title: "E-commerce Moderno",
category: "Website",
description: "Loja virtual completa com sistema de pagamentos e gestão de produtos.",
image: "http://static.photos/technology/640x360/1",
technologies: ["React", "Node.js", "MongoDB"]
},
{
title: "App de Restaurante",
category: "Aplicativo",
description: "Aplicativo para pedidos online com integração de delivery.",
image: "http://static.photos/food/640x360/2",
technologies: ["React Native", "Firebase"]
},
{
title: "Cardápio Digital",
category: "Cardápio",
description: "Cardápio interativo para restaurante com atualizações em tempo real.",
image: "http://static.photos/restaurant/640x360/3",
technologies: ["HTML/CSS", "JavaScript"]
}
];
projectsGrid.innerHTML = '';
projects.forEach(project => {
projectsGrid.innerHTML += `
<div class="project-card glass-effect rounded-2xl overflow-hidden group transition-all">
<img src="${project.image}" alt="${project.title}" class="w-full h-48 object-cover group-hover:scale-105 transition-transform">
<div class="p-6">
<h3 class="font-semibold text-xl mb-2">${project.title}</h3>
<span class="text-sm text-purple-300 bg-purple-900/30 px-2 py-1 rounded-full">${project.category}</span>
<p class="text-purple-200 mt-3 mb-4">${project.description}</p>
<div class="flex flex-wrap gap-2">
${project.technologies.map(tech =>
`<span class="text-xs bg-purple-600/30 px-2 py-1 rounded">${tech}</span>`
).join('')}
</div>
</div>
</div>
`;
});
}
// Initialize
document.addEventListener('DOMContentLoaded', function() {
feather.replace();
loadProjects();
});
</script>
</body>
</html>