Spaces:
Running
Running
| ```php | |
| session_start(); | |
| require_once 'includes/config.php'; | |
| // Check if user is logged in | |
| $isLoggedIn = isset($_SESSION['user_id']); | |
| $userRole = $isLoggedIn ? $_SESSION['user_role'] : ''; | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>United Tagaligtas Eagles Club</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| 500: '#6366f1', | |
| 600: '#4f46e5' | |
| }, | |
| secondary: { | |
| 500: '#8b5cf6', | |
| 600: '#7c3aed' | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body class="bg-gray-50 min-h-screen flex flex-col"> | |
| <custom-navbar></custom-navbar> | |
| <main class="flex-grow container mx-auto px-4 py-8"> | |
| <div class="max-w-4xl mx-auto text-center"> | |
| <h1 class="text-4xl md:text-5xl font-bold text-gray-800 mb-6">Welcome to United Tagaligtas Eagles Club</h1> | |
| <p class="text-xl text-gray-600 mb-8">Your centralized platform for brotherhood management, finances, and member engagement</p> | |
| <?php if (!$isLoggedIn): ?> | |
| <div class="flex flex-col md:flex-row justify-center gap-6"> | |
| <a href="/login.php" class="bg-primary-500 hover:bg-primary-600 text-white font-semibold py-3 px-6 rounded-lg shadow-md transition duration-300 flex items-center justify-center gap-2"> | |
| <i data-feather="log-in"></i> | |
| Login | |
| </a> | |
| <a href="/register.php" class="bg-secondary-500 hover:bg-secondary-600 text-white font-semibold py-3 px-6 rounded-lg shadow-md transition duration-300 flex items-center justify-center gap-2"> | |
| <i data-feather="user-plus"></i> | |
| Register | |
| </a> | |
| </div> | |
| <?php endif; ?> | |
| </div> | |
| <div class="mt-16 grid grid-cols-1 md:grid-cols-3 gap-8"> | |
| <div class="bg-white p-6 rounded-xl shadow-md"> | |
| <div class="text-primary-500 mb-4"> | |
| <i data-feather="dollar-sign" class="w-8 h-8"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-2">Manage Finances</h3> | |
| <p class="text-gray-600">Track community expenses, donations, and member dues efficiently.</p> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl shadow-md"> | |
| <div class="text-primary-500 mb-4"> | |
| <i data-feather="users" class="w-8 h-8"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-2">Member Profiles</h3> | |
| <p class="text-gray-600">View and manage member information and payment history.</p> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl shadow-md"> | |
| <div class="text-primary-500 mb-4"> | |
| <i data-feather="pie-chart" class="w-8 h-8"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-2">Financial Reports</h3> | |
| <p class="text-gray-600">Generate detailed reports on community finances and balances.</p> | |
| </div> | |
| </div> | |
| </main> | |
| <custom-footer></custom-footer> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script src="script.js"></script> | |
| <script> | |
| feather.replace(); | |
| </script> | |
| </body> | |
| </html> | |
| ``` |