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

changes the font of navbar and added a hover effect. #103

Merged
merged 3 commits into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
9 changes: 5 additions & 4 deletions frontend/src/components/Shared/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ const Navbar = () => {

{/* Desktop Menu */}
<div className="hidden md:flex">
<ul className="ml-4 flex space-x-4 font-semibold">
<ul className="ml-4 flex space-x-5 Poppins font-semibold text-lg">
{menuItems.map((item) => (
<li key={item.name}>
<li key={item.name} className="transform hover:scale-110 hover:-translate-y-1 transition ">
<Link
to={item.path}
className={`${baseTextColorClass} ${hoverTextColorClass}`}
Expand All @@ -111,16 +111,17 @@ const Navbar = () => {
))}
{isAuthenticated ? (
<button

onClick={handleLogout}
className={`${baseTextColorClass} ${hoverTextColorClass}`}
className={`${baseTextColorClass} ${hoverTextColorClass} transform hover:scale-110 hover:-translate-y-1 transition `}
type="button"
>
Log Out
</button>
) : (
<button
onClick={handleLogin}
className={`${baseTextColorClass} ${hoverTextColorClass}`}
className={`${baseTextColorClass} ${hoverTextColorClass} transform hover:scale-110 hover:-translate-y-1 transition `}
type="button"
>
Log In
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
Expand All @@ -11,6 +12,10 @@
}
}

.Poppins {
font-family: "Poppins", sans-serif;
}


@layer components{
.primary-btn{
Expand Down