diff --git a/src/app/components/page/Page.tsx b/src/app/components/page/Page.tsx index 285b1813..5f7c8280 100644 --- a/src/app/components/page/Page.tsx +++ b/src/app/components/page/Page.tsx @@ -43,10 +43,12 @@ export function PageHero({ icon, title, subTitle, + children, }: { icon: ReactNode; title: ReactNode; subTitle: ReactNode; + children?: ReactNode; }) { return ( @@ -61,6 +63,7 @@ export function PageHero({ {subTitle} + {children} ); } diff --git a/src/app/pages/App.tsx b/src/app/pages/App.tsx index 622b6a9e..dddcb518 100644 --- a/src/app/pages/App.tsx +++ b/src/app/pages/App.tsx @@ -41,17 +41,12 @@ import { FeatureCheck } from './FeatureCheck'; import { ClientLayout, ClientRoot } from './client'; import { Home, HomeRouteRoomProvider, HomeSearch } from './client/home'; import { Direct, DirectRouteRoomProvider } from './client/direct'; -import { - RouteSpaceProvider, - Space, - SpaceIndexRedirect, - SpaceRouteRoomProvider, - SpaceSearch, -} from './client/space'; -import { Explore, ExploreRedirect, FeaturedRooms, PublicRooms } from './client/explore'; -import { Notifications, Inbox, InboxRedirect, Invites } from './client/inbox'; +import { RouteSpaceProvider, Space, SpaceRouteRoomProvider, SpaceSearch } from './client/space'; +import { Explore, FeaturedRooms, PublicRooms } from './client/explore'; +import { Notifications, Inbox, Invites } from './client/inbox'; import { setAfterLoginRedirectPath } from './afterLoginRedirectPath'; import { Room } from '../features/room'; +import { WelcomePage } from './client/WelcomePage'; const queryClient = new QueryClient(); @@ -92,7 +87,7 @@ const createRouter = (clientConfig: ClientConfig) => { > }> }> - welcome

} /> + } /> create

} /> join

} /> } /> @@ -106,7 +101,7 @@ const createRouter = (clientConfig: ClientConfig) => { /> }> - welcome

} /> + } /> create

} /> { }> }> - } /> + } /> lobby

} /> } /> { }> - } /> + } /> } /> } /> }> - } /> + } /> } /> } /> diff --git a/src/app/pages/client/WelcomePage.tsx b/src/app/pages/client/WelcomePage.tsx new file mode 100644 index 00000000..39ee4efa --- /dev/null +++ b/src/app/pages/client/WelcomePage.tsx @@ -0,0 +1,64 @@ +import React from 'react'; +import { Box, Button, Icon, Icons, Text, config, toRem } from 'folds'; +import { Page, PageHero, PageHeroSection } from '../../components/page'; +import CinnySVG from '../../../../public/res/svg/cinny.svg'; + +export function WelcomePage() { + return ( + + + + } + title="Welcome to Cinny" + subTitle={ + + Yet anothor matrix client.{' '} + + v3.2.0 + + + } + > + + + + + + + + + + + ); +}