techtreasure / dashboard.html
dyn4casie's picture
in the index page, it should be a countdown from now till 29th of December 2025
5de67f5 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Tickets | TechTreasureDraw</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.iife.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.ticket-bg {
background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}
.countdown-item {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(5px);
}
</style>
</head>
<body class="font-sans antialiased text-gray-800 bg-gray-50">
<!-- Navigation -->
<nav class="bg-white shadow-sm sticky top-0 z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0 flex items-center">
<i data-feather="cpu" class="h-8 w-8 text-blue-600"></i>
<span class="ml-2 text-xl font-bold text-blue-600">TechTreasureDraw</span>
</div>
</div>
<div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
<a href="/index.html" class="text-gray-700 hover:text-blue-600 px-3 py-2 text-sm font-medium">Home</a>
<a href="/index.html#how-it-works" class="text-gray-700 hover:text-blue-600 px-3 py-2 text-sm font-medium">How It Works</a>
<a href="/index.html#prize" class="text-gray-700 hover:text-blue-600 px-3 py-2 text-sm font-medium">The Prize</a>
<a href="/index.html#faq" class="text-gray-700 hover:text-blue-600 px-3 py-2 text-sm font-medium">FAQ</a>
<div class="flex items-center">
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="">
<span class="ml-2 text-sm font-medium">John D.</span>
</div>
</div>
<div class="-mr-2 flex items-center md:hidden">
<button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500" aria-controls="mobile-menu" aria-expanded="false">
<i data-feather="menu"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- Dashboard -->
<div class="max-w-7xl mx-auto py-8 px-4 sm:px-6 lg:px-8">
<div class="mb-8">
<h1 class="text-3xl font-bold text-gray-900">My Tickets</h1>
<p class="mt-2 text-gray-600">View your raffle entries and track the draw status</p>
</div>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
<!-- User Stats -->
<div class="bg-white rounded-lg shadow-sm p-6" data-aos="fade-up">
<div class="flex items-center mb-6">
<div class="flex-shrink-0">
<img class="h-12 w-12 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="">
</div>
<div class="ml-4">
<h2 class="text-lg font-medium text-gray-900">John Doe</h2>
<p class="text-gray-600">john.doe@example.com</p>
</div>
</div>
<div class="grid grid-cols-2 gap-4">
<div class="bg-gray-50 p-4 rounded-lg">
<div class="text-sm text-gray-500">Total Tickets</div>
<div class="text-2xl font-bold text-blue-600">5</div>
</div>
<div class="bg-gray-50 p-4 rounded-lg">
<div class="text-sm text-gray-500">Referrals</div>
<div class="text-2xl font-bold text-blue-600">2</div>
</div>
</div>
<div class="mt-6">
<h3 class="text-sm font-medium text-gray-900 mb-2">Referral Link</h3>
<div class="flex">
<input type="text" readonly value="https://techtreasuredraw.com/ref/johndoe123" class="flex-1 min-w-0 block w-full px-3 py-2 rounded-l-md border border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm">
<button class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-r-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
<i data-feather="copy" class="h-4 w-4 mr-1"></i> Copy
</button>
</div>
<p class="mt-2 text-xs text-gray-500">Earn 1 free ticket for every 5 successful referrals</p>
</div>
</div>
<!-- Tickets List -->
<div class="lg:col-span-2">
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-lg font-medium text-gray-900">Your Raffle Entries</h2>
</div>
<ul class="divide-y divide-gray-200">
<li class="px-6 py-4" data-aos="fade-up" data-aos-delay="100">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-blue-600">TT-9X4B7Q</p>
<p class="text-sm text-gray-500">Purchased: 12 Nov 2023</p>
</div>
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Active
</span>
</div>
</li>
<li class="px-6 py-4" data-aos="fade-up" data-aos-delay="150">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-blue-600">TT-3K8P2M</p>
<p class="text-sm text-gray-500">Purchased: 12 Nov 2023</p>
</div>
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Active
</span>
</div>
</li>
<li class="px-6 py-4" data-aos="fade-up" data-aos-delay="200">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-blue-600">TT-7R1D9L</p>
<p class="text-sm text-gray-500">Purchased: 10 Nov 2023</p>
</div>
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Active
</span>
</div>
</li>
<li class="px-6 py-4" data-aos="fade-up" data-aos-delay="250">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-blue-600">TT-2N5F8V</p>
<p class="text-sm text-gray-500">Purchased: 8 Nov 2023</p>
</div>
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Active
</span>
</div>
</li>
<li class="px-6 py-4" data-aos="fade-up" data-aos-delay="300">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-blue-600">TT-4Q6W9E</p>
<p class="text-sm text-gray-500">Purchased: 5 Nov 2023</p>
</div>
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Active
</span>
</div>
</li>
</ul>
<div class="px-6 py-4 bg-gray-50">
<button class="w-full inline-flex justify-center items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
<i data-feather="plus" class="h-4 w-4 mr-2"></i> Buy More Tickets
</button>
</div>
</div>
<!-- Draw Status -->
<div class="mt-8 bg-white rounded-lg shadow-sm overflow-hidden" data-aos="fade-up">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-lg font-medium text-gray-900">Draw Status</h2>
</div>
<div class="px-6 py-4">
<div class="flex items-center">
<div class="flex-shrink-0 h-12 w-12 rounded-full bg-blue-100 flex items-center justify-center">
<i data-feather="clock" class="h-6 w-6 text-blue-600"></i>
</div>
<div class="ml-4">
<h3 class="text-sm font-medium text-gray-900">Draw Countdown</h3>
<div class="mt-1 flex space-x-2">
<div class="text-center">
<div class="text-xl font-bold" id="d-days">12</div>
<div class="text-xs text-gray-500">Days</div>
</div>
<div class="text-center">
<div class="text-xl font-bold" id="d-hours">06</div>
<div class="text-xs text-gray-500">Hours</div>
</div>
<div class="text-center">
<div class="text-xl font-bold" id="d-minutes">45</div>
<div class="text-xs text-gray-500">Minutes</div>
</div>
</div>
</div>
</div>
<div class="mt-6">
<h3 class="text-sm font-medium text-gray-900">Draw Details</h3>
<p class="mt-1 text-sm text-gray-600">
The draw will be held automatically on <span class="font-medium">15 December 2023 at 12:00 PM GMT</span> or when all tickets are sold out. The winner will be selected using Random.org's verified random number generator.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-900 text-white mt-12">
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-lg font-bold mb-4">TechTreasureDraw</h3>
<p class="text-gray-400">
The fairest and most transparent tech raffle platform. Win amazing gadgets at unbelievable prices.
</p>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="/index.html#how-it-works" class="text-gray-400 hover:text-white">How It Works</a></li>
<li><a href="/index.html#prize" class="text-gray-400 hover:text-white">The Prize</a></li>
<li><a href="/index.html#faq" class="text-gray-400 hover:text-white">FAQ</a></li>
<li><a href="/terms.html" class="text-gray-400 hover:text-white">Terms & Conditions</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Contact</h3>
<ul class="space-y-2">
<li class="flex items-center">
<i data-feather="mail" class="h-4 w-4 mr-2"></i>
<span class="text-gray-400">support@techtreasuredraw.com</span>
</li>
<li class="flex items-center">
<i data-feather="phone" class="h-4 w-4 mr-2"></i>
<span class="text-gray-400">+234 123 456 7890</span>
</li>
</ul>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Follow Us</h3>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="facebook"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="instagram"></i>
</a>
</div>
</div>
</div>
<div class="mt-12 pt-8 border-t border-gray-800 text-center text-gray-400 text-sm">
<p>© 2023 TechTreasureDraw. All rights reserved.</p>
</div>
</div>
</footer>
<script>
// Initialize AOS
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
// Initialize feather icons
feather.replace();
// Countdown timer for dashboard
function updateDashboardCountdown() {
const now = new Date();
const drawDate = new Date('December 15, 2023 12:00:00');
const diff = drawDate - now;
const days = Math.floor(diff / (1000 * 60 * 60 * 24));
const hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
document.getElementById('d-days').textContent = days.toString().padStart(2, '0');
document.getElementById('d-hours').textContent = hours.toString().padStart(2, '0');
document.getElementById('d-minutes').textContent = minutes.toString().padStart(2, '0');
}
setInterval(updateDashboardCountdown, 60000);
updateDashboardCountdown();
</script>
</body>
</html>