|
|
@@ -1,6 +1,7 @@
|
|
|
import React from 'react';
|
|
|
import { useAuth } from '@/client/home/hooks/AuthProvider';
|
|
|
import { useNavigate } from 'react-router-dom';
|
|
|
+import ServiceCard from '@/client/home/components/ServiceCard';
|
|
|
|
|
|
const HomePage: React.FC = () => {
|
|
|
const { user } = useAuth();
|
|
|
@@ -93,56 +94,44 @@ const HomePage: React.FC = () => {
|
|
|
</div>
|
|
|
|
|
|
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
|
|
|
- {/* 手机改运服务 */}
|
|
|
- <div className="bg-white rounded-xl p-8 shadow-sm border border-gray-100 hover:shadow-md transition-all duration-300 text-center">
|
|
|
- <div className="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6">
|
|
|
+ <ServiceCard
|
|
|
+ icon={
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" className="h-8 w-8 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z" />
|
|
|
</svg>
|
|
|
- </div>
|
|
|
- <h4 className="text-xl font-semibold text-gray-900 mb-4">手机改运</h4>
|
|
|
- <p className="text-gray-600 mb-6">
|
|
|
- 通过手机号码能量分析,调整个人运势,
|
|
|
- 改善人际关系和事业发展
|
|
|
- </p>
|
|
|
- <button className="px-6 py-3 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-lg font-medium hover:from-blue-700 hover:to-purple-700 transition-all shadow-sm hover:shadow-md">
|
|
|
- 立即分析
|
|
|
- </button>
|
|
|
- </div>
|
|
|
+ }
|
|
|
+ title="手机改运"
|
|
|
+ description="通过手机号码能量分析,调整个人运势,改善人际关系和事业发展"
|
|
|
+ buttonText="立即分析"
|
|
|
+ buttonColor="from-blue-600 to-purple-600"
|
|
|
+ hoverColor="from-blue-700 hover:to-purple-700"
|
|
|
+ />
|
|
|
|
|
|
- {/* 八字详批服务 */}
|
|
|
- <div className="bg-white rounded-xl p-8 shadow-sm border border-gray-100 hover:shadow-md transition-all duration-300 text-center">
|
|
|
- <div className="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6">
|
|
|
+ <ServiceCard
|
|
|
+ icon={
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" className="h-8 w-8 text-green-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
|
|
|
</svg>
|
|
|
- </div>
|
|
|
- <h4 className="text-xl font-semibold text-gray-900 mb-4">八字详批</h4>
|
|
|
- <p className="text-gray-600 mb-6">
|
|
|
- 精准分析个人八字命理,预测未来运势,
|
|
|
- 为人生规划提供科学指导
|
|
|
- </p>
|
|
|
- <button className="px-6 py-3 bg-gradient-to-r from-green-600 to-blue-600 text-white rounded-lg font-medium hover:from-green-700 hover:to-blue-700 transition-all shadow-sm hover:shadow-md">
|
|
|
- 立即详批
|
|
|
- </button>
|
|
|
- </div>
|
|
|
+ }
|
|
|
+ title="八字详批"
|
|
|
+ description="精准分析个人八字命理,预测未来运势,为人生规划提供科学指导"
|
|
|
+ buttonText="立即详批"
|
|
|
+ buttonColor="from-green-600 to-blue-600"
|
|
|
+ hoverColor="from-green-700 hover:to-blue-700"
|
|
|
+ />
|
|
|
|
|
|
- {/* 风水调整服务 */}
|
|
|
- <div className="bg-white rounded-xl p-8 shadow-sm border border-gray-100 hover:shadow-md transition-all duration-300 text-center">
|
|
|
- <div className="w-16 h-16 bg-orange-100 rounded-full flex items-center justify-center mx-auto mb-6">
|
|
|
+ <ServiceCard
|
|
|
+ icon={
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" className="h-8 w-8 text-orange-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
|
|
|
</svg>
|
|
|
- </div>
|
|
|
- <h4 className="text-xl font-semibold text-gray-900 mb-4">风水调整</h4>
|
|
|
- <p className="text-gray-600 mb-6">
|
|
|
- 专业风水布局分析,优化居住和工作环境,
|
|
|
- 提升整体运势和生活品质
|
|
|
- </p>
|
|
|
- <button className="px-6 py-3 bg-gradient-to-r from-orange-600 to-red-600 text-white rounded-lg font-medium hover:from-orange-700 hover:to-red-700 transition-all shadow-sm hover:shadow-md">
|
|
|
- 立即调整
|
|
|
- </button>
|
|
|
- </div>
|
|
|
+ }
|
|
|
+ title="风水调整"
|
|
|
+ description="专业风水布局分析,优化居住和工作环境,提升整体运势和生活品质"
|
|
|
+ buttonText="立即调整"
|
|
|
+ buttonColor="from-orange-600 to-red-600"
|
|
|
+ hoverColor="from-orange-700 hover:to-red-700"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
|