diff --git a/client/components/organisms/MenuBar.tsx b/client/components/organisms/MenuBar.tsx new file mode 100644 index 0000000..f75bdae --- /dev/null +++ b/client/components/organisms/MenuBar.tsx @@ -0,0 +1,147 @@ +import * as React from 'react'; +import {AppBar, Box, Toolbar, IconButton, Typography, Menu, Container, Button, Tooltip, MenuItem} from '@mui/material'; +import MenuIcon from '@mui/icons-material/Menu'; +import PetsIcon from '@mui/icons-material/Pets'; +import AccountCircle from '@mui/icons-material/AccountCircle'; + +const pages = ['통합저장소', '태그', '병합하기']; +const settings = ['Profile', 'Account', 'Dashboard', 'Logout']; + +const MenuBar = () => { + const [anchorElNav, setAnchorElNav] = React.useState(null); + const [anchorElUser, setAnchorElUser] = React.useState(null); + + const handleOpenNavMenu = (event: React.MouseEvent) => { + setAnchorElNav(event.currentTarget); + }; + const handleOpenUserMenu = (event: React.MouseEvent) => { + setAnchorElUser(event.currentTarget); + }; + + const handleCloseNavMenu = () => { + setAnchorElNav(null); + }; + + const handleCloseUserMenu = () => { + setAnchorElUser(null); + }; + + return ( + + + + + + MergeDoc + + + + + + + + {pages.map((page) => ( + + {page} + + ))} + + + + + MergeDoc + + + {pages.map((page) => ( + + ))} + + + + + + + + + + {settings.map((setting) => ( + + {setting} + + ))} + + + + + + ); +}; +export default MenuBar; \ No newline at end of file diff --git a/client/pages/index.tsx b/client/pages/index.tsx index 54c5aff..b6b4cf9 100644 --- a/client/pages/index.tsx +++ b/client/pages/index.tsx @@ -2,22 +2,20 @@ import type { NextPage } from "next"; import Head from "next/head"; import Image from "next/image"; import styles from "../styles/Home.module.css"; -import { Button } from "@mui/material"; +import MenuBar from "../components/organisms/MenuBar"; const Home: NextPage = () => { return ( -
+
Create Next App +

Last test for Jenkins + next.js !

- - -

Get started by editing{" "} pages/index.tsx