Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sticky navbar #170

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions client/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function MenuList({ user, onClick }) {
<p className="text-sm font-semibold">{user?.firstName ?? user?.name}</p>
<span className="text-sm text-blue-600">{user?.jobTitle ?? user?.email}</span>
</div>
<img
<img
src={user?.profileUrl}
alt="user profile"
className="w-10 h-10 rounded-full object-cover"
Expand Down Expand Up @@ -93,7 +93,7 @@ const Navbar = () => {
};

return (
<div className="relative bg-[#f9f9f9] z-50 shadow-md">
<div className="sticky top-0 w-full bg-[#f9f9f9] z-50 shadow-md">
<nav className="container mx-auto flex items-center justify-between p-5">
<Link to="/" className="text-orange-600 font-bold text-xl">
Kaam<span className="text-[#fb923c]">Do</span>
Expand Down Expand Up @@ -188,3 +188,4 @@ const Navbar = () => {
};

export default Navbar;

6 changes: 6 additions & 0 deletions package-lock.json

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

Loading