From f3275e459fe9e4acb29fac5133f58236250a4355 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 26 Jan 2025 22:34:32 +0800 Subject: [PATCH] :sparkles: feat: update Novita AI logos and colors --- src/Novita/components/Avatar.tsx | 6 +++--- src/Novita/components/Color.tsx | 16 ++++------------ src/Novita/components/Mono.tsx | 7 ++----- src/Novita/components/Text.tsx | 17 +++-------------- src/Novita/index.md | 1 - src/Novita/index.ts | 4 +--- src/Novita/style.ts | 5 ++--- src/toc.ts | 5 ++--- 8 files changed, 17 insertions(+), 44 deletions(-) diff --git a/src/Novita/components/Avatar.tsx b/src/Novita/components/Avatar.tsx index 584cabbd..c5fdf908 100644 --- a/src/Novita/components/Avatar.tsx +++ b/src/Novita/components/Avatar.tsx @@ -4,7 +4,7 @@ import { memo } from 'react'; import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar'; -import { COLOR_GRADIENT, TITLE } from '../style'; +import { COLOR_PRIMARY, TITLE } from '../style'; import Mono from './Mono'; export type AvatarProps = Omit; @@ -14,8 +14,8 @@ const Avatar = memo(({ background, ...rest }) => { diff --git a/src/Novita/components/Color.tsx b/src/Novita/components/Color.tsx index 05eafbf5..98250e5a 100644 --- a/src/Novita/components/Color.tsx +++ b/src/Novita/components/Color.tsx @@ -2,19 +2,17 @@ import { forwardRef } from 'react'; -import { useFillId } from '@/hooks/useFillId'; import type { IconType } from '@/types'; -import { TITLE } from '../style'; +import { COLOR_PRIMARY, TITLE } from '../style'; const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => { - const { fill, id } = useFillId(TITLE); return ( { {TITLE} - - - - - - ); }); diff --git a/src/Novita/components/Mono.tsx b/src/Novita/components/Mono.tsx index f00ddc55..d4479856 100644 --- a/src/Novita/components/Mono.tsx +++ b/src/Novita/components/Mono.tsx @@ -14,16 +14,13 @@ const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => { height={size} ref={ref} style={{ flex: 'none', lineHeight: 1, ...style }} - viewBox="0 0 24 24" + viewBox="0 0 47 47" width={size} xmlns="http://www.w3.org/2000/svg" {...rest} > {TITLE} - + ); }); diff --git a/src/Novita/components/Text.tsx b/src/Novita/components/Text.tsx index 30f1bcf8..ebdc7ddb 100644 --- a/src/Novita/components/Text.tsx +++ b/src/Novita/components/Text.tsx @@ -14,27 +14,16 @@ const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => { height={size} ref={ref} style={{ flex: 'none', lineHeight: 1, ...style }} - viewBox="0 0 126 24" + viewBox="0 0 96 24" xmlns="http://www.w3.org/2000/svg" {...rest} > {TITLE} - - - - - - ); }); diff --git a/src/Novita/index.md b/src/Novita/index.md index 4eab9729..2990b265 100644 --- a/src/Novita/index.md +++ b/src/Novita/index.md @@ -37,7 +37,6 @@ import { Flexbox } from 'react-layout-kit'; export default () => ( - ); ``` diff --git a/src/Novita/index.ts b/src/Novita/index.ts index 847d6c93..51ca6fb3 100644 --- a/src/Novita/index.ts +++ b/src/Novita/index.ts @@ -5,14 +5,13 @@ import Color from './components/Color'; import Combine from './components/Combine'; import Mono from './components/Mono'; import Text from './components/Text'; -import { COLOR_GRADIENT, COLOR_PRIMARY, TITLE } from './style'; +import { COLOR_PRIMARY, TITLE } from './style'; export type CompoundedIcon = typeof Mono & { Avatar: typeof Avatar; Color: typeof Color; Combine: typeof Combine; Text: typeof Text; - colorGradient: string; colorPrimary: string; title: string; }; @@ -23,7 +22,6 @@ Icons.Text = Text; Icons.Combine = Combine; Icons.Avatar = Avatar; Icons.colorPrimary = COLOR_PRIMARY; -Icons.colorGradient = COLOR_GRADIENT; Icons.title = TITLE; export default Icons; diff --git a/src/Novita/style.ts b/src/Novita/style.ts index cfef6cbc..a6d84ec3 100644 --- a/src/Novita/style.ts +++ b/src/Novita/style.ts @@ -1,5 +1,4 @@ -export const TITLE = 'novita.ai'; +export const TITLE = 'Novita AI'; export const TEXT_MULTIPLE = 0.7; export const SPACE_MULTIPLE = 0.25; -export const COLOR_PRIMARY = '#6847f5'; -export const COLOR_GRADIENT = 'linear-gradient(-45deg, #A717FF, #2622FF)'; +export const COLOR_PRIMARY = '#23D57C'; diff --git a/src/toc.ts b/src/toc.ts index 53f317ff..ad82674a 100644 --- a/src/toc.ts +++ b/src/toc.ts @@ -1487,8 +1487,7 @@ const toc: IconToc[] = [ title: 'Nova', }, { - color: '#6847f5', - colorGradient: 'linear-gradient(-45deg, #A717FF, #2622FF)', + color: '#23D57C', desc: 'https://novita.ai/', docsUrl: 'novita', fullTitle: 'Novita', @@ -1504,7 +1503,7 @@ const toc: IconToc[] = [ hasTextCn: false, hasTextColor: false, }, - title: 'novita.ai', + title: 'Novita AI', }, { color: '#74B71B',