ui / index.html
Mankeysocks's picture
1. Home Purpose: Provide an overview and quick access to start solo challenges. Contents: Welcome Panel: Player name, avatar, rank/level, and basic stats. Current Trail Info: Name, difficulty, short description. Vehicle Status: Current vehicle name, traction, durability, and readiness check. Challenge Stats: Last run time with date and trail name. Personal best time with date and trail name. Current leaderboard rank and percentile. Start Challenge Button: Enabled only if player is in a valid 4x4 vehicle. Opens confirmation modal before starting. Recent Activity: List of recent runs, earnings, personal bests, or rewards earned. Visual Accents: Tire tracks, rugged design elements, and earthy colors. 2. Group Purpose: Manage multiplayer/group runs. Contents: Create Group Button: Start a new group run session. Join Group: Input or browse available groups to join. Group Member Panel: List current members with avatars and player names. Show ready/not ready status per member. Indicate leader and allow leader controls. Group Chat/Communication Status (optional): Voice link indicators if integrated. Start Challenge Button: Enabled for leader only when all members are ready. Group Stats: Aggregate info like average vehicle condition, trail selected. Notifications: Member join/leave, readiness changes, challenge start. 3. Rentals Purpose: Browse and rent off-road vehicles. Contents: Vehicle Catalog/Grid: Cards or tiles showing each vehicle with: Image/preview. Name and rental price. Basic stats (traction, speed, durability). “Rent Now” button. Selected Vehicle Details: Larger image or 3D preview. In-depth stats and description. Confirmation modal for rental. Rental Status: Indicate active rental, remaining time, or cooldown. Filter/Sort Options: By price, traction, speed, or favorites. Rental History: Past rentals and usage stats (optional). 4. Leaderboard Purpose: Display top players and teams for challenges. Contents: Filter Tabs: Daily, Weekly, All-Time views. Mode Tabs: Solo and Group leaderboards. Ranking List: Player or Team name. Completion time. Trail completed. Date/time of run. Search Function: Find specific players or teams. Personal Ranking Highlight: Show player’s own rank if not in top. Pagination or Infinite Scroll: For browsing large datasets. Visuals: Medals or badges for top ranks, icons for groups or solo. 5. History Purpose: Show player’s past runs and achievements. Contents: Run List: Trail name and date. Time achieved. Rank or position. Rewards earned. Run Details Button: Opens more detailed info or replay ghost (future feature). Stats Summary: Total runs, best time improvement over time. Filters: By trail, date range, or result. Achievements Panel: Badges or milestones earned through runs. Visual Cues: Color-coding for personal bests, failed runs, or record times. - Initial Deployment
e222a95 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TrailBlazer - Off-Road Challenge Manager</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap" rel="stylesheet">
<style>
:root {
--earth-dark: #2C3E2B;
--earth-light: #8B9E7D;
--accent-orange: #E67E22;
--khaki: #C2B280;
--worn-metal: #7D7D7D;
}
body {
font-family: 'Roboto Condensed', sans-serif;
background-color: #1a1a1a;
color: white;
}
.bg-dirt {
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIGhlaWdodD0iMTAwJSI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0iIzJDM0UyQiIvPjxwYXRoIGQ9Ik0wIDI1TDUwIDQwTDEwMCAyNVoiIGZpbGw9IiM0QzVDM0MiIG9wYWNpdHk9IjAuMSIvPjxwYXRoIGQ9Ik0wIDUwTDUwIDY1TDEwMCA1MFoiIGZpbGw9IiM0QzVDM0MiIG9wYWNpdHk9IjAuMSIvPjxwYXRoIGQ9Ik0wIDc1TDUwIDkwTDEwMCA3NVoiIGZpbGw9IiM0QzVDM0MiIG9wYWNpdHk9IjAuMSIvPjwvc3ZnPg==');
}
.btn-metal {
background: linear-gradient(145deg, #6d6d6d, #8d8d8d);
border: 1px solid #5a5a5a;
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.btn-metal:hover {
background: linear-gradient(145deg, #5d5d5d, #7d7d7d);
}
.btn-orange {
background: linear-gradient(145deg, #d35400, #e67e22);
border: 1px solid #a04000;
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.btn-orange:hover {
background: linear-gradient(145deg, #c0392b, #d35400);
}
.border-worn {
border: 1px solid rgba(124, 124, 124, 0.3);
box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}
.tire-track {
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNMTAsNDBjMC0xMCwxMC0xMCwxMC0xMHMxMCwwLDEwLDEwYzAsMTAtMTAsMTAtMTAsMTBTMTAsNTAsMTAsNDB6IE0zMCw0MGMwLTEwLDEwLTEwLDEwLTEwczEwLDAsMTAsMTBjMCwxMC0xMCwxMC0xMCwxMFMzMCw1MCwzMCw0MHogTTUwLDQwYzAtMTAsMTAtMTAsMTAtMTBzMTAsMCwxMCwxMGMwLDEwLTEwLDEwLTEwLDEwUzUwLDUwLDUwLDQweiBNNzAsNDBjMC0xMCwxMC0xMCwxMC0xMHMxMCwwLDEwLDEwYzAsMTAtMTAsMTAtMTAsMTBTNzAsNTAsNzAsNDB6IiBmaWxsPSJub25lIiBzdHJva2U9IiNBMzYwMDAiIHN0cm9rZS13aWR0aD0iMiIvPjwvc3ZnPg==');
background-repeat: repeat-x;
background-size: 100px 20px;
height: 20px;
opacity: 0.5;
}
@media (max-width: 768px) {
.sidebar {
width: 100%;
height: auto;
position: relative;
}
.main-content {
margin-left: 0;
padding: 1rem;
}
.nav-item {
display: inline-block;
margin-right: 1rem;
}
}
</style>
</head>
<body class="bg-dirt">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar Navigation -->
<div class="sidebar w-64 bg-gray-900 bg-opacity-90 text-white flex flex-col border-r border-gray-700">
<div class="p-4 border-b border-gray-700 flex items-center">
<div class="w-12 h-12 bg-orange-600 rounded-full flex items-center justify-center mr-3">
<svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7" />
</svg>
</div>
<h1 class="text-2xl font-bold">TrailBlazer</h1>
</div>
<div class="flex-1 overflow-y-auto p-4">
<div class="space-y-2">
<div class="nav-item active p-3 rounded-lg bg-gray-800 flex items-center cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
</svg>
<span>Home</span>
</div>
<div class="nav-item p-3 rounded-lg hover:bg-gray-800 flex items-center cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" />
</svg>
<span>Group</span>
</div>
<div class="nav-item p-3 rounded-lg hover:bg-gray-800 flex items-center cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4" />
</svg>
<span>Rentals</span>
</div>
<div class="nav-item p-3 rounded-lg hover:bg-gray-800 flex items-center cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
</svg>
<span>Leaderboard</span>
</div>
<div class="nav-item p-3 rounded-lg hover:bg-gray-800 flex items-center cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<span>History</span>
</div>
</div>
<div class="mt-8">
<div class="text-gray-400 uppercase text-xs font-bold mb-2">Current Trail</div>
<div class="bg-gray-800 p-3 rounded-lg">
<div class="flex items-center">
<div class="w-10 h-10 bg-orange-600 rounded-full flex items-center justify-center mr-3">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
</div>
<div>
<div class="font-bold">Mountain Pass</div>
<div class="text-xs text-gray-400">Difficulty: Hard</div>
</div>
</div>
</div>
</div>
</div>
<div class="p-4 border-t border-gray-700">
<div class="flex items-center">
<div class="w-10 h-10 bg-gray-700 rounded-full flex items-center justify-center mr-3 overflow-hidden">
<img src="https://i.imgur.com/JQ6pMfG.png" alt="Player Avatar">
</div>
<div>
<div class="font-bold">John_Doe</div>
<div class="text-xs text-gray-400">Level 12 Off-Roader</div>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="main-content flex-1 overflow-y-auto p-8">
<div class="max-w-6xl mx-auto">
<!-- Status Bar -->
<div class="bg-gray-800 bg-opacity-90 rounded-lg p-4 mb-6 flex justify-between items-center border-worn">
<div class="flex items-center">
<div class="w-12 h-12 bg-gray-700 rounded-full flex items-center justify-center mr-4">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-green-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
</svg>
</div>
<div>
<div class="text-sm text-gray-400">Vehicle Status</div>
<div class="text-xl font-bold">Can-Am Maverick X3</div>
<div class="text-xs text-gray-400">Traction: 92% | Durability: 100%</div>
</div>
</div>
<div class="text-right">
<div class="text-sm text-gray-400">Current Location</div>
<div class="text-xl font-bold">Sandy Shores</div>
<div class="text-xs text-gray-400">Near Mountain Pass trail</div>
</div>
</div>
<!-- Challenge Info -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
<div class="bg-gray-800 bg-opacity-90 rounded-lg p-6 border-worn">
<div class="text-gray-400 mb-2">Last Run</div>
<div class="text-3xl font-bold mb-1">12:45.32</div>
<div class="text-sm text-gray-400">Mountain Pass - 2 days ago</div>
<div class="tire-track mt-4"></div>
</div>
<div class="bg-gray-800 bg-opacity-90 rounded-lg p-6 border-worn">
<div class="text-gray-400 mb-2">Personal Best</div>
<div class="text-3xl font-bold mb-1">11:23.76</div>
<div class="text-sm text-gray-400">Mountain Pass - 1 week ago</div>
<div class="tire-track mt-4"></div>
</div>
<div class="bg-gray-800 bg-opacity-90 rounded-lg p-6 border-worn">
<div class="text-gray-400 mb-2">Current Rank</div>
<div class="text-3xl font-bold mb-1">#27</div>
<div class="text-sm text-gray-400">Top 15% of players</div>
<div class="tire-track mt-4"></div>
</div>
</div>
<!-- Start Challenge -->
<div class="bg-gray-800 bg-opacity-90 rounded-lg p-6 mb-6 border-worn">
<h2 class="text-2xl font-bold mb-4 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2 text-orange-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
Mountain Pass Challenge
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<div class="mb-4">
<div class="flex justify-between text-sm mb-1">
<span>Distance</span>
<span>8.2 km</span>
</div>
</div>
<div class="mb-4">
<div class="flex justify-between text-sm mb-1">
<span>Checkpoints</span>
<span>12</span>
</div>
</div>
<div class="mb-4">
<div class="flex justify-between text-sm mb-1">
<span>Best Time</span>
<span>9:45.21 (ThePro)</span>
</div>
</div>
<div class="mb-6">
<div class="flex justify-between text-sm mb-1">
<span>Reward</span>
<span>$12,500 + 250 XP</span>
</div>
</div>
<div class="text-sm text-gray-400 mb-4">
Navigate through rocky terrain and steep inclines to reach the mountain summit. Watch for loose rocks and sudden drops.
</div>
</div>
<div class="flex flex-col">
<div class="flex-1 bg-gray-700 rounded-lg mb-4 overflow-hidden">
<img src="https://i.imgur.com/8zJ3fQj.jpg" alt="Trail Map" class="w-full h-full object-cover">
</div>
<button id="startChallenge" class="btn-orange py-3 px-6 rounded-lg text-white font-bold text-lg transition duration-200 hover:shadow-lg">
START CHALLENGE
</button>
</div>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-gray-800 bg-opacity-90 rounded-lg p-6 border-worn">
<h2 class="text-xl font-bold mb-4 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-orange-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
Recent Activity
</h2>
<div class="space-y-4">
<div class="flex items-center p-3 hover:bg-gray-700 rounded-lg transition">
<div class="w-10 h-10 bg-orange-600 rounded-full flex items-center justify-center mr-3">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
</div>
<div class="flex-1">
<div class="font-bold">Completed Desert Run</div>
<div class="text-sm text-gray-400">Time: 8:32.45 | Rank: #12</div>
</div>
<div class="text-sm text-gray-400">2 hours ago</div>
</div>
<div class="flex items-center p-3 hover:bg-gray-700 rounded-lg transition">
<div class="w-10 h-10 bg-blue-600 rounded-full flex items-center justify-center mr-3">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
</div>
<div class="flex-1">
<div class="font-bold">Earned $9,500</div>
<div class="text-sm text-gray-400">From Desert Run completion</div>
</div>
<div class="text-sm text-gray-400">2 hours ago</div>
</div>
<div class="flex items-center p-3 hover:bg-gray-700 rounded-lg transition">
<div class="w-10 h-10 bg-green-600 rounded-full flex items-center justify-center mr-3">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
</div>
<div class="flex-1">
<div class="font-bold">New Personal Best</div>
<div class="text-sm text-gray-400">Mountain Pass - 11:23.76</div>
</div>
<div class="text-sm text-gray-400">1 week ago</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Challenge Modal -->
<div id="challengeModal" class="fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50 hidden">
<div class="bg-gray-800 rounded-lg w-full max-w-md mx-4 border-worn">
<div class="p-6">
<h3 class="text-2xl font-bold mb-4 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8 mr-2 text-orange-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
Start Challenge?
</h3>
<div class="mb-6">
<div class="flex justify-between py-2 border-b border-gray-700">
<span class="text-gray-400">Trail:</span>
<span class="font-medium">Mountain Pass</span>
</div>
<div class="flex justify-between py-2 border-b border-gray-700">
<span class="text-gray-400">Vehicle:</span>
<span class="font-medium">Can-Am Maverick X3</span>
</div>
<div class="flex justify-between py-2 border-b border-gray-700">
<span class="text-gray-400">Reward:</span>
<span class="font-medium">$12,500 + 250 XP</span>
</div>
<div class="flex justify-between py-2">
<span class="text-gray-400">Best Time:</span>
<span class="font-medium">9:45.21</span>
</div>
</div>
<div class="flex space-x-4">
<button id="cancelChallenge" class="btn-metal flex-1 py-3 rounded-lg text-white font-bold transition duration-200">
CANCEL
</button>
<button id="confirmChallenge" class="btn-orange flex-1 py-3 rounded-lg text-white font-bold transition duration-200 hover:shadow-lg">
CONFIRM
</button>
</div>
</div>
</div>
</div>
<script>
// DOM Elements
const startChallengeBtn = document.getElementById('startChallenge');
const challengeModal = document.getElementById('challengeModal');
const cancelChallengeBtn = document.getElementById('cancelChallenge');
const confirmChallengeBtn = document.getElementById('confirmChallenge');
// Event Listeners
startChallengeBtn.addEventListener('click', () => {
challengeModal.classList.remove('hidden');
});
cancelChallengeBtn.addEventListener('click', () => {
challengeModal.classList.add('hidden');
});
confirmChallengeBtn.addEventListener('click', () => {
challengeModal.classList.add('hidden');
// Here you would typically start the challenge via NUI callbacks
alert('Challenge started! Good luck!');
});
// Navigation tabs functionality
const navItems = document.querySelectorAll('.nav-item');
navItems.forEach(item => {
item.addEventListener('click', () => {
navItems.forEach(nav => nav.classList.remove('active', 'bg-gray-800'));
item.classList.add('active', 'bg-gray-800');
// Here you would typically switch between different views
});
});
// Responsive adjustments
function handleResize() {
if (window.innerWidth < 768) {
document.querySelector('.sidebar').classList.add('mobile-nav');
} else {
document.querySelector('.sidebar').classList.remove('mobile-nav');
}
}
window.addEventListener('resize', handleResize);
handleResize();
</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=Mankeysocks/ui" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>