Instance pages
This commit is contained in:
parent
31c71deb59
commit
b4bd190b55
5 changed files with 45 additions and 2 deletions
|
|
@ -13,7 +13,9 @@
|
|||
"title": "polyfrost-launcher",
|
||||
"width": 1280,
|
||||
"height": 800,
|
||||
"resizable": false,
|
||||
"minWidth": 1080,
|
||||
"minHeight": 600,
|
||||
"resizable": true,
|
||||
"center": true,
|
||||
"decorations": false,
|
||||
"shadow": true
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ function InstanceGroup(props: InstanceGroupProps) {
|
|||
collisionDetector={closestCenter}
|
||||
>
|
||||
<DragDropSensors />
|
||||
<div class="grid grid-cols-4 gap-4">
|
||||
<div class="grid grid-cols-4 2xl:grid-cols-6 gap-4">
|
||||
<SortableProvider ids={ids()}>
|
||||
<For each={instances()}>{item => <InstanceCard {...item} />}</For>
|
||||
</SortableProvider>
|
||||
|
|
|
|||
9
src/ui/pages/instances/InstanceMods.tsx
Normal file
9
src/ui/pages/instances/InstanceMods.tsx
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
function InstanceMods() {
|
||||
return (
|
||||
<div>
|
||||
<h1>Mods Config</h1>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default InstanceMods;
|
||||
21
src/ui/pages/instances/InstanceOverview.tsx
Normal file
21
src/ui/pages/instances/InstanceOverview.tsx
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import { Route } from '@solidjs/router';
|
||||
import InstanceMods from './InstanceMods';
|
||||
|
||||
function InstanceOverview() {
|
||||
return (
|
||||
<div>
|
||||
<h1>Hello World</h1>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
InstanceOverview.prototype.getRoutes = function () {
|
||||
return (
|
||||
<>
|
||||
<Route path="/" component={InstanceOverview} />
|
||||
<Route path="/mods" component={InstanceMods} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default InstanceOverview;
|
||||
11
src/ui/pages/instances/index.tsx
Normal file
11
src/ui/pages/instances/index.tsx
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { A } from '@solidjs/router';
|
||||
|
||||
function InstancePage() {
|
||||
return (
|
||||
<div>
|
||||
<A href="/">Overview</A>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default InstancePage;
|
||||
Loading…
Add table
Reference in a new issue