mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-14 16:14:28 +00:00
fix: added missing focus grid to the newtab page (#249)
This commit is contained in:
@@ -2,12 +2,11 @@ import { type FC, Suspense } from 'react'
|
||||
import { HashRouter, Navigate, Route, Routes, useParams } from 'react-router'
|
||||
|
||||
import { NewTab } from '../newtab/index/NewTab'
|
||||
import { NewTabLayout } from '../newtab/layout/NewTabLayout'
|
||||
import { Personalize } from '../newtab/personalize/Personalize'
|
||||
|
||||
import { FeaturesPage } from '../onboarding/features/Features'
|
||||
import { Onboarding } from '../onboarding/index/Onboarding'
|
||||
import { StepsLayout } from '../onboarding/steps/StepsLayout'
|
||||
|
||||
import { AISettingsPage } from './ai-settings/AISettingsPage'
|
||||
import { ConnectMCP } from './connect-mcp/ConnectMCP'
|
||||
import { CreateGraphWrapper } from './create-graph/CreateGraphWrapper'
|
||||
@@ -58,7 +57,7 @@ export const App: FC = () => {
|
||||
{/* Main app with sidebar */}
|
||||
<Route element={<SidebarLayout />}>
|
||||
{/* Home routes */}
|
||||
<Route path="home">
|
||||
<Route path="home" element={<NewTabLayout />}>
|
||||
<Route index element={<NewTab />} />
|
||||
<Route path="personalize" element={<Personalize />} />
|
||||
</Route>
|
||||
|
||||
10
apps/agent/entrypoints/newtab/layout/NewTabFocusGrid.tsx
Normal file
10
apps/agent/entrypoints/newtab/layout/NewTabFocusGrid.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { FC } from 'react'
|
||||
|
||||
export const NewTabFocusGrid: FC = () => {
|
||||
return (
|
||||
<div className="pointer-events-none absolute inset-0 overflow-hidden">
|
||||
<div className="absolute inset-0 bg-grid-pattern"></div>
|
||||
<div className="absolute inset-0 bg-gradient-radial-focus"></div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
12
apps/agent/entrypoints/newtab/layout/NewTabLayout.tsx
Normal file
12
apps/agent/entrypoints/newtab/layout/NewTabLayout.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { FC } from 'react'
|
||||
import { Outlet } from 'react-router'
|
||||
import { NewTabFocusGrid } from './NewTabFocusGrid'
|
||||
|
||||
export const NewTabLayout: FC = () => {
|
||||
return (
|
||||
<>
|
||||
<NewTabFocusGrid />
|
||||
<Outlet />
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user