Add playground (#5359)

This commit is contained in:
Matthias Mair 2023-08-06 13:59:03 +02:00 committed by GitHub
parent 2f224b3c19
commit 6e13034bc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 0 deletions

View File

@ -22,6 +22,7 @@ export const footerLinks = [
export const navTabs = [
{ text: <Trans>Home</Trans>, name: 'home' },
{ text: <Trans>Dashboard</Trans>, name: 'dashboard' },
{ text: <Trans>Playground</Trans>, name: 'playground' },
{ text: <Trans>Parts</Trans>, name: 'parts' },
{ text: <Trans>Stock</Trans>, name: 'stock' },
{ text: <Trans>Build</Trans>, name: 'build' }

View File

@ -15,5 +15,11 @@ export const menuItems: MenuLinkItem[] = [
text: <Trans>Profile page</Trans>,
link: '/profile/user',
doctext: <Trans>User attributes and design settings.</Trans>
},
{
id: 'playground',
text: <Trans>Playground</Trans>,
link: '/playground',
highlight: true
}
];

View File

@ -0,0 +1,23 @@
import { Trans } from '@lingui/macro';
import { Group, Text } from '@mantine/core';
import { PlaceholderPill } from '../../components/items/Placeholder';
import { StylishText } from '../../components/items/StylishText';
export default function Playground() {
return (
<>
<Group>
<StylishText>
<Trans>Playground</Trans>
</StylishText>
<PlaceholderPill />
</Group>
<Text>
<Trans>
This page is a showcase for the possibilities of Platform UI.
</Trans>
</Text>
</>
);
}

View File

@ -8,6 +8,9 @@ export const LayoutComponent = Loadable(
lazy(() => import('./components/nav/Layout'))
);
export const Home = Loadable(lazy(() => import('./pages/Index/Home')));
export const Playground = Loadable(
lazy(() => import('./pages/Index/Playground'))
);
export const Parts = Loadable(lazy(() => import('./pages/Index/Part')));
export const Stock = Loadable(lazy(() => import('./pages/Index/Stock')));
export const Build = Loadable(lazy(() => import('./pages/Index/Build')));
@ -52,6 +55,10 @@ export const router = createBrowserRouter(
path: 'dashboard/',
element: <Dashboard />
},
{
path: 'playground/',
element: <Playground />
},
{
path: 'parts/',
element: <Parts />