frefre / index.html
devashsisaulia's picture
1. Home Screen / Tournament List Displays a clean list of upcoming/ongoing tournaments with cards showing date, mode (solo/duo/squad), entry fee, and prize pool. Often features a dynamic banner at the top highlighting featured tournaments. Bottom navigation bar is a consistent element (see Wallet section next). 2. Bottom Navigation Bar (Icon Bar) Always accessible, usually with 4–5 icons: Home, Tournaments, Wallet, Profile, perhaps Notifications. Icons are universally recognizable—trophy for tournaments, wallet for funds—ensuring easy access across the app. 3. Wallet Screen Opens upon tapping the Wallet icon in the bottom bar. Top of screen shows current balance prominently. Below that, two main buttons: "Add Funds" and "Withdraw". Further down, a scrollable Transaction History or Balance Breakdown is displayed. 4. Tournament Details / Registration View Provides full match info: time, entry requirements, rewards, participants. Includes a clear "Join" or "Register" button. After joining, status updates and QR codes or room details appear. 🧩 UI Flow Breakdown Screen Top/Layout Middle Bottom/UI Element Home App header & banner Tournament cards Bottom nav bar Tournaments Filter tabs (Ongoing/Upcoming) List view of cards (same nav bar) Wallet Balance display Add/Withdraw buttons Transaction history (scroll) Profile/Settings Avatar + name Stats, past tournaments Logout/settings icons 🔍 Key Design Elements Icon Bar Position: Always fixed at the bottom—makes it easy to switch between main sections. Visual Hierarchy: Top sections use bold colors or highlights (e.g. balance in green), with neat icons beneath. Color Themes: Dark or vibrant backgrounds (midnight blue, purple) help gaming-focused icons and text pop. Interactive Elements: Buttons are large, with high contrast (e.g. yellow “Join” button against dark card). 💡 AI-Assisted UI Tools Describing your design through AI-assisted tools (like Figma + AI plugin or prompt-based generators) can help prototype screens quickly: Prompt example: "Create a bottom nav bar with 4 icons: Home, Tournaments (trophy), Wallet, Profile. Home shows a list of tournament cards with 'Join' buttons. Wallet screen shows balance, Add Funds, Withdraw buttons, and a list of past transactions." This will produce wireframe suggestions and realistic mockups for each screen layout. ✅ Quick Recap of Where the Icon Bar Lies Position: Bottom of every main screen. Icons used: 🏠 Home 🏆 Tournaments 💰 Wallet 👤 Profile Wallet access: Tap the wallet icon to open a screen with balance at top, followed by fund management buttons and history. - Initial Deployment
1562258 verified
Raw History Blame Contribute Delete
24.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tournament App</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* Custom animations */
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
.pulse:hover {
animation: pulse 1.5s infinite;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: #1a202c;
}
::-webkit-scrollbar-thumb {
background: #4a5568;
border-radius: 3px;
}
</style>
</head>
<body class="bg-gray-900 text-white min-h-screen flex flex-col">
<!-- Main Content Area -->
<div class="flex-1 pb-16">
<!-- Home Screen (default view) -->
<div id="home-screen" class="page">
<!-- Featured Banner -->
<div class="relative h-48 bg-gradient-to-r from-purple-900 to-blue-800 rounded-b-3xl overflow-hidden mb-6">
<div class="absolute inset-0 flex items-center justify-center p-6">
<div class="text-center">
<h2 class="text-2xl font-bold mb-2">MEGA TOURNAMENT</h2>
<p class="text-sm opacity-90 mb-3">$10,000 Prize Pool</p>
<button class="bg-yellow-500 hover:bg-yellow-600 text-black font-bold py-2 px-6 rounded-full text-sm transition-all">
Join Now
</button>
</div>
</div>
<div class="absolute bottom-0 left-0 right-0 h-8 bg-gradient-to-t from-gray-900 to-transparent"></div>
</div>
<!-- Upcoming Tournaments -->
<div class="px-4">
<h3 class="text-xl font-bold mb-4 flex items-center">
<i class="fas fa-calendar-alt mr-2 text-blue-400"></i> Upcoming Events
</h3>
<!-- Tournament Cards -->
<div class="grid gap-4">
<!-- Card 1 -->
<div class="bg-gray-800 rounded-xl p-4 border-l-4 border-blue-500 transform hover:-translate-y-1 transition-all duration-200">
<div class="flex justify-between items-start mb-2">
<div>
<h4 class="font-bold">Friday Night Showdown</h4>
<p class="text-sm text-gray-400">May 12, 8:00 PM EST</p>
</div>
<span class="bg-blue-900 text-blue-300 text-xs px-2 py-1 rounded">Solo</span>
</div>
<div class="flex justify-between items-center mt-4">
<div>
<p class="text-xs text-gray-400">Entry Fee</p>
<p class="font-bold">$5.00</p>
</div>
<div>
<p class="text-xs text-gray-400">Prize Pool</p>
<p class="font-bold text-green-400">$1,200</p>
</div>
<button class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-lg text-sm font-medium transition-all">
Details
</button>
</div>
</div>
<!-- Card 2 -->
<div class="bg-gray-800 rounded-xl p-4 border-l-4 border-purple-500 transform hover:-translate-y-1 transition-all duration-200">
<div class="flex justify-between items-start mb-2">
<div>
<h4 class="font-bold">Weekend Warriors</h4>
<p class="text-sm text-gray-400">May 14, 2:00 PM EST</p>
</div>
<span class="bg-purple-900 text-purple-300 text-xs px-2 py-1 rounded">Duo</span>
</div>
<div class="flex justify-between items-center mt-4">
<div>
<p class="text-xs text-gray-400">Entry Fee</p>
<p class="font-bold">$10.00</p>
</div>
<div>
<p class="text-xs text-gray-400">Prize Pool</p>
<p class="font-bold text-green-400">$2,500</p>
</div>
<button class="bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded-lg text-sm font-medium transition-all">
Details
</button>
</div>
</div>
<!-- Card 3 -->
<div class="bg-gray-800 rounded-xl p-4 border-l-4 border-yellow-500 transform hover:-translate-y-1 transition-all duration-200">
<div class="flex justify-between items-start mb-2">
<div>
<h4 class="font-bold">Pro-Am Challenge</h4>
<p class="text-sm text-gray-400">May 16, 6:00 PM EST</p>
</div>
<span class="bg-yellow-900 text-yellow-300 text-xs px-2 py-1 rounded">Squad</span>
</div>
<div class="flex justify-between items-center mt-4">
<div>
<p class="text-xs text-gray-400">Entry Fee</p>
<p class="font-bold">$20.00</p>
</div>
<div>
<p class="text-xs text-gray-400">Prize Pool</p>
<p class="font-bold text-green-400">$5,000</p>
</div>
<button class="bg-yellow-600 hover:bg-yellow-700 text-black py-2 px-4 rounded-lg text-sm font-medium transition-all">
Details
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Tournaments Screen -->
<div id="tournaments-screen" class="page hidden">
<!-- Filter Tabs -->
<div class="sticky top-0 z-10 bg-gray-900 pt-2 px-4">
<div class="flex border-b border-gray-700">
<button class="filter-tab active flex-1 py-3 font-medium text-center border-b-2 border-blue-500">
Ongoing
</button>
<button class="filter-tab flex-1 py-3 font-medium text-center text-gray-400">
Upcoming
</button>
</div>
</div>
<!-- Tournament List -->
<div class="p-4">
<!-- Ongoing Tournaments -->
<div id="ongoing-tournaments">
<!-- Tournament 1 -->
<div class="bg-gray-800 rounded-xl p-4 mb-4">
<div class="flex justify-between items-start mb-3">
<div>
<h4 class="font-bold text-lg">Daily Grind</h4>
<p class="text-sm text-gray-400">Started 30 mins ago</p>
</div>
<span class="bg-green-900 text-green-300 text-xs px-2 py-1 rounded">Live</span>
</div>
<div class="flex justify-between items-center mb-3">
<div class="flex items-center">
<i class="fas fa-users mr-2 text-blue-400"></i>
<span>24/32 players</span>
</div>
<span class="bg-blue-900 text-blue-300 text-xs px-2 py-1 rounded">Solo</span>
</div>
<div class="flex justify-between items-center">
<div>
<p class="text-xs text-gray-400">Prize Pool</p>
<p class="font-bold text-green-400">$800</p>
</div>
<button class="bg-green-600 hover:bg-green-700 text-white py-2 px-6 rounded-full text-sm font-medium transition-all pulse">
Join Now
</button>
</div>
</div>
<!-- Tournament 2 -->
<div class="bg-gray-800 rounded-xl p-4 mb-4">
<div class="flex justify-between items-start mb-3">
<div>
<h4 class="font-bold text-lg">Duo Dash</h4>
<p class="text-sm text-gray-400">Started 1 hour ago</p>
</div>
<span class="bg-green-900 text-green-300 text-xs px-2 py-1 rounded">Live</span>
</div>
<div class="flex justify-between items-center mb-3">
<div class="flex items-center">
<i class="fas fa-users mr-2 text-purple-400"></i>
<span>14/20 teams</span>
</div>
<span class="bg-purple-900 text-purple-300 text-xs px-2 py-1 rounded">Duo</span>
</div>
<div class="flex justify-between items-center">
<div>
<p class="text-xs text-gray-400">Prize Pool</p>
<p class="font-bold text-green-400">$1,500</p>
</div>
<button class="bg-green-600 hover:bg-green-700 text-white py-2 px-6 rounded-full text-sm font-medium transition-all pulse">
Join Now
</button>
</div>
</div>
</div>
<!-- Upcoming Tournaments (hidden by default) -->
<div id="upcoming-tournaments" class="hidden">
<!-- Same structure as home screen tournament cards -->
</div>
</div>
</div>
<!-- Wallet Screen -->
<div id="wallet-screen" class="page hidden">
<!-- Balance Display -->
<div class="bg-gradient-to-r from-blue-900 to-purple-900 p-6 rounded-b-3xl mb-6">
<h3 class="text-gray-300 text-sm mb-1">Your Balance</h3>
<div class="flex items-end justify-between">
<p class="text-4xl font-bold">$245.50</p>
<i class="fas fa-wallet text-3xl opacity-50"></i>
</div>
</div>
<!-- Action Buttons -->
<div class="flex justify-around px-6 mb-8">
<button class="bg-green-600 hover:bg-green-700 text-white py-3 px-6 rounded-full font-medium flex items-center transition-all">
<i class="fas fa-plus-circle mr-2"></i> Add Funds
</button>
<button class="bg-blue-600 hover:bg-blue-700 text-white py-3 px-6 rounded-full font-medium flex items-center transition-all">
<i class="fas fa-money-bill-wave mr-2"></i> Withdraw
</button>
</div>
<!-- Transaction History -->
<div class="px-4">
<h3 class="text-lg font-bold mb-4 flex items-center">
<i class="fas fa-history mr-2 text-blue-400"></i> Recent Transactions
</h3>
<div class="space-y-3 max-h-96 overflow-y-auto pr-2">
<!-- Transaction 1 -->
<div class="bg-gray-800 rounded-lg p-3 flex items-center justify-between">
<div class="flex items-center">
<div class="bg-blue-900 p-2 rounded-full mr-3">
<i class="fas fa-arrow-down text-blue-300"></i>
</div>
<div>
<p class="font-medium">Tournament Winnings</p>
<p class="text-xs text-gray-400">May 5, 2023</p>
</div>
</div>
<p class="text-green-400 font-bold">+$120.00</p>
</div>
<!-- Transaction 2 -->
<div class="bg-gray-800 rounded-lg p-3 flex items-center justify-between">
<div class="flex items-center">
<div class="bg-purple-900 p-2 rounded-full mr-3">
<i class="fas fa-trophy text-purple-300"></i>
</div>
<div>
<p class="font-medium">Tournament Entry</p>
<p class="text-xs text-gray-400">May 3, 2023</p>
</div>
</div>
<p class="text-red-400 font-bold">-$10.00</p>
</div>
<!-- Transaction 3 -->
<div class="bg-gray-800 rounded-lg p-3 flex items-center justify-between">
<div class="flex items-center">
<div class="bg-green-900 p-2 rounded-full mr-3">
<i class="fas fa-coins text-green-300"></i>
</div>
<div>
<p class="font-medium">Deposit</p>
<p class="text-xs text-gray-400">Apr 28, 2023</p>
</div>
</div>
<p class="text-green-400 font-bold">+$50.00</p>
</div>
<!-- Transaction 4 -->
<div class="bg-gray-800 rounded-lg p-3 flex items-center justify-between">
<div class="flex items-center">
<div class="bg-yellow-900 p-2 rounded-full mr-3">
<i class="fas fa-arrow-up text-yellow-300"></i>
</div>
<div>
<p class="font-medium">Withdrawal</p>
<p class="text-xs text-gray-400">Apr 20, 2023</p>
</div>
</div>
<p class="text-red-400 font-bold">-$75.50</p>
</div>
<!-- Transaction 5 -->
<div class="bg-gray-800 rounded-lg p-3 flex items-center justify-between">
<div class="flex items-center">
<div class="bg-blue-900 p-2 rounded-full mr-3">
<i class="fas fa-arrow-down text-blue-300"></i>
</div>
<div>
<p class="font-medium">Tournament Winnings</p>
<p class="text-xs text-gray-400">Apr 15, 2023</p>
</div>
</div>
<p class="text-green-400 font-bold">+$200.00</p>
</div>
</div>
</div>
</div>
<!-- Profile Screen -->
<div id="profile-screen" class="page hidden">
<!-- Profile Header -->
<div class="bg-gradient-to-r from-purple-900 to-blue-800 p-6 rounded-b-3xl mb-6 text-center">
<div class="w-24 h-24 bg-gray-300 rounded-full mx-auto mb-4 overflow-hidden border-4 border-white">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Profile" class="w-full h-full object-cover">
</div>
<h2 class="text-2xl font-bold">JohnDoe92</h2>
<p class="text-gray-300">Pro Player</p>
</div>
<!-- Stats -->
<div class="px-4 mb-8">
<h3 class="text-lg font-bold mb-4 flex items-center">
<i class="fas fa-chart-line mr-2 text-purple-400"></i> Your Stats
</h3>
<div class="grid grid-cols-2 gap-4">
<div class="bg-gray-800 rounded-xl p-4 text-center">
<p class="text-gray-400 text-sm">Tournaments</p>
<p class="text-2xl font-bold">47</p>
</div>
<div class="bg-gray-800 rounded-xl p-4 text-center">
<p class="text-gray-400 text-sm">Wins</p>
<p class="text-2xl font-bold text-green-400">12</p>
</div>
<div class="bg-gray-800 rounded-xl p-4 text-center">
<p class="text-gray-400 text-sm">Win Rate</p>
<p class="text-2xl font-bold">25.5%</p>
</div>
<div class="bg-gray-800 rounded-xl p-4 text-center">
<p class="text-gray-400 text-sm">Earnings</p>
<p class="text-2xl font-bold text-green-400">$3,245</p>
</div>
</div>
</div>
<!-- Past Tournaments -->
<div class="px-4">
<h3 class="text-lg font-bold mb-4 flex items-center">
<i class="fas fa-trophy mr-2 text-yellow-400"></i> Recent Tournaments
</h3>
<div class="space-y-3">
<div class="bg-gray-800 rounded-lg p-3">
<div class="flex justify-between items-center mb-2">
<h4 class="font-medium">Weekend Warriors</h4>
<span class="bg-green-900 text-green-300 text-xs px-2 py-1 rounded">1st Place</span>
</div>
<p class="text-sm text-gray-400 mb-1">May 7, 2023 • Duo</p>
<p class="text-green-400 font-bold">+$450.00</p>
</div>
<div class="bg-gray-800 rounded-lg p-3">
<div class="flex justify-between items-center mb-2">
<h4 class="font-medium">Friday Night Showdown</h4>
<span class="bg-blue-900 text-blue-300 text-xs px-2 py-1 rounded">5th Place</span>
</div>
<p class="text-sm text-gray-400 mb-1">Apr 29, 2023 • Solo</p>
<p class="text-green-400 font-bold">+$75.00</p>
</div>
</div>
</div>
<!-- Settings Button -->
<div class="px-4 mt-8">
<button class="w-full bg-gray-800 hover:bg-gray-700 text-white py-3 px-4 rounded-lg font-medium flex items-center justify-center transition-all">
<i class="fas fa-cog mr-2"></i> Settings
</button>
</div>
</div>
</div>
<!-- Bottom Navigation Bar -->
<div class="fixed bottom-0 left-0 right-0 bg-gray-800 border-t border-gray-700 flex justify-around py-2 z-20">
<button class="nav-btn active flex flex-col items-center justify-center px-4 py-2 text-blue-400" data-target="home-screen">
<i class="fas fa-home text-xl mb-1"></i>
<span class="text-xs">Home</span>
</button>
<button class="nav-btn flex flex-col items-center justify-center px-4 py-2 text-gray-400" data-target="tournaments-screen">
<i class="fas fa-trophy text-xl mb-1"></i>
<span class="text-xs">Tournaments</span>
</button>
<button class="nav-btn flex flex-col items-center justify-center px-4 py-2 text-gray-400" data-target="wallet-screen">
<i class="fas fa-wallet text-xl mb-1"></i>
<span class="text-xs">Wallet</span>
</button>
<button class="nav-btn flex flex-col items-center justify-center px-4 py-2 text-gray-400" data-target="profile-screen">
<i class="fas fa-user text-xl mb-1"></i>
<span class="text-xs">Profile</span>
</button>
</div>
<script>
// Navigation functionality
document.querySelectorAll('.nav-btn').forEach(btn => {
btn.addEventListener('click', function() {
// Remove active class from all buttons
document.querySelectorAll('.nav-btn').forEach(b => {
b.classList.remove('active', 'text-blue-400');
b.classList.add('text-gray-400');
});
// Add active class to clicked button
this.classList.add('active', 'text-blue-400');
this.classList.remove('text-gray-400');
// Hide all pages
document.querySelectorAll('.page').forEach(page => {
page.classList.add('hidden');
});
// Show target page
const target = this.getAttribute('data-target');
document.getElementById(target).classList.remove('hidden');
});
});
// Filter tabs functionality (Tournaments screen)
document.querySelectorAll('.filter-tab').forEach(tab => {
tab.addEventListener('click', function() {
document.querySelectorAll('.filter-tab').forEach(t => {
t.classList.remove('active', 'border-blue-500');
t.classList.add('text-gray-400');
});
this.classList.add('active', 'border-blue-500');
this.classList.remove('text-gray-400');
// Toggle between ongoing and upcoming tournaments
if (this.textContent.trim() === 'Ongoing') {
document.getElementById('ongoing-tournaments').classList.remove('hidden');
document.getElementById('upcoming-tournaments').classList.add('hidden');
} else {
document.getElementById('ongoing-tournaments').classList.add('hidden');
document.getElementById('upcoming-tournaments').classList.remove('hidden');
}
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=devashsisaulia/frefre" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>