-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclassification.html
More file actions
171 lines (152 loc) · 8.13 KB
/
Copy pathclassification.html
File metadata and controls
171 lines (152 loc) · 8.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Classification Results - WREP</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="mobile.css">
<style>
.result-card {
border: 1px solid var(--primary-color);
background: rgba(143, 216, 160, 0.05);
box-shadow: var(--glow);
}
.decision-alert {
background: rgba(56, 189, 248, 0.1);
border-left: 4px solid var(--accent-color);
padding: 1.25rem;
margin-bottom: 2rem;
border-radius: var(--radius-md);
}
.recommendation-actions {
display: flex;
gap: 1rem;
margin-top: 1.5rem;
}
</style>
</head>
<body>
<!-- Header -->
<header>
<div class="container">
<nav>
<a href="index.html" class="logo">
<img src="nav_logo_black.png" alt="Logo"
style="width: 28px; height: 28px; vertical-align: middle; margin-right: 8px;">
<span>नगरCYCLE</span>
</a>
<button class="nav-toggle" aria-label="Toggle Navigation">☰</button>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="listing.html">List Waste</a></li>
<li><a href="marketplace.html">Marketplace</a></li>
<li><a href="discarded.html">Discard Waste</a></li>
<li><a href="rewards.html">Rewards</a></li>
<li><a href="#" class="btn btn-secondary collector-portal-btn"
style="padding: 10px 16px; font-size: 0.95rem; display: inline-block; width: 100%; text-align: center; margin-top: 5px; box-sizing: border-box;"
onclick="openCollectorPortal()">Collector Portal</a></li>
<!-- Auth Item (Dynamic) -->
<li id="auth-item">
<a href="login.html" class="btn btn-primary"
style="padding: 10px 16px; font-size: 0.95rem; color: black; display: inline-block; width: 100%; text-align: center; margin-top: 5px; box-sizing: border-box;">Login</a>
</li>
</ul>
</nav>
</div>
</header>
<div class="container" style="padding-top: 3rem; padding-bottom: 3rem;">
<div style="max-width: 800px; margin: 0 auto;">
<div style="text-align: center; margin-bottom: 3rem;">
<h1 style="margin-bottom: 0.5rem;">Analysis Complete</h1>
<p style="color: var(--text-light);">Based on your input, here is the classification and recommended
path.</p>
</div>
<!-- Classification Result Card -->
<div class="card result-card">
<div
style="display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem;">
<div>
<div style="display: flex; gap: 0.5rem; margin-bottom: 0.5rem;">
<span class="tag tag-success" style="font-size: 0.9rem;">✔ Optimal Pathway: Resell</span>
<span class="tag tag-warning" style="font-size: 0.9rem;">Avoid: Recycling (Value
Loss)</span>
</div>
<h2 id="summaryTitle" style="font-size: 1.8rem; margin: 0; color: var(--text-color);">Waste
Analysis</h2>
<p id="summarySub" style="color: var(--text-light);">Item Classification Summary</p>
</div>
<div style="text-align: right;">
<div id="summaryScore"
style="font-size: 2.5rem; font-weight: bold; color: var(--primary-color); text-shadow: 0 0 10px rgba(143,216,160,0.3);">
-<span style="font-size: 1rem; color: var(--text-light);">/100</span></div>
<div style="font-size: 0.8rem; color: var(--text-light); letter-spacing: 0.5px;">Priority Score
</div>
</div>
</div>
<div class="decision-alert">
<strong style="color: var(--accent-color);">💡 Decision Support</strong>
<p id="decisionText" style="margin: 0.25rem 0 0; font-size: 0.95rem; color: var(--text-color); line-height: 1.5;">
Analyzing optimal pathway...
</p>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem;">
<div>
<h4 style="margin-bottom: 0.5rem; color: var(--secondary-color);">Suggested Pathway</h4>
<div style="display: flex; align-items: center; gap: 0.5rem;">
<span style="font-size: 1.5rem;">🔄</span>
<div>
<strong>Refurbish & Resell</strong>
<p style="font-size: 0.9rem; margin: 0; color: var(--text-light);">High demand for parts
</p>
</div>
</div>
</div>
<div>
<h4
style="margin-bottom: 0.5rem; color: var(--text-light); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px;">
Estimated Value</h4>
<div id="summaryValue"
style="font-size: 1.8rem; font-weight: bold; color: var(--primary-color);">₹ -
</div>
</div>
</div>
<hr style="border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 2rem 0;">
<div class="recommendation-actions">
<a href="marketplace.html" class="btn btn-primary btn-block" style="text-align: center;">List on
Marketplace (Resell)</a>
<a href="#" class="btn btn-secondary btn-block" style="text-align: center;">Send to Recycler
(Pickup)</a>
</div>
</div>
<!-- Alternative Option -->
<div class="card" style="margin-top: 2rem; opacity: 0.8;">
<h4 style="margin-bottom: 1rem;">Processing Required?</h4>
<p>If the item is not functional, you can send it directly to a certified e-waste dismantling facility.
</p>
<div style="display: flex; gap: 1rem; margin-top: 1rem;">
<button class="btn btn-secondary" style="font-size: 0.9rem;">Find Dismantlers Nearby</button>
</div>
</div>
</div>
</div>
<script>
window.addEventListener('load', () => {
const analysis = JSON.parse(localStorage.getItem('last_analysis'));
const price = localStorage.getItem('last_price');
if (analysis) {
document.getElementById('summaryTitle').innerText = `${analysis.subCategory} (${analysis.primaryCategory})`;
document.getElementById('summarySub').innerText = analysis.analysis;
document.getElementById('decisionText').innerText = analysis.decisionSupport || "Optimal pathway suggested by AI analysis.";
const score = analysis.qualityScore || analysis.quality_score || 5;
document.getElementById('summaryScore').innerHTML = `${score * 10}<span style="font-size: 1rem; color: var(--text-light);">/100</span>`;
}
if (price) {
document.getElementById('summaryValue').innerText = price;
}
});
</script>
</body>
</html>
<script src="script.js"></script>
<script type="module" src="js/nav-loader.js"></script>