From 6ddc0f863f6d3c4635a4155beefe498401974393 Mon Sep 17 00:00:00 2001 From: Zylan Date: Tue, 18 Mar 2025 17:46:48 +0800 Subject: [PATCH] 1 --- components/calculator.tsx | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/components/calculator.tsx b/components/calculator.tsx index 60288dd..fe9df2f 100644 --- a/components/calculator.tsx +++ b/components/calculator.tsx @@ -129,10 +129,13 @@ const SalaryCalculator = () => { const getValueAssessment = () => { if (!formData.annualSalary) return { text: "请输入年薪", color: "text-gray-500" }; - if (value < 1.0) return { text: "很惨", color: "text-red-500" }; + if (value < 0.6) return { text: "惨绝人寰", color: "text-pink-800" }; + if (value < 1.0) return { text: "略惨", color: "text-red-500" }; if (value <= 1.8) return { text: "一般", color: "text-yellow-500" }; - if (value <= 2.5) return { text: "很爽", color: "text-green-500" }; - return { text: "爽到爆炸", color: "text-purple-500" }; + if (value <= 2.5) return { text: "还不错", color: "text-blue-500" }; + if (value <= 3.0) return { text: "很爽", color: "text-green-500" }; + if (value <= 3.5) return { text: "爽到爆炸", color: "text-purple-500" }; + return { text: "人生巅峰", color: "text-amber-500" }; }; const RadioGroup = ({ label, name, value, onChange, options }: { @@ -233,16 +236,16 @@ const SalaryCalculator = () => {
{/* 第一排: GitHub、Email、小红书 */}
- - - Star on - GitHub - + > + + Star on + GitHub +