autocommit 20-05-2024-08-23

This commit is contained in:
Jasen Qin 2024-05-20 08:23:36 +10:00
parent 60b916c4d8
commit 4985c46814
2 changed files with 49 additions and 6 deletions

View File

@ -0,0 +1,49 @@
import { Container } from '@mantine/core'
import { Flex, Button } from '@mantine/core'
import React from "react"
const NavLink = (props: any) =>
<li className="nav-item">
<a className="nav-link" href={props.href}>
{props.children}
</a>
</li>
const Text = (props: any) =>
<p>{props.children}</p>
export default function InventoryPage() {
const demoProps = {
bg: 'var(--mantine-color-blue-light)',
h: 50,
mt: 'md',
}
return (
<>
<Container {...demoProps}>Default Container</Container>
<Container size="xs" {...demoProps}>
xs Container
</Container>
<Container px={0} size="30rem" {...demoProps}>
30rem Container without padding
</Container>
<Flex
mih={50}
bg="rgba(0, 0, 0, .3)"
gap="md"
justify="flex-start"
align="flex-start"
direction="row"
wrap="wrap"
>
<Button>Button 1</Button>
<Button>Button 2</Button>
<Button>Button 3</Button>
</Flex>
</>
)
}

View File

@ -1,6 +0,0 @@
module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
],
}