diff --git a/paperless-sustainability-calculator.tsx b/paperless-sustainability-calculator.tsx new file mode 100644 index 0000000..0626d1e --- /dev/null +++ b/paperless-sustainability-calculator.tsx @@ -0,0 +1,95 @@ +'use client' + +import { useState } from 'react' +import { Card, CardContent, CardFooter, CardHeader, CardTitle, CardDescription } from "@/components/ui/card" +import { Label } from "@/components/ui/label" +import { Slider } from "@/components/ui/slider" +import { Leaf, Droplets, FileText, DollarSign } from 'lucide-react' +import Image from 'next/image' + +export default function PaperlessSustainabilityCalculator() { + const [monthlyTreesSaved, setMonthlyTreesSaved] = useState(10) + + // Sustainability metrics (example values, adjust as needed) + const paperSavedPerTree = 8333 // sheets of paper saved per tree + const carbonSavedPerTree = 1000 // kg of CO2 saved per tree per year + const waterSavedPerTree = 75700 // liters of water saved per tree per year + + // Cost savings (example values, adjust as needed) + const costSavingsPerTree = 100 // dollars saved per tree due to reduced paper usage and increased efficiency + + const paperSaved = monthlyTreesSaved * paperSavedPerTree + const carbonSaved = (monthlyTreesSaved * carbonSavedPerTree) / 12 // monthly savings + const waterSaved = (monthlyTreesSaved * waterSavedPerTree) / 12 // monthly savings + const totalSavings = monthlyTreesSaved * costSavingsPerTree + + return ( + + + + myHerb Paperless Sustainability Savings Calculator + See the impact of going paperless on the environment and your budget + + +
+ + setMonthlyTreesSaved(value[0])} + aria-valuetext={`${monthlyTreesSaved} trees`} + /> +
{monthlyTreesSaved} trees
+
+ +
+ } + title="Paper Saved" + value={paperSaved.toLocaleString()} + unit="sheets" + /> + } + title="Carbon Emissions Reduced" + value={carbonSaved.toFixed(2)} + unit="kg CO₂" + /> + } + title="Water Saved" + value={waterSaved.toFixed(2)} + unit="liters" + /> + } + title="Cost Savings" + value={totalSavings.toFixed(2)} + unit="USD" + /> +
+
+ +
Your Impact
+

+ By going paperless with digital forms, e-signed invoices, and eco-friendly packaging, you're making a significant contribution to environmental sustainability and reducing operational costs! +

+
+
+ ) +} + +function SavingsCard({ icon, title, value, unit }) { + return ( +
+
{icon}
+

{title}

+

+ {value} {unit} +

+
+ ) +} \ No newline at end of file