This commit is contained in:
Cogent Apps
2023-03-08 13:30:11 -08:00
committed by GitHub
parent 1796c307d2
commit 27d0314648
16 changed files with 828 additions and 532 deletions

View File

@@ -0,0 +1,33 @@
import styled from '@emotion/styled';
import { Button } from '@mantine/core';
import MessageInput from '../input';
import SettingsDrawer from '../settings';
import { useAppContext } from '../../context';
import { Page } from '../page';
const Container = styled.div`
flex-grow: 1;
padding-bottom: 5vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-family: "Work Sans", sans-serif;
line-height: 1.7;
gap: 1rem;
`;
export default function LandingPage(props: any) {
const context = useAppContext();
return <Page id={'landing'} showSubHeader={true}>
<Container>
<p>Hello, how can I help you today?</p>
{!context.apiKeys.openai && (
<Button size="xs" variant="light" compact onClick={() => context.settings.open('user', 'openai-api-key')}>
Connect your OpenAI account to get started
</Button>
)}
</Container>
</Page>;
}