mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 09:17:53 +00:00
Fix "npx https:...." header issue (#759)
This commit is contained in:
@@ -5,24 +5,28 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Box } from 'ink';
|
||||
import { Box, Text } from 'ink';
|
||||
import Gradient from 'ink-gradient';
|
||||
import BigText from 'ink-big-text';
|
||||
import { Colors } from '../colors.js';
|
||||
|
||||
interface HeaderProps {
|
||||
title?: string;
|
||||
}
|
||||
const asciiArtLogo = `
|
||||
██████╗ ███████╗███╗ ███╗██╗███╗ ██╗██╗
|
||||
██╔════╝ ██╔════╝████╗ ████║██║████╗ ██║██║
|
||||
██║ ███╗█████╗ ██╔████╔██║██║██╔██╗ ██║██║
|
||||
██║ ██║██╔══╝ ██║╚██╔╝██║██║██║╚██╗██║██║
|
||||
╚██████╔╝███████╗██║ ╚═╝ ██║██║██║ ╚████║██║
|
||||
╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝
|
||||
`;
|
||||
|
||||
export const Header: React.FC<HeaderProps> = ({ title = 'GEMINI' }) => (
|
||||
export const Header: React.FC = () => (
|
||||
<>
|
||||
<Box alignItems="flex-start">
|
||||
<Box marginBottom={1} alignItems="flex-start">
|
||||
{Colors.GradientColors ? (
|
||||
<Gradient colors={Colors.GradientColors}>
|
||||
<BigText text={title} letterSpacing={0} space={false} />
|
||||
<Text>{asciiArtLogo}</Text>
|
||||
</Gradient>
|
||||
) : (
|
||||
<BigText text={title} letterSpacing={0} space={false} />
|
||||
<Text>{asciiArtLogo}</Text>
|
||||
)}
|
||||
</Box>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user