mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-22 05:34:45 +08:00
feat: rewording and add initial animation
This commit is contained in:
@@ -58,11 +58,13 @@ export function Hero({ className }: { className?: string }) {
|
||||
</h1>
|
||||
<p
|
||||
className="mt-8 scale-105 text-center text-2xl text-shadow-sm"
|
||||
style={{ color: "rgb(182,182,188)" }}
|
||||
style={{ color: "rgb(184,184,192)" }}
|
||||
>
|
||||
An open-source SuperAgent harness that researches, codes, and creates.
|
||||
With
|
||||
<br />
|
||||
With the help of sandboxes, memories, tools and skills, it handles
|
||||
the help of sandboxes, memories, tools, skills and subagents, it
|
||||
handles
|
||||
<br />
|
||||
different levels of tasks that could take minutes to hours.
|
||||
</p>
|
||||
|
||||
@@ -16,8 +16,9 @@ const features: BentoCardProps[] = [
|
||||
{
|
||||
color: COLOR,
|
||||
label: "Long Task Running",
|
||||
title: "Planning and Reasoning",
|
||||
description: "Plans ahead, reasons through complexity, then acts",
|
||||
title: "Planning and Sub-tasking",
|
||||
description:
|
||||
"Plans ahead, reasons through complexity, then executes sequentially or in parallel",
|
||||
},
|
||||
{
|
||||
color: COLOR,
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
"use client";
|
||||
|
||||
import { useSearchParams } from "next/navigation";
|
||||
import { useEffect } from "react";
|
||||
|
||||
import { useI18n } from "@/core/i18n/hooks";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
let waved = false;
|
||||
|
||||
export function Welcome({ className }: { className?: string }) {
|
||||
const { t } = useI18n();
|
||||
const searchParams = useSearchParams();
|
||||
useEffect(() => {
|
||||
waved = true;
|
||||
}, []);
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
@@ -16,9 +22,16 @@ export function Welcome({ className }: { className?: string }) {
|
||||
)}
|
||||
>
|
||||
<div className="text-2xl font-bold">
|
||||
{searchParams.get("mode") === "skill"
|
||||
? `✨ ${t.welcome.createYourOwnSkill} ✨`
|
||||
: t.welcome.greeting}
|
||||
{searchParams.get("mode") === "skill" ? (
|
||||
`✨ ${t.welcome.createYourOwnSkill} ✨`
|
||||
) : (
|
||||
<div className="flex items-center gap-2">
|
||||
<div className={cn("inline-block", !waved ? "animate-wave" : "")}>
|
||||
👋
|
||||
</div>
|
||||
<div>{t.welcome.greeting}</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{searchParams.get("mode") === "skill" ? (
|
||||
<div className="text-muted-foreground text-sm">
|
||||
|
||||
Reference in New Issue
Block a user