From dc75a1098921b4daaca3a23c520d5e29bfe772e5 Mon Sep 17 00:00:00 2001 From: Nite Knite Date: Thu, 15 May 2025 12:38:20 +0800 Subject: [PATCH] feat: update branding (#19719) Co-authored-by: twwu --- 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 --------- .../components/base/premium-badge/index.css | 2 +- .../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 | 15 ++++-- web/public/favicon.ico | Bin 15406 -> 16958 bytes web/public/logo/logo-monochrome-white.svg | 12 +++++ web/public/logo/logo-site-dark.png | Bin 4270 -> 2568 bytes web/public/logo/logo-site.png | Bin 5809 -> 1214 bytes web/public/logo/logo.png | Bin 6249 -> 0 bytes web/public/logo/logo.svg | 12 +++++ 19 files changed, 122 insertions(+), 67 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.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')}