Skip to content

Commit

Permalink
Update Nav, Styled, Hero
Browse files Browse the repository at this point in the history
  • Loading branch information
analuiza2102 committed Mar 24, 2024
1 parent 386cca3 commit a9f4762
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 5 additions & 7 deletions src/Components/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ import { AppBar, MenuItem, Toolbar, styled} from "@mui/material"

const NavBar = () =>{

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


const StyledToolbar = styled(Toolbar) (({theme}) => ({
display: "flex",
justifyContent: "space-evenly",



}))
alignItems: "center",
backgroundColor: theme.palette.background.default,
color: "white",
}))


return (
Expand Down
6 changes: 4 additions & 2 deletions src/Components/StyledButton/StyledButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import { styled } from '@mui/system';

interface StyledButtonProps {
children: React.ReactNode;
onClick?: () => void;

}


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

const StyledButton = styled("button") (({ theme}) => ({
backgroundColor: "transparent",
Expand All @@ -26,7 +28,7 @@ const StyledButton: React.FC<StyledButtonProps> = ({children}) =>{
}))
return (
<>
<StyledButton>{children}
<StyledButton onClick={onClick} >{children}
</StyledButton>
</>
)
Expand Down
4 changes: 2 additions & 2 deletions src/Pages/Home/Sections/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ const Hero = () =>{
<Grid container display={"Flex"} justifyContent="center" spacing={3} pt={4}>

<Grid item xs={12} md={4} display={"Flex"} justifyContent="center" >
<StyledButton >
<StyledButton onClick={console.log }>
<EmailIcon/>
<Typography> Contact me </Typography>
</StyledButton>
</Grid>

<Grid item xs={12} md={4} display={"Flex"} justifyContent="center">
<StyledButton>
<StyledButton onClick={console.log }>
<FileDownloadIcon/>
<Typography> Download CV </Typography>
</StyledButton>
Expand Down

0 comments on commit a9f4762

Please sign in to comment.