first commit

This commit is contained in:
2024-05-21 13:06:55 +08:00
commit a8877ab28e
33 changed files with 20839 additions and 0 deletions

19
src/components/NavBar.js Normal file
View File

@@ -0,0 +1,19 @@
import {AppShell, NavLink} from '@mantine/core';
import { useNavigate } from 'react-router-dom';
const NavBar = () => {
const navigate = useNavigate();
return(
<AppShell.Navbar p="md" style={{gap: "10px"}}>
<NavLink label = "Home"
onClick={() => navigate('/home')} style={{margin: "5px"}} />
<NavLink label="Lists"
onClick={() => navigate('/lists')}
style={{margin: "5px"}} />
</AppShell.Navbar>
);
};
export default NavBar;