Skip to content

Commit

Permalink
Merge pull request #24 from IvonneBenitesRodriguez/a
Browse files Browse the repository at this point in the history
A-solving a Deployment Issue
  • Loading branch information
IvonneBenitesRodriguez authored Jun 23, 2024
2 parents cf6cf20 + ebf3c5b commit c11677a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 14 deletions.
46 changes: 39 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
]
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3"
Expand Down
13 changes: 6 additions & 7 deletions src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ function Navbar() {
console.log("isScreenSmall:", isScreenSmall);

const handleClick = () => {
const media = windows.match();
setClicked(!clicked);
};

return (
<>
<NavContainer>
<img src={logo} alt="Logo" style={{ width: "90px" }} />===
<div className={`links ${isScreenSmall && clicked ? "active" : ""}`}>
<img src={logo} alt="Logo" style={{ width: "90px" }} />

<div className={`links ${isScreenSmall && clicked ? "active" : ""}`}>
<Link to="/" onClick={handleClick}>
Home
</Link>
Expand Down Expand Up @@ -129,10 +128,10 @@ const BgDiv = styled.div`
left: 0;
width: 68%;
height: 112vh;
z-index:5;
z-index: 5;
}
@media (min-width: 768px){
display:none;
}
@media (min-width: 768px) {
display: none;
}
`;

0 comments on commit c11677a

Please sign in to comment.