mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
change semantics
Update README deployment steps and add deploy:secrets script to package.json update local inference script and README update lockfile reconfigure package scripts for development update test execution pass server tests Update README with revised Bun commands and workspace details remove pnpm package manager designator create bun server
This commit is contained in:

committed by
Geoff Seemueller

parent
1055cda2f1
commit
497eb22ad8
35
packages/client/src/layout/LayoutComponent.tsx
Normal file
35
packages/client/src/layout/LayoutComponent.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import React from "react";
|
||||
import { Grid, GridItem } from "@chakra-ui/react";
|
||||
import Navigation from "./Navigation";
|
||||
import Routes from "../renderer/routes";
|
||||
import Hero from "./Hero";
|
||||
import Content from "./Content";
|
||||
import { useIsMobile } from "../components/contexts/MobileContext";
|
||||
|
||||
export default function LayoutComponent({ children }) {
|
||||
const isMobile = useIsMobile();
|
||||
|
||||
return (
|
||||
<Grid
|
||||
templateAreas={
|
||||
isMobile
|
||||
? `"nav"
|
||||
"main"`
|
||||
: `"nav main"`
|
||||
}
|
||||
gridTemplateRows={isMobile ? "auto 1fr" : "1fr"}
|
||||
gridTemplateColumns={isMobile ? "1fr" : "auto 1fr"}
|
||||
minHeight="100vh"
|
||||
gap="1"
|
||||
>
|
||||
<GridItem area={"nav"} hidden={false}>
|
||||
<Navigation routeRegistry={Routes}>
|
||||
<Hero />
|
||||
</Navigation>
|
||||
</GridItem>
|
||||
<GridItem area={"main"}>
|
||||
<Content>{children}</Content>
|
||||
</GridItem>
|
||||
</Grid>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user