mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
feat: Refactor CLI header for customizable logo text (#658)
This commit is contained in:
@@ -5,28 +5,20 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Box, Text } from 'ink';
|
||||
import { Box } from 'ink';
|
||||
import Gradient from 'ink-gradient';
|
||||
import BigText from 'ink-big-text';
|
||||
import { Colors } from '../colors.js';
|
||||
|
||||
const asciiArtLogo = `
|
||||
██████╗ ███████╗███╗ ███╗██╗███╗ ██╗██╗
|
||||
██╔════╝ ██╔════╝████╗ ████║██║████╗ ██║██║
|
||||
██║ ███╗█████╗ ██╔████╔██║██║██╔██╗ ██║██║
|
||||
██║ ██║██╔══╝ ██║╚██╔╝██║██║██║╚██╗██║██║
|
||||
╚██████╔╝███████╗██║ ╚═╝ ██║██║██║ ╚████║██║
|
||||
╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝
|
||||
`;
|
||||
|
||||
export const Header: React.FC = () => (
|
||||
<>
|
||||
<Box marginBottom={1} alignItems="flex-start">
|
||||
<Box alignItems="flex-start">
|
||||
{Colors.GradientColors ? (
|
||||
<Gradient colors={Colors.GradientColors}>
|
||||
<Text>{asciiArtLogo}</Text>
|
||||
<BigText text="GEMINI" letterSpacing={0} space={false} />
|
||||
</Gradient>
|
||||
) : (
|
||||
<Text>{asciiArtLogo}</Text>
|
||||
<BigText text="GEMINI" letterSpacing={0} space={false} />
|
||||
)}
|
||||
</Box>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user