Skip to content

Commit

Permalink
fix: navbar bolding issues addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin3656 committed May 19, 2024
1 parent ab38854 commit 1e693f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/components/NavBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export default function NavBar() {
}

return (

<Styles.NavBarContainer>
<Styles.NavBarSectionDiv>
<Link href="/">
Expand Down
8 changes: 4 additions & 4 deletions src/components/NavBar/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import styled from 'styled-components';
import COLORS from '@/styles/colors';
import { sans } from '@/styles/fonts';
import { LinkColored } from '@/styles/text';
import { boolean } from 'zod';

export const NavBarContainer = styled.div`
display: flex;
Expand Down Expand Up @@ -40,14 +39,15 @@ export const NoUnderlineLink = styled(LinkColored)<{ $isActive: boolean }>`
cursor: pointer;
`;

export const DisplayText = styled.span<{$isActive: boolean}>`
export const DisplayText = styled.span<{ $isActive: boolean }>`
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: ${({ $isActive }) => ($isActive ? '600' : '400')}; /* Conditional bolding */
font-weight: ${({ $isActive }) =>
$isActive ? '600' : '400'};
color: white;
`
`;

export const ActiveUnderline = styled.hr<{ $isActive: boolean }>`
visibility: ${({ $isActive }) => ($isActive ? 'visible' : 'hidden')};
Expand Down

0 comments on commit 1e693f4

Please sign in to comment.