faça a area de login, senha e cadastro mais bonito - Follow Up Deployment
Browse files- index.html +91 -2
index.html
CHANGED
|
@@ -36,6 +36,10 @@
|
|
| 36 |
background-clip: text;
|
| 37 |
color: transparent;
|
| 38 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
</style>
|
| 40 |
</head>
|
| 41 |
<body class="bg-gray-100">
|
|
@@ -50,12 +54,14 @@
|
|
| 50 |
<i class="fas fa-bars text-2xl"></i>
|
| 51 |
</button>
|
| 52 |
|
| 53 |
-
<nav class="hidden md:flex space-x-8">
|
| 54 |
<a href="#home" class="hover:text-yellow-400 transition">Início</a>
|
| 55 |
<a href="#about" class="hover:text-yellow-400 transition">Sobre</a>
|
| 56 |
<a href="#classes" class="hover:text-yellow-400 transition">Aulas</a>
|
| 57 |
<a href="#gallery" class="hover:text-yellow-400 transition">Galeria</a>
|
| 58 |
<a href="#contact" class="hover:text-yellow-400 transition">Contato</a>
|
|
|
|
|
|
|
| 59 |
</nav>
|
| 60 |
</div>
|
| 61 |
|
|
@@ -67,6 +73,8 @@
|
|
| 67 |
<a href="#classes" class="hover:text-yellow-400 transition">Aulas</a>
|
| 68 |
<a href="#gallery" class="hover:text-yellow-400 transition">Galeria</a>
|
| 69 |
<a href="#contact" class="hover:text-yellow-400 transition">Contato</a>
|
|
|
|
|
|
|
| 70 |
</div>
|
| 71 |
</div>
|
| 72 |
</header>
|
|
@@ -571,13 +579,94 @@
|
|
| 571 |
<a href="#" class="hover:text-yellow-400 transition"><i class="fab fa-instagram"></i></a>
|
| 572 |
<a href="#" class="hover:text-yellow-400 transition"><i class="fab fa-youtube"></i></a>
|
| 573 |
</div>
|
| 574 |
-
<p class="text-sm text-blue-200">©
|
| 575 |
</div>
|
| 576 |
</div>
|
| 577 |
</div>
|
| 578 |
</footer>
|
| 579 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 580 |
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 581 |
// Mobile menu toggle
|
| 582 |
document.getElementById('mobile-menu-button').addEventListener('click', function() {
|
| 583 |
const menu = document.getElementById('mobile-menu');
|
|
|
|
| 36 |
background-clip: text;
|
| 37 |
color: transparent;
|
| 38 |
}
|
| 39 |
+
|
| 40 |
+
#auth-modal {
|
| 41 |
+
transition: opacity 0.3s ease;
|
| 42 |
+
}
|
| 43 |
</style>
|
| 44 |
</head>
|
| 45 |
<body class="bg-gray-100">
|
|
|
|
| 54 |
<i class="fas fa-bars text-2xl"></i>
|
| 55 |
</button>
|
| 56 |
|
| 57 |
+
<nav class="hidden md:flex space-x-8 items-center">
|
| 58 |
<a href="#home" class="hover:text-yellow-400 transition">Início</a>
|
| 59 |
<a href="#about" class="hover:text-yellow-400 transition">Sobre</a>
|
| 60 |
<a href="#classes" class="hover:text-yellow-400 transition">Aulas</a>
|
| 61 |
<a href="#gallery" class="hover:text-yellow-400 transition">Galeria</a>
|
| 62 |
<a href="#contact" class="hover:text-yellow-400 transition">Contato</a>
|
| 63 |
+
<button onclick="openModal('login')" class="bg-transparent border border-yellow-400 text-yellow-400 px-4 py-1 rounded hover:bg-yellow-400 hover:text-blue-900 transition">Login</button>
|
| 64 |
+
<button onclick="openModal('signup')" class="bg-yellow-400 text-blue-900 px-4 py-1 rounded hover:bg-yellow-500 transition">Cadastrar</button>
|
| 65 |
</nav>
|
| 66 |
</div>
|
| 67 |
|
|
|
|
| 73 |
<a href="#classes" class="hover:text-yellow-400 transition">Aulas</a>
|
| 74 |
<a href="#gallery" class="hover:text-yellow-400 transition">Galeria</a>
|
| 75 |
<a href="#contact" class="hover:text-yellow-400 transition">Contato</a>
|
| 76 |
+
<button onclick="openModal('login')" class="bg-transparent border border-yellow-400 text-yellow-400 px-4 py-1 rounded hover:bg-yellow-400 hover:text-blue-900 transition mt-4">Login</button>
|
| 77 |
+
<button onclick="openModal('signup')" class="bg-yellow-400 text-blue-900 px-4 py-1 rounded hover:bg-yellow-500 transition mt-2">Cadastrar</button>
|
| 78 |
</div>
|
| 79 |
</div>
|
| 80 |
</header>
|
|
|
|
| 579 |
<a href="#" class="hover:text-yellow-400 transition"><i class="fab fa-instagram"></i></a>
|
| 580 |
<a href="#" class="hover:text-yellow-400 transition"><i class="fab fa-youtube"></i></a>
|
| 581 |
</div>
|
| 582 |
+
<p class="text-sm text-blue-200">© 2025 Sol da Raça Capoeira. Todos os direitos reservados.</p>
|
| 583 |
</div>
|
| 584 |
</div>
|
| 585 |
</div>
|
| 586 |
</footer>
|
| 587 |
|
| 588 |
+
<!-- Login/Signup Modal -->
|
| 589 |
+
<div id="auth-modal" class="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center hidden">
|
| 590 |
+
<div class="bg-white rounded-lg shadow-xl w-full max-w-md relative">
|
| 591 |
+
<button onclick="closeModal()" class="absolute top-4 right-4 text-gray-500 hover:text-gray-700">
|
| 592 |
+
<i class="fas fa-times text-2xl"></i>
|
| 593 |
+
</button>
|
| 594 |
+
|
| 595 |
+
<div id="login-form" class="p-8">
|
| 596 |
+
<h2 class="text-2xl font-bold text-blue-900 mb-6">Login</h2>
|
| 597 |
+
<form class="space-y-4">
|
| 598 |
+
<div>
|
| 599 |
+
<label for="login-email" class="block text-gray-700 mb-1">E-mail</label>
|
| 600 |
+
<input type="email" id="login-email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 601 |
+
</div>
|
| 602 |
+
<div>
|
| 603 |
+
<label for="login-password" class="block text-gray-700 mb-1">Senha</label>
|
| 604 |
+
<input type="password" id="login-password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 605 |
+
</div>
|
| 606 |
+
<button type="submit" class="w-full bg-blue-900 text-white py-2 px-4 rounded-lg hover:bg-blue-800 transition">Entrar</button>
|
| 607 |
+
</form>
|
| 608 |
+
<p class="mt-4 text-center text-gray-600">
|
| 609 |
+
Não tem conta? <a href="#" onclick="switchToSignup()" class="text-blue-600 hover:underline">Cadastre-se</a>
|
| 610 |
+
</p>
|
| 611 |
+
</div>
|
| 612 |
+
|
| 613 |
+
<div id="signup-form" class="p-8 hidden">
|
| 614 |
+
<h2 class="text-2xl font-bold text-blue-900 mb-6">Cadastrar</h2>
|
| 615 |
+
<form class="space-y-4">
|
| 616 |
+
<div>
|
| 617 |
+
<label for="signup-name" class="block text-gray-700 mb-1">Nome Completo</label>
|
| 618 |
+
<input type="text" id="signup-name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 619 |
+
</div>
|
| 620 |
+
<div>
|
| 621 |
+
<label for="signup-email" class="block text-gray-700 mb-1">E-mail</label>
|
| 622 |
+
<input type="email" id="signup-email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 623 |
+
</div>
|
| 624 |
+
<div>
|
| 625 |
+
<label for="signup-password" class="block text-gray-700 mb-1">Senha</label>
|
| 626 |
+
<input type="password" id="signup-password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 627 |
+
</div>
|
| 628 |
+
<div>
|
| 629 |
+
<label for="signup-confirm" class="block text-gray-700 mb-1">Confirmar Senha</label>
|
| 630 |
+
<input type="password" id="signup-confirm" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 631 |
+
</div>
|
| 632 |
+
<button type="submit" class="w-full bg-yellow-500 text-blue-900 py-2 px-4 rounded-lg hover:bg-yellow-600 transition">Cadastrar</button>
|
| 633 |
+
</form>
|
| 634 |
+
<p class="mt-4 text-center text-gray-600">
|
| 635 |
+
Já tem conta? <a href="#" onclick="switchToLogin()" class="text-blue-600 hover:underline">Faça login</a>
|
| 636 |
+
</p>
|
| 637 |
+
</div>
|
| 638 |
+
</div>
|
| 639 |
+
</div>
|
| 640 |
+
|
| 641 |
<script>
|
| 642 |
+
// Modal functions
|
| 643 |
+
function openModal(formType) {
|
| 644 |
+
const modal = document.getElementById('auth-modal');
|
| 645 |
+
modal.classList.remove('hidden');
|
| 646 |
+
|
| 647 |
+
if (formType === 'login') {
|
| 648 |
+
document.getElementById('login-form').classList.remove('hidden');
|
| 649 |
+
document.getElementById('signup-form').classList.add('hidden');
|
| 650 |
+
} else {
|
| 651 |
+
document.getElementById('signup-form').classList.remove('hidden');
|
| 652 |
+
document.getElementById('login-form').classList.add('hidden');
|
| 653 |
+
}
|
| 654 |
+
}
|
| 655 |
+
|
| 656 |
+
function closeModal() {
|
| 657 |
+
document.getElementById('auth-modal').classList.add('hidden');
|
| 658 |
+
}
|
| 659 |
+
|
| 660 |
+
function switchToSignup() {
|
| 661 |
+
document.getElementById('login-form').classList.add('hidden');
|
| 662 |
+
document.getElementById('signup-form').classList.remove('hidden');
|
| 663 |
+
}
|
| 664 |
+
|
| 665 |
+
function switchToLogin() {
|
| 666 |
+
document.getElementById('signup-form').classList.add('hidden');
|
| 667 |
+
document.getElementById('login-form').classList.remove('hidden');
|
| 668 |
+
}
|
| 669 |
+
|
| 670 |
// Mobile menu toggle
|
| 671 |
document.getElementById('mobile-menu-button').addEventListener('click', function() {
|
| 672 |
const menu = document.getElementById('mobile-menu');
|