bolt.diy/app/routes/_index.tsx

29 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2024-09-26 16:45:41 +00:00
import { json, type MetaFunction } from '@remix-run/cloudflare';
2024-07-10 16:44:39 +00:00
import { ClientOnly } from 'remix-utils/client-only';
import { BaseChat } from '~/components/chat/BaseChat';
import { Chat } from '~/components/chat/Chat.client';
import { Header } from '~/components/header/Header';
import BackgroundRays from '~/components/ui/BackgroundRays';
2024-07-10 16:44:39 +00:00
export const meta: MetaFunction = () => {
return [{ title: 'Bolt' }, { name: 'description', content: 'Talk with Bolt, an AI assistant from StackBlitz' }];
};
2024-09-26 16:45:41 +00:00
export const loader = () => json({});
2024-07-11 19:25:19 +00:00
/**
* Landing page component for Bolt
* Note: Settings functionality should ONLY be accessed through the sidebar menu.
* Do not add settings button/panel to this landing page as it was intentionally removed
* to keep the UI clean and consistent with the design system.
*/
2024-07-10 16:44:39 +00:00
export default function Index() {
return (
2024-11-20 19:51:39 +00:00
<div className="flex flex-col h-full w-full bg-bolt-elements-background-depth-1">
<BackgroundRays />
2024-07-10 16:44:39 +00:00
<Header />
<ClientOnly fallback={<BaseChat />}>{() => <Chat />}</ClientOnly>
</div>
);
}