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