river-cleaner / analytics.html
NextNow's picture
import React, { useEffect, useRef, useState } from "react";
cc0a1aa verified
Raw History Blame Contribute Delete
2.66 kB
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RiverCleaner AR · Analytics</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
:root {
--num: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
--sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { font-family: var(--sans); }
.bg-gradient-custom {
background: linear-gradient(to bottom, #05070b, #0b0f17, #07090f);
}
</style>
</head>
<body class="bg-gradient-custom text-zinc-200 min-h-screen">
<!-- Navigation Header -->
<header class="sticky top-0 z-40 backdrop-blur bg-black/40 border-b border-zinc-800">
<div class="max-w-7xl mx-auto px-6 py-4 flex items-center justify-between">
<div class="flex items-center gap-3">
<span class="inline-block w-2 h-2 rounded-full bg-[#22c55e]"></span>
<h1 class="text-xl md:text-2xl font-bold tracking-tight">RiverCleaner AR</h1>
</div>
<nav class="flex items-center gap-4">
<a href="index.html" class="text-zinc-400 hover:text-zinc-200 transition">Dashboard</a>
<a href="control-center.html" class="text-zinc-400 hover:text-zinc-200 transition">Control Center</a>
<a href="analytics.html" class="text-zinc-200 border-b border-zinc-200">Analytics</a>
<a href="settings.html" class="text-zinc-400 hover:text-zinc-200 transition">Settings</a>
</nav>
</div>
</header>
<!-- Main Content -->
<main class="max-w-7xl mx-auto px-6 py-6">
<!-- Overview Cards -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
<div class="bg-zinc-900/70 border border-zinc-800 rounded-2xl shadow-xl p-6">
<h3 class="text-zinc-400 text-sm mb-2">Total Recycled</h3>
<div class="text-2xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-sky-400 to-fuchsia-400">9.46 t</div>
</div>
<div class="bg-zinc-900/70 border border-zinc-800 rounded-2xl shadow-xl p-6">
<h3 class="text-zinc-400 text-sm mb-2">Energy Saved</h3>
<div class="text-2xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-emerald-400 to-lime-400">623.7 kWh</div>
</div>
<极