Stijnus commited on
Commit
aa02448
·
1 Parent(s): 220e2da

Update _index.tsx

Browse files

Removed the settings button in the landingpage.

Files changed (1) hide show
  1. app/routes/_index.tsx +6 -11
app/routes/_index.tsx CHANGED
@@ -4,9 +4,6 @@ import { BaseChat } from '~/components/chat/BaseChat';
4
  import { Chat } from '~/components/chat/Chat.client';
5
  import { Header } from '~/components/header/Header';
6
  import BackgroundRays from '~/components/ui/BackgroundRays';
7
- import { ControlPanel } from '~/components/@settings';
8
- import { SettingsButton } from '~/components/ui/SettingsButton';
9
- import { useState } from 'react';
10
 
11
  export const meta: MetaFunction = () => {
12
  return [{ title: 'Bolt' }, { name: 'description', content: 'Talk with Bolt, an AI assistant from StackBlitz' }];
@@ -14,20 +11,18 @@ export const meta: MetaFunction = () => {
14
 
15
  export const loader = () => json({});
16
 
 
 
 
 
 
 
17
  export default function Index() {
18
- const [showControlPanel, setShowControlPanel] = useState(false);
19
-
20
  return (
21
  <div className="flex flex-col h-full w-full bg-bolt-elements-background-depth-1">
22
  <BackgroundRays />
23
  <Header />
24
  <ClientOnly fallback={<BaseChat />}>{() => <Chat />}</ClientOnly>
25
- <div className="fixed bottom-4 right-4">
26
- <SettingsButton onClick={() => setShowControlPanel(true)} />
27
- </div>
28
- <ClientOnly>
29
- {() => <ControlPanel open={showControlPanel} onClose={() => setShowControlPanel(false)} />}
30
- </ClientOnly>
31
  </div>
32
  );
33
  }
 
4
  import { Chat } from '~/components/chat/Chat.client';
5
  import { Header } from '~/components/header/Header';
6
  import BackgroundRays from '~/components/ui/BackgroundRays';
 
 
 
7
 
8
  export const meta: MetaFunction = () => {
9
  return [{ title: 'Bolt' }, { name: 'description', content: 'Talk with Bolt, an AI assistant from StackBlitz' }];
 
11
 
12
  export const loader = () => json({});
13
 
14
+ /**
15
+ * Landing page component for Bolt
16
+ * Note: Settings functionality should ONLY be accessed through the sidebar menu.
17
+ * Do not add settings button/panel to this landing page as it was intentionally removed
18
+ * to keep the UI clean and consistent with the design system.
19
+ */
20
  export default function Index() {
 
 
21
  return (
22
  <div className="flex flex-col h-full w-full bg-bolt-elements-background-depth-1">
23
  <BackgroundRays />
24
  <Header />
25
  <ClientOnly fallback={<BaseChat />}>{() => <Chat />}</ClientOnly>
 
 
 
 
 
 
26
  </div>
27
  );
28
  }