ecotrack / index.html
fenglui's picture
Add 3 files
f5f0c69 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EcoTrack - Your Sustainable Lifestyle Companion</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>
.gradient-bg {
background: linear-gradient(135deg, #4ade80 0%, #3b82f6 100%);
}
.action-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.earth-spin {
animation: spin 20s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.progress-ring__circle {
transition: stroke-dashoffset 0.35s;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
</style>
</head>
<body class="font-sans bg-gray-50">
<!-- Navigation -->
<nav class="bg-white shadow-sm">
<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 class="fas fa-leaf text-green-500 text-2xl mr-2"></i>
<span class="text-xl font-bold text-gray-800">EcoTrack</span>
</div>
</div>
<div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
<a href="#" class="text-green-600 px-3 py-2 text-sm font-medium">Dashboard</a>
<a href="#" class="text-gray-500 hover:text-gray-700 px-3 py-2 text-sm font-medium">Actions</a>
<a href="#" class="text-gray-500 hover:text-gray-700 px-3 py-2 text-sm font-medium">Community</a>
<a href="#" class="text-gray-500 hover:text-gray-700 px-3 py-2 text-sm font-medium">Learn</a>
<a href="#" class="text-gray-500 hover:text-gray-700 px-3 py-2 text-sm font-medium">Rewards</a>
</div>
<div class="flex items-center">
<button class="bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-md text-sm font-medium">
Sign In
</button>
</div>
</div>
</div>
</nav>
<!-- Hero Section -->
<div class="gradient-bg text-white">
<div class="max-w-7xl mx-auto py-16 px-4 sm:py-24 sm:px-6 lg:px-8">
<div class="text-center">
<h1 class="text-4xl font-extrabold tracking-tight sm:text-5xl lg:text-6xl">
Track Your Impact, Save Our Planet
</h1>
<p class="mt-6 max-w-2xl mx-auto text-xl">
Every small action counts. Join thousands of eco-conscious individuals making a difference every day.
</p>
<div class="mt-10">
<button class="bg-white text-green-600 px-8 py-3 rounded-md text-lg font-semibold hover:bg-gray-100 transition duration-300">
Get Started - It's Free
</button>
</div>
</div>
</div>
</div>
<!-- Stats Section -->
<div class="bg-white py-12">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 text-center">
<div class="p-6 rounded-lg border border-gray-100 shadow-sm">
<div class="text-4xl font-bold text-green-500">12,589</div>
<div class="mt-2 text-gray-600">Active Users</div>
</div>
<div class="p-6 rounded-lg border border-gray-100 shadow-sm">
<div class="text-4xl font-bold text-green-500">387,241</div>
<div class="mt-2 text-gray-600">Actions Logged</div>
</div>
<div class="p-6 rounded-lg border border-gray-100 shadow-sm">
<div class="text-4xl font-bold text-green-500">1,204</div>
<div class="mt-2 text-gray-600">Trees Planted</div>
</div>
</div>
</div>
</div>
<!-- How It Works -->
<div class="bg-gray-50 py-16">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
How EcoTrack Works
</h2>
<p class="mt-4 max-w-2xl mx-auto text-gray-500">
Simple steps to make a big difference
</p>
</div>
<div class="mt-16">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="text-center">
<div class="mx-auto flex items-center justify-center h-16 w-16 rounded-full bg-green-100 text-green-600">
<i class="fas fa-plus text-xl"></i>
</div>
<div class="mt-6">
<h3 class="text-lg font-medium text-gray-900">1. Log Your Actions</h3>
<p class="mt-2 text-gray-500">
Record your daily sustainable actions like recycling, reducing waste, or conserving energy.
</p>
</div>
</div>
<div class="text-center">
<div class="mx-auto flex items-center justify-center h-16 w-16 rounded-full bg-green-100 text-green-600">
<i class="fas fa-chart-line text-xl"></i>
</div>
<div class="mt-6">
<h3 class="text-lg font-medium text-gray-900">2. Track Your Impact</h3>
<p class="mt-2 text-gray-500">
See real-time statistics on your carbon footprint reduction and resource savings.
</p>
</div>
</div>
<div class="text-center">
<div class="mx-auto flex items-center justify-center h-16 w-16 rounded-full bg-green-100 text-green-600">
<i class="fas fa-trophy text-xl"></i>
</div>
<div class="mt-6">
<h3 class="text-lg font-medium text-gray-900">3. Earn Rewards</h3>
<p class="mt-2 text-gray-500">
Redeem points for discounts, plant trees, or donate to environmental causes.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Action Cards -->
<div class="bg-white py-16">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
Popular Eco Actions
</h2>
<p class="mt-4 max-w-2xl mx-auto text-gray-500">
Start with these simple actions to make an impact
</p>
</div>
<div class="mt-12 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Action Card 1 -->
<div class="action-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
<div class="p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-green-100 p-3 rounded-full">
<i class="fas fa-recycle text-green-600 text-xl"></i>
</div>
<div class="ml-4">
<h3 class="text-lg font-medium text-gray-900">Recycling</h3>
<p class="mt-1 text-sm text-gray-500">15 points per item</p>
</div>
</div>
<div class="mt-4">
<p class="text-gray-600">
Properly sorting and recycling paper, plastic, glass, and metal reduces landfill waste.
</p>
</div>
<div class="mt-6">
<button class="w-full bg-green-50 text-green-700 px-4 py-2 rounded-md text-sm font-medium hover:bg-green-100">
Log This Action
</button>
</div>
</div>
</div>
<!-- Action Card 2 -->
<div class="action-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
<div class="p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-green-100 p-3 rounded-full">
<i class="fas fa-bolt text-green-600 text-xl"></i>
</div>
<div class="ml-4">
<h3 class="text-lg font-medium text-gray-900">Energy Saving</h3>
<p class="mt-1 text-sm text-gray-500">10 points per hour</p>
</div>
</div>
<div class="mt-4">
<p class="text-gray-600">
Turning off lights and unplugging devices when not in use conserves energy.
</p>
</div>
<div class="mt-6">
<button class="w-full bg-green-50 text-green-700 px-4 py-2 rounded-md text-sm font-medium hover:bg-green-100">
Log This Action
</button>
</div>
</div>
</div>
<!-- Action Card 3 -->
<div class="action-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
<div class="p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-green-100 p-3 rounded-full">
<i class="fas fa-bicycle text-green-600 text-xl"></i>
</div>
<div class="ml-4">
<h3 class="text-lg font-medium text-gray-900">Green Commute</h3>
<p class="mt-1 text-sm text-gray-500">25 points per trip</p>
</div>
</div>
<div class="mt-4">
<p class="text-gray-600">
Walking, biking, or using public transport reduces carbon emissions.
</p>
</div>
<div class="mt-6">
<button class="w-full bg-green-50 text-green-700 px-4 py-2 rounded-md text-sm font-medium hover:bg-green-100">
Log This Action
</button>
</div>
</div>
</div>
</div>
<div class="mt-10 text-center">
<button class="text-green-600 hover:text-green-800 font-medium">
View All Actions <i class="fas fa-chevron-right ml-1"></i>
</button>
</div>
</div>
</div>
<!-- Progress Section -->
<div class="gradient-bg text-white py-16">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="lg:grid lg:grid-cols-2 lg:gap-8 items-center">
<div class="mb-12 lg:mb-0">
<h2 class="text-3xl font-extrabold sm:text-4xl">
Your Personal Impact Dashboard
</h2>
<p class="mt-4 text-lg">
Track your progress, set goals, and see how your actions contribute to a healthier planet.
</p>
<div class="mt-8 grid grid-cols-2 gap-6">
<div>
<div class="text-3xl font-bold">1,245</div>
<div class="mt-1 text-green-100">Points Earned</div>
</div>
<div>
<div class="text-3xl font-bold">87</div>
<div class="mt-1 text-green-100">Actions Taken</div>
</div>
<div>
<div class="text-3xl font-bold">42kg</div>
<div class="mt-1 text-green-100">CO₂ Reduced</div>
</div>
<div>
<div class="text-3xl font-bold">3</div>
<div class="mt-1 text-green-100">Trees Planted</div>
</div>
</div>
</div>
<div class="relative">
<div class="relative mx-auto w-64 h-64">
<svg class="w-full h-full" viewBox="0 0 100 100">
<!-- Background circle -->
<circle cx="50" cy="50" r="45" fill="none" stroke="#e5e7eb" stroke-width="8"/>
<!-- Progress circle -->
<circle class="progress-ring__circle" cx="50" cy="50" r="45" fill="none" stroke="#ffffff" stroke-width="8" stroke-dasharray="283" stroke-dashoffset="70"/>
</svg>
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center">
<div class="text-4xl font-bold">72%</div>
<div class="text-green-100">Monthly Goal</div>
</div>
</div>
</div>
<div class="mt-8 text-center">
<button class="bg-white text-green-600 px-6 py-2 rounded-md font-medium hover:bg-gray-100 transition duration-300">
View Full Dashboard
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Community Section -->
<div class="bg-white py-16">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
Join Our Growing Community
</h2>
<p class="mt-4 max-w-2xl mx-auto text-gray-500">
Connect with like-minded individuals and share your journey
</p>
</div>
<div class="mt-12">
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<!-- Community Post 1 -->
<div class="bg-gray-50 rounded-lg p-6">
<div class="flex items-center">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/42.jpg" alt="">
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Sarah J.</p>
<p class="text-xs text-gray-500">2 hours ago</p>
</div>
</div>
<div class="mt-4">
<p class="text-gray-700">
"Just installed solar panels on my roof! Excited to see my energy bills drop and my EcoTrack points rise!"
</p>
</div>
<div class="mt-4 flex items-center text-sm text-gray-500">
<i class="fas fa-heart mr-1 text-green-500"></i> 24
<i class="fas fa-comment ml-4 mr-1 text-green-500"></i> 5
</div>
</div>
<!-- Community Post 2 -->
<div class="bg-gray-50 rounded-lg p-6">
<div class="flex items-center">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="">
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Michael T.</p>
<p class="text-xs text-gray-500">5 hours ago</p>
</div>
</div>
<div class="mt-4">
<p class="text-gray-700">
"Completed my 30-day zero waste challenge today. It was tough but so rewarding! Any tips for maintaining this lifestyle?"
</p>
</div>
<div class="mt-4 flex items-center text-sm text-gray-500">
<i class="fas fa-heart mr-1 text-green-500"></i> 42
<i class="fas fa-comment ml-4 mr-1 text-green-500"></i> 13
</div>
</div>
<!-- Community Post 3 -->
<div class="bg-gray-50 rounded-lg p-6">
<div class="flex items-center">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/63.jpg" alt="">
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Priya K.</p>
<p class="text-xs text-gray-500">1 day ago</p>
</div>
</div>
<div class="mt-4">
<p class="text-gray-700">
"Our neighborhood recycling initiative has diverted over 500kg of waste from landfills this month! So proud of our community effort."
</p>
</div>
<div class="mt-4 flex items-center text-sm text-gray-500">
<i class="fas fa-heart mr-1 text-green-500"></i> 87
<i class="fas fa-comment ml-4 mr-1 text-green-500"></i> 22
</div>
</div>
</div>
<div class="mt-10 text-center">
<button class="bg-green-600 hover:bg-green-700 text-white px-6 py-3 rounded-md font-medium transition duration-300">
Join the Community
</button>
</div>
</div>
</div>
</div>
<!-- Rewards Section -->
<div class="bg-gray-50 py-16">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
Redeem Your Points
</h2>
<p class="mt-4 max-w-2xl mx-auto text-gray-500">
Your eco-friendly actions deserve rewards
</p>
</div>
<div class="mt-12">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Reward 1 -->
<div class="bg-white rounded-lg overflow-hidden shadow-sm border border-gray-100">
<div class="p-6">
<div class="flex justify-center">
<div class="bg-green-100 p-4 rounded-full">
<i class="fas fa-tree text-green-600 text-3xl"></i>
</div>
</div>
<div class="mt-6 text-center">
<h3 class="text-lg font-medium text-gray-900">Plant a Tree</h3>
<p class="mt-2 text-gray-600">
Donate 500 points to plant a tree through our partner organizations.
</p>
<div class="mt-6">
<button class="bg-green-50 text-green-700 px-4 py-2 rounded-md text-sm font-medium hover:bg-green-100">
Redeem (500 pts)
</button>
</div>
</div>
</div>
</div>
<!-- Reward 2 -->
<div class="bg-white rounded-lg overflow-hidden shadow-sm border border-gray-100">
<div class="p-6">
<div class="flex justify-center">
<div class="bg-green-100 p-4 rounded-full">
<i class="fas fa-tag text-green-600 text-3xl"></i>
</div>
</div>
<div class="mt-6 text-center">
<h3 class="text-lg font-medium text-gray-900">Eco Store Discount</h3>
<p class="mt-2 text-gray-600">
Get 15% off at our partner eco-friendly stores with 300 points.
</p>
<div class="mt-6">
<button class="bg-green-50 text-green-700 px-4 py-2 rounded-md text-sm font-medium hover:bg-green-100">
Redeem (300 pts)
</button>
</div>
</div>
</div>
</div>
<!-- Reward 3 -->
<div class="bg-white rounded-lg overflow-hidden shadow-sm border border-gray-100">
<div class="p-6">
<div class="flex justify-center">
<div class="bg-green-100 p-4 rounded-full">
<i class="fas fa-book text-green-600 text-3xl"></i>
</div>
</div>
<div class="mt-6 text-center">
<h3 class="text-lg font-medium text-gray-900">Eco Book Club</h3>
<p class="mt-2 text-gray-600">
Join our exclusive book club with 200 points and get monthly eco-literature.
</p>
<div class="mt-6">
<button class="bg-green-50 text-green-700 px-4 py-2 rounded-md text-sm font-medium hover:bg-green-100">
Redeem (200 pts)
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Newsletter -->
<div class="bg-white py-16">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="lg:grid lg:grid-cols-2 lg:gap-8 lg:items-center">
<div class="mb-12 lg:mb-0">
<img class="mx-auto h-48 earth-spin" src="https://cdn-icons-png.flaticon.com/512/44/44386.png" alt="Earth">
</div>
<div>
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
Stay Updated
</h2>
<p class="mt-4 text-lg text-gray-500">
Subscribe to our newsletter for weekly eco-tips, success stories, and special rewards.
</p>
<div class="mt-8">
<form class="sm:flex">
<label for="email-address" class="sr-only">Email address</label>
<input id="email-address" name="email" type="email" autocomplete="email" required class="w-full px-5 py-3 border border-gray-300 shadow-sm placeholder-gray-400 focus:ring-green-500 focus:border-green-500 sm:max-w-xs rounded-md" placeholder="Enter your email">
<div class="mt-3 rounded-md shadow sm:mt-0 sm:ml-3 sm:flex-shrink-0">
<button type="submit" class="w-full bg-green-600 hover:bg-green-700 flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500">
Subscribe
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-800">
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-2 md:grid-cols-4 gap-8">
<div>
<h3 class="text-sm font-semibold text-gray-300 tracking-wider uppercase">
EcoTrack
</h3>
<div class="mt-4 space-y-4">
<a href="#" class="text-base text-gray-400 hover:text-white">
About Us
</a>
<a href="#" class="text-base text-gray-400 hover:text-white block">
Careers
</a>
<a href="#" class="text-base text-gray-400 hover:text-white block">
Press
</a>
</div>
</div>
<div>
<h3 class="text-sm font-semibold text-gray-300 tracking-wider uppercase">
Resources
</h3>
<div class="mt-4 space-y-4">
<a href="#" class="text-base text-gray-400 hover:text-white">
Blog
</a>
<a href="#" class="text-base text-gray-400 hover:text-white block">
Guides
</a>
<a href="#" class="text-base text-gray-400 hover:text-white block">
Research
</a>
</div>
</div>
<div>
<h3 class="text-sm font-semibold text-gray-300 tracking-wider uppercase">
Support
</h3>
<div class="mt-4 space-y-4">
<a href="#" class="text-base text-gray-400 hover:text-white">
Help Center
</a>
<a href="#" class="text-base text-gray-400 hover:text-white block">
Community
</a>
<a href="#" class="text-base text-gray-400 hover:text-white block">
Contact Us
</a>
</div>
</div>
<div>
<h3 class="text-sm font-semibold text-gray-300 tracking-wider uppercase">
Connect
</h3>
<div class="mt-4 flex space-x-6">
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-instagram"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-linkedin-in"></i>
</a>
</div>
</div>
</div>
<div class="mt-12 border-t border-gray-700 pt-8">
<p class="text-base text-gray-400 text-center">
&copy; 2023 EcoTrack. All rights reserved.
</p>
</div>
</div>
</footer>
<script>
// Simple animation for the progress ring
document.addEventListener('DOMContentLoaded', function() {
const circle = document.querySelector('.progress-ring__circle');
const radius = circle.r.baseVal.value;
const circumference = 2 * Math.PI * radius;
circle.style.strokeDasharray = circumference;
circle.style.strokeDashoffset = circumference - (0.72 * circumference);
// Simulate user login/show modal
setTimeout(() => {
// This would be replaced with actual login logic
console.log('Welcome to EcoTrack! Start tracking your eco-friendly actions today.');
}, 2000);
});
</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=fenglui/ecotrack" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>