Skip to content

Commit

Permalink
Modification: button and navigation bar, static
Browse files Browse the repository at this point in the history
  • Loading branch information
analuiza2102 committed Mar 24, 2024
1 parent a5b7c8b commit 216d293
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/Components/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { AppBar, MenuItem, Toolbar, styled} from "@mui/material"



const NavBar = () =>{

const StyledToolbar = styled(Toolbar) (() => ({


display: "flex",
justifyContent: "space-evenly",



}))


return (
<>
<AppBar position="absolute">
<StyledToolbar>
<MenuItem>About</MenuItem>
<MenuItem>Skills</MenuItem>
<MenuItem>Projects</MenuItem>
</StyledToolbar>
</AppBar>
</>
)
}

export default NavBar

36 changes: 36 additions & 0 deletions src/Components/StyledButton/StyledButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { styled } from '@mui/system';

interface StyledButtonProps {
children: React.ReactNode;
}


const StyledButton: React.FC<StyledButtonProps> = ({children}) =>{

const StyledButton = styled("button") (({ theme}) => ({
backgroundColor: "transparent",
border: '1px solid white',
borderRadius: "3px",
padding: "5px 10px" ,
display: "inline-flex",
justifyContent: "center",
alignItems: "center",
fontSize: "1rem",
width: "100%",
color: "white",
'&:hover': {
backgroundColor: theme.palette.secondary.main,
cursor: "pointer",
},

}))
return (
<>
<StyledButton>{children}
</StyledButton>
</>
)
}

export default StyledButton

0 comments on commit 216d293

Please sign in to comment.