From 0fca34827075115f11c37beb32ca1b2e35322e07 Mon Sep 17 00:00:00 2001 From: Jason Qin Date: Sat, 15 Jun 2024 22:35:26 +1000 Subject: [PATCH] autocommit 15-06-2024-22-35 --- pos-frontend/app/global.css | 5 ++ pos-frontend/app/inventory/page.tsx | 90 ++++++----------------------- pos-frontend/app/layout.tsx | 12 +--- 3 files changed, 23 insertions(+), 84 deletions(-) create mode 100644 pos-frontend/app/global.css diff --git a/pos-frontend/app/global.css b/pos-frontend/app/global.css new file mode 100644 index 0000000..fc78bed --- /dev/null +++ b/pos-frontend/app/global.css @@ -0,0 +1,5 @@ +html, +body { + max-width: 100%; + overflow-x: hidden; +} \ No newline at end of file diff --git a/pos-frontend/app/inventory/page.tsx b/pos-frontend/app/inventory/page.tsx index 3bab1dc..8b857d5 100644 --- a/pos-frontend/app/inventory/page.tsx +++ b/pos-frontend/app/inventory/page.tsx @@ -1,13 +1,9 @@ "use client" import React, { useState } from 'react' -import { Box, Container, Paper, Table, Button, TextInput, useMantineTheme, Flex, Image, Grid } from '@mantine/core' -import Example from './query' -// import { Image as NextImage } from 'next/image' +import { Box, Container, Paper, Table, Button, TextInput, useMantineTheme, Flex, Image, Grid, Space, Divider } from '@mantine/core' import NextImage from 'next/image' - import Prawn from "../images/aussietigerprawns.jpg" -// import Prawn from "/aussietigerprawns.jpg" interface InventoryItem { id: number @@ -18,9 +14,6 @@ interface InventoryItem { async function fetchBlob(url: string) { const response = await fetch(url) - - // Here is the significant part - // reading the stream as a blob instead of json return response.blob() } @@ -56,7 +49,7 @@ export default function InventoryPage() { return ( - + {/* @@ -77,9 +70,11 @@ export default function InventoryPage() { ))}
-
+
*/} - + {/* use a grid */} + +
- {/* - - - - - - - - - - - - - */} - - {/* maybe instead, do 4 items on small. And double each time To 8 or 16 */} - - - - - {/* - - */} - - + + - + - - {/* */} - {/* hi */} + + + + + - + {/* 1 2 3 4 - + */} - - {/* would fetch the source from axios */} - {/* - - - - - - - - - */} - {/* */} - - {/* TIGER PRAWNS */} - - {/* from public import everything .jpg */} - - {/* create an Image for each */} - - {/* */} - + {/* why is there a scroll area on the grid */}
) } diff --git a/pos-frontend/app/layout.tsx b/pos-frontend/app/layout.tsx index 47aabff..e0a0a25 100644 --- a/pos-frontend/app/layout.tsx +++ b/pos-frontend/app/layout.tsx @@ -1,5 +1,3 @@ -// "use client" - import '@mantine/core/styles.css' import { hydrate, @@ -7,7 +5,6 @@ import { QueryClientProvider, } from '@tanstack/react-query' import { ColorSchemeScript, MantineProvider } from '@mantine/core' -// import { useState } from 'react' import Providers from './query-provider' import Search from './search' @@ -16,30 +13,23 @@ export const metadata = { description: 'I have followed setup instructions carefully', } -// const queryClient = new QueryClient() +import "./global.css" export default function RootLayout({ children, }: { children: React.ReactNode }) { - // const [queryClient] = useState(() => new QueryClient()) return ( - {/*
*/} - {/* */} - {/*
*/} - {/* can add a theme */} - {/* */} {children} - {/* */} )