Title & Big text Updates (#781)
This commit is contained in:
parent
8a0a2523ca
commit
2f51c22141
|
@ -338,7 +338,7 @@ export const App = ({
|
|||
key={staticKey}
|
||||
items={[
|
||||
<Box flexDirection="column" key="header">
|
||||
<Header />
|
||||
<Header title={process.env.GEMINI_CLI_TITLE} />
|
||||
<Tips config={config} />
|
||||
</Box>,
|
||||
...history.map((h) => (
|
||||
|
|
|
@ -18,15 +18,19 @@ const asciiArtLogo = `
|
|||
╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝
|
||||
`;
|
||||
|
||||
export const Header: React.FC = () => (
|
||||
interface HeaderProps {
|
||||
title?: string;
|
||||
}
|
||||
|
||||
export const Header: React.FC<HeaderProps> = ({ title = asciiArtLogo }) => (
|
||||
<>
|
||||
<Box marginBottom={1} alignItems="flex-start">
|
||||
{Colors.GradientColors ? (
|
||||
<Gradient colors={Colors.GradientColors}>
|
||||
<Text>{asciiArtLogo}</Text>
|
||||
<Text>{title}</Text>
|
||||
</Gradient>
|
||||
) : (
|
||||
<Text>{asciiArtLogo}</Text>
|
||||
<Text>{title}</Text>
|
||||
)}
|
||||
</Box>
|
||||
</>
|
||||
|
|
Loading…
Reference in New Issue