@@ -9,21 +9,23 @@ const Header = () => {
99 const { theme, toggleTheme} = useContext ( ThemeContext ) ;
1010
1111 return (
12- < Box id = "home" sx = { { display : "flex" , flexWrap : "wrap" , flexDirection : "row" , justifyContent : "space-around" , alignItems : "center" , textAlign : "center" , backgroundColor : theme . BackgroundColor , paddingVertical : "50px" } } >
12+ < Box sx = { { position : "fixed" , top : 0 , left : 0 , width : "100%" , zIndex : 1100 , display : "flex" , flexWrap : "wrap" , flexDirection : "row" , justifyContent : "space-around" , alignItems : "center" , textAlign : "center" , backgroundColor : theme . BackgroundColor , py : "20px" , borderBottom : `1px solid ${ theme . SecondBackgroundColor } ` } } >
1313 < Box component = { Link } to = "#home" sx = { { display : "flex" , flexDirection : "row" , alignItems : "center" , textDecoration : "none" } } >
14- < Box component = "img" sx = { { width : 50 } } alt = "Black Logo Donat" src = "/images/logo.png" />
14+ < Box component = "img" sx = { { width : 50 } } alt = "Donat logo " src = { theme === themes . dark ? "/images/logo_white.png" : "/images/ logo.png"} />
1515 < Typography sx = { { fontSize : 30 , fontWeight : "bold" , color : theme . BoldTextColor } } > Donat</ Typography >
1616 </ Box >
1717 < Box sx = { { display : "flex" , flexWrap : "wrap" , flexDirection : "row" , alignItems : "center" } } >
18- { /* <Link to={"#home"} style={{color: theme.BoldTextColor, textDecoration: "none", margin: "15px"}}>Home</Link> */ }
19- < Link to = { "#home" } style = { { color : theme . BoldTextColor , textDecoration : "none" , margin : "10px" } } > About</ Link >
20- < Link to = { "#process" } style = { { color : theme . BoldTextColor , textDecoration : "none" , margin : "10px" } } > Process</ Link >
21- < Link to = { "#portfolio" } style = { { color : theme . BoldTextColor , textDecoration : "none" , margin : "10px" } } > Portfolio</ Link >
22- < Link to = { "#services" } style = { { color : theme . BoldTextColor , textDecoration : "none" , margin : "10px" } } > Services</ Link >
18+ < Box sx = { { display : { xs : "none" , md : "flex" } , flexWrap : "wrap" , flexDirection : "row" , alignItems : "center" } } >
19+ { /* <Link to={"#home"} style={{color: theme.BoldTextColor, textDecoration: "none", margin: "15px"}}>Home</Link> */ }
20+ < Link to = { "#home" } style = { { color : theme . BoldTextColor , textDecoration : "none" , margin : "10px" } } > About</ Link >
21+ < Link to = { "#process" } style = { { color : theme . BoldTextColor , textDecoration : "none" , margin : "10px" } } > Process</ Link >
22+ < Link to = { "#portfolio" } style = { { color : theme . BoldTextColor , textDecoration : "none" , margin : "10px" } } > Portfolio</ Link >
23+ < Link to = { "#services" } style = { { color : theme . BoldTextColor , textDecoration : "none" , margin : "10px" } } > Services</ Link >
24+ </ Box >
2325 < Button onClick = { toggleTheme } style = { { backgroundColor : "transparent" , color : theme . BoldTextColor , textTransform : "none" , fontSize : 15 , margin : "10px" , minWidth : "auto" , padding : "8px" } } >
2426 { theme === themes . dark ? < IoMdSunny size = { 20 } /> : < IoMdMoon size = { 20 } /> }
2527 </ Button >
26- < Button href = "#contact" style = { { width : "fit-content" , backgroundColor : theme . MainColor , color : theme . BackgroundColor , textTransform : "none" , fontSize : 15 , margin : "15px" } } > Contact</ Button >
28+ < Button href = "#contact" sx = { { display : { xs : "none" , md : "inline-flex" } , width : "fit-content" , backgroundColor : theme . MainColor , color : theme . BackgroundColor , textTransform : "none" , fontSize : 15 , margin : "15px" , transition : "background-color 0.3s ease, color 0.3s ease" , '&:hover' : { backgroundColor : theme . SecondBackgroundColor , color : theme . BoldTextColor } } } > Contact</ Button >
2729 </ Box >
2830 </ Box >
2931 )
0 commit comments