From d5f4a97394d9634cdedf2461fead82c597003d6f Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Mon, 3 Mar 2025 15:32:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20Update=20new=20grok=20l?= =?UTF-8?q?ogo=20(fix=20#79)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Grok/components/Avatar.tsx | 25 ++++++++++++++++++++++++- src/Grok/components/Combine.tsx | 4 ++-- src/Grok/components/Mono.tsx | 29 ++++++++++++++++++++++++++++- src/Grok/components/Text.tsx | 4 ++-- src/Grok/style.ts | 4 ++-- src/toc.ts | 2 +- 6 files changed, 59 insertions(+), 9 deletions(-) diff --git a/src/Grok/components/Avatar.tsx b/src/Grok/components/Avatar.tsx index 0bdb7de4..25a8fcb3 100644 --- a/src/Grok/components/Avatar.tsx +++ b/src/Grok/components/Avatar.tsx @@ -1 +1,24 @@ -export { default } from '@/XAI//components/Avatar'; +'use client'; + +import { memo } from 'react'; + +import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar'; + +import { COLOR_PRIMARY, TITLE } from '../style'; +import Mono from './Mono'; + +export type AvatarProps = Omit; + +const Avatar = memo(({ background, ...rest }) => { + return ( + + ); +}); + +export default Avatar; diff --git a/src/Grok/components/Combine.tsx b/src/Grok/components/Combine.tsx index 290a00e4..6796d569 100644 --- a/src/Grok/components/Combine.tsx +++ b/src/Grok/components/Combine.tsx @@ -5,7 +5,7 @@ import { memo } from 'react'; import IconCombine, { type IconCombineProps } from '@/features/IconCombine'; import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style'; -import Avatar from './Avatar'; +import Mono from './Mono'; import Text from './Text'; export type CombineProps = Omit; @@ -13,7 +13,7 @@ export type CombineProps = Omit; const Combine = memo(({ ...rest }) => { return ( { + return ( + + {TITLE} + + + ); +}); + +export default Icon; diff --git a/src/Grok/components/Text.tsx b/src/Grok/components/Text.tsx index 2cfc0c7b..61e83119 100644 --- a/src/Grok/components/Text.tsx +++ b/src/Grok/components/Text.tsx @@ -14,12 +14,12 @@ const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => { height={size} ref={ref} style={{ flex: 'none', lineHeight: 1, ...style }} - viewBox="0 0 60 24" + viewBox="0 0 63 24" xmlns="http://www.w3.org/2000/svg" {...rest} > {TITLE} - + ); }); diff --git a/src/Grok/style.ts b/src/Grok/style.ts index bfa81291..93ef64fa 100644 --- a/src/Grok/style.ts +++ b/src/Grok/style.ts @@ -1,4 +1,4 @@ export const TITLE = 'Grok'; export const TEXT_MULTIPLE = 0.75; -export const SPACE_MULTIPLE = 0.25; -export const COLOR_PRIMARY = '#fff'; +export const SPACE_MULTIPLE = 0.2; +export const COLOR_PRIMARY = '#000'; diff --git a/src/toc.ts b/src/toc.ts index 17d17e88..54bcdb8d 100644 --- a/src/toc.ts +++ b/src/toc.ts @@ -1021,7 +1021,7 @@ const toc: IconToc[] = [ title: 'Google', }, { - color: '#fff', + color: '#000', desc: 'https://grok.x.ai', docsUrl: 'grok', fullTitle: 'Grok (xAI)',