storm-tournament

byBRAZIL

Main Prompt: Tournament App Generation You are an expert full-stack developer. Your task is to generate a fully working mobile-first Tournament Web App called "Adept Play, using ONLY the following technologies: HTML Tailwind CSS JavaScript (for basic UI/UX only, NO AJAX) PHP MySQL DB Font Awesome (only for icons) NO external frameworks like React, Vue, Laravel, Bootstrap, jQuery, or AJAX should be used. All actions should be handled through traditional PHP form submissions and page reloads. The design should resemble a real mobile application user-friend Ly, responsive, and clean UI. All text selection, right-click, and zoom in/out must be disabled using JavaScript. ## APP STRUCTURE OVERVIEW: Root Folder соmmоn header.php bottom.php config.php admin login.php index.php tournament.php manage tournament.php user.php setting.php common header.php bottom.php login.php index.php my tournaments.php wallet.php profile.php install.php L.htaccess (optional) ##COMMON INCLUSIONS (User & Admin Panel) config.php one centralized DB connection (host: 127.0.0.1, user: root, pass: root) "header.php contains the top navigation, logo, and user\"s wallet balance. bottom.php Wallet, Profile). fixed bottom navigation with icons (Home, My Tournaments, All UI components must use Tailwind classes only, and Font Awesome for icons. Use a modern dark theme. ##USER PANEL Pages Design & Functionality ### 1. login.php Design: Two tabs Login and Sign Up in the same file. Fields: Username, Password Username, Email, Password (for signup). Use standard PHP form submission. Show errors/success messages on the same nage after reload. On success, redirect to index.php. ### 2. index.php (Homepage) Display a list of all \"Upcoming tournaments in a card grid format Card: Tournament Title, Game Name, Match Time, Entry Fee, Prize Pool. Each card must have a "Join Now button inside a <form> tag. Clicking "Join Now" should submit the form to the same page ("index.php"). The PHP logic at the top of the file will handle the joining process: check balance, deduct fee, and add user to participants. Show a success/error message after the page reloads. ### 3. mv_tournaments.php Use a two-tab layout: **\"Upcoming/Live\" tab: Shows tournaments the user has joined that are not yet completed. If a tournament is live, it should display the "Room ID and Password** **\"Completed\" tab: Shows ws a history of all tournaments the user has played, along with their results (e.g., \"Winner\", \"Participated\"). ### 4. wallet.php Display current wallet balance in a large, prominent card. Show a transaction history list. Include "Add Money" and "Withdraw" buttons (dummy buttons). ### 5. profile.php Show and Edit: Username, Email. Change password section. Logout button. ## ADMIN PANEL Pages Design & Functions www 1. login.php Simple, secure login page for the admin using a standard PHP form. Fields: Username & Password. ### 2. Index.php (Admin Dashboard) Mobile-app style Admin Dashboard with clean, modern UI. Show quick stats using small Tailwind grid cards: Total Users, Total Tournaments, Total Prize Distributed, Total Revenue (Commission). Include a quick-action button: "Create New Tournament\". ### 3. tournament.php A standard PHP form to add a new tournament. Fields: Title, Game Name, Entry Fee, Prize Pool, Match Time, Commission Percentage (e.g., 20%). On submission, the page reloads and shows a success/error message. Below the form, show a list of all created tournaments with options to Edit/Delete (leading to other pages or handled with GET/POST requests). ### 4. manage_tournament.php This is the core management page for a single tournament. Display a list of all users who have 301ned. A form to enter/update the Room ID" and "Room Password**. A form with a dropdown menu of all participants to select the winner. A button "Declare Winner & Distribute Prize\". when the form is submitted, the PHP logic will: 1. Add the prize pool amount to the winner\"s wallet. 2. Change the tournament status to \\\\\\\'Completed\\\\\\\ 3. Show a success message after the page reloads. ### 5. user.php List all registered users with their current wallet balance. Option to view a user\'s match history or block the user. ### 6. setting.php Update admin info/password using a standard PHP form. #FEATURES TO IMPLEMENT: All actions are handled by traditional PHP form submissions (POST/GET). "install.php" must: Create the database and all required tables. Insert default admin credentials (admin/admin123). Redirect to Login.php after successful installation. ## DATABASE SCHEMA (Install File Should Auto-Create) "admin" (id, username, password) "users" (id, username, email, password, wallet balance, created_at) tournaments (id, title, game name, entry_fee, prize_pool, match_time, room_id, room password, status, created_at] participants (id, user id, tournament_id) transactions (id, user id, amount, type, description, created at) (type: \\\\\\\"credit\\\\\\\' or \\\\\\\'debit\\\\\\\ #SECURITY & USER EXPERIENCE Disable right-click, text selection, and zoom using 35. Use overflow-hidden", select-none", and custom 15 for a native app feel. Validate all forms on the server-side (۲۱۲). Use PHP sessions for login tracking. Use prepared statements in PHP to prevent SQL injection. Clean redirects on login/logout. Consistent dark theme, color scheme, and typography across the app. (ALL pricing/wallet values should be displayed in Indian Rupees (1) format. Your output should be a complete ready-to-run project, structured into pages and folders.) ##FINAL DELIVERABLE: Generate all required code files and folders as described above. For each File, clearly mention: The Filename The folder/directory where it should be saved The complete source code/content of the file All PHP files with integrated logic. The complete SOL schema inside install.php The project should be a single folder, ready to be uploaded and run on a Localhost or hosting server.

LandingLoginAdmin Login
Landing

Comments (0)

No comments yet. Be the first!

Architecture

No Services Diagrams Yet

Architecture diagrams will be automatically generated when the Project Manager creates tasks for your project.

Landing design preview
Admin Login: Authenticate
Admin Login: Verify 2FA
Dashboard: View Stats
Tournaments: Create Tournament
Tournaments: Manage Tournament
Manage Tournament: Set Room Credentials
Manage Tournament: Declare Winner
Payments: View Logs
Payments: Approve Payment
Payments: Reject Payment
Payments: Change QR Code
Payments: Toggle Payment Methods
Users: View All Users
Users: Manage Wallet
Users: Ban Account
Referrals: Manage Rewards
Referrals: Adjust Reward Amounts
Fraud Monitor: View Reports
Fraud Monitor: Ban Device
Analytics: View Revenue
Settings: Update Admin Info