From c5e7d240c6314b738939dc999e2588217812cadc Mon Sep 17 00:00:00 2001 From: nite-knite Date: Wed, 14 May 2025 18:08:12 +0800 Subject: [PATCH] feat: update logo --- web/app/account/header.tsx | 14 +++--- .../chat/chat-with-history/sidebar/index.tsx | 6 +-- .../chat/embedded-chatbot/header/index.tsx | 6 +-- .../base/chat/embedded-chatbot/index.tsx | 4 +- web/app/components/base/logo/dify-logo.tsx | 45 ++++++++++++++++++ web/app/components/base/logo/logo-site.tsx | 22 --------- .../custom/custom-web-app-brand/index.tsx | 6 +-- .../components/header/account-about/index.tsx | 22 ++++----- web/app/components/header/index.tsx | 8 ++-- .../share/text-generation/index.tsx | 6 +-- .../education-apply/education-apply-page.tsx | 9 ++-- web/app/signin/_header.tsx | 4 +- web/public/logo/logo-monochrome-white.png | Bin 0 -> 1090 bytes web/public/logo/logo-monochrome-white.svg | 12 +++++ web/public/logo/logo.png | Bin 6249 -> 0 bytes web/public/logo/logo.svg | 12 +++++ 16 files changed, 111 insertions(+), 65 deletions(-) create mode 100644 web/app/components/base/logo/dify-logo.tsx delete mode 100644 web/app/components/base/logo/logo-site.tsx create mode 100644 web/public/logo/logo-monochrome-white.png create mode 100644 web/public/logo/logo-monochrome-white.svg delete mode 100644 web/public/logo/logo.png create mode 100644 web/public/logo/logo.svg diff --git a/web/app/account/header.tsx b/web/app/account/header.tsx index 2bb89552c8..11b6beec08 100644 --- a/web/app/account/header.tsx +++ b/web/app/account/header.tsx @@ -4,23 +4,25 @@ import { RiArrowRightUpLine, RiRobot2Line } from '@remixicon/react' import { useRouter } from 'next/navigation' import Button from '../components/base/button' import Avatar from './avatar' -import LogoSite from '@/app/components/base/logo/logo-site' +import DifyLogo from '@/app/components/base/logo/dify-logo' +import { useCallback } from 'react' const Header = () => { const { t } = useTranslation() const router = useRouter() - const back = () => { + const back = useCallback(() => { router.back() - } + }, [router]) + return (
- +
-
-

{t('common.account.account')}

+
+

{t('common.account.account')}