Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

chore: add home free credit badge business slot (#15615)

Arvin Xu04349530539f
diff --git a/locales/en-US/home.json b/locales/en-US/home.json
index 3493933b9a7..97d0c26cd3c 100644
--- a/locales/en-US/home.json
+++ b/locales/en-US/home.json
@@ -38,6 +38,7 @@
"brief.title": "Brief",
"brief.viewAllTasks": "View all tasks",
"brief.viewRun": "View run",
+ "freeCreditBadge.label": "Exclusive {{amount}} free credits for {{model}}",
"project.create": "New project",
"project.deleteConfirm": "This project will be deleted and can't be recovered. Confirm to continue.",
"recommendations.heteroAgent.cta": "Add Agent",
diff --git a/locales/zh-CN/home.json b/locales/zh-CN/home.json
index fef00c10925..2cc2037d687 100644
--- a/locales/zh-CN/home.json
+++ b/locales/zh-CN/home.json
@@ -38,6 +38,7 @@
"brief.title": "简报",
"brief.viewAllTasks": "查看全部任务",
"brief.viewRun": "查看运行轨迹",
+ "freeCreditBadge.label": "{{model}} 免费 {{amount}} 积分专属额度",
"project.create": "新建项目",
"project.deleteConfirm": "此项目将被删除且无法恢复。确认继续操作。",
"recommendations.heteroAgent.cta": "添加助手",
diff --git a/packages/locales/src/default/home.ts b/packages/locales/src/default/home.ts
index b0ef8edeb80..7019f052646 100644
--- a/packages/locales/src/default/home.ts
+++ b/packages/locales/src/default/home.ts
@@ -40,6 +40,7 @@ export default {
'brief.title': 'Brief',
'brief.viewAllTasks': 'View all tasks',
'brief.viewRun': 'View run',
+ 'freeCreditBadge.label': 'Exclusive {{amount}} free credits for {{model}}',
'project.create': 'New project',
'project.deleteConfirm':
"This project will be deleted and can't be recovered. Confirm to continue.",
diff --git a/src/business/client/features/HomeFreeCreditBadge.tsx b/src/business/client/features/HomeFreeCreditBadge.tsx
new file mode 100644
index 00000000000..bedbd0e1b9a
--- /dev/null
+++ b/src/business/client/features/HomeFreeCreditBadge.tsx
@@ -0,0 +1,3 @@
+export default function HomeFreeCreditBadge() {
+ return null;
+}
diff --git a/src/routes/(main)/home/features/index.tsx b/src/routes/(main)/home/features/index.tsx
index 50d9e4c89dd..2c5c670055c 100644
--- a/src/routes/(main)/home/features/index.tsx
+++ b/src/routes/(main)/home/features/index.tsx
@@ -3,6 +3,7 @@
import { Flexbox } from '@lobehub/ui';
import { memo } from 'react';
+import HomeFreeCreditBadge from '@/business/client/features/HomeFreeCreditBadge';
import DailyBrief from '@/features/DailyBrief';
import { useUserStore } from '@/store/user';
import { authSelectors } from '@/store/user/slices/auth/selectors';
@@ -16,6 +17,7 @@ const Home = memo(() => {
return (
<Flexbox gap={40}>
+ <HomeFreeCreditBadge />
<Flexbox gap={24}>
<Flexbox gap={8}>
<AgentSelect />