-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modification: button and navigation bar, static
- Loading branch information
1 parent
a5b7c8b
commit 216d293
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|