Skip to content

Commit

Permalink
#406 changes made
Browse files Browse the repository at this point in the history
changed
  • Loading branch information
NavAneEth777 authored and sadanandpai committed Jul 18, 2024
1 parent 5cbba92 commit 5289cdc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions apps/host/src/components/common/navbar/navbar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
}
}

.heading {
color: var(--text-body);
text-align: center;
font-weight: 500;
font-size: 1.2rem;
}

.right {
display: flex;
gap: 2rem;
Expand Down
4 changes: 2 additions & 2 deletions apps/host/src/components/common/navbar/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ function Navbar({
<span>{title ?? 'Frontend Mini Challenges'}</span>
</a>

<div className={styles.logo}>
<span>{subheading ?? 'Frontend Mini Challenges'}</span>
<div className={styles.heading}>
<span>{subheading ?? ''}</span>
</div>

<div className={styles.right}>
Expand Down
2 changes: 1 addition & 1 deletion apps/host/src/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Link } from 'react-router-dom';
function HomePage() {
return (
<>
<Navbar subheading="">
<Navbar>
<HashLink to="#whyUs">Why us?</HashLink>
<HashLink to="#testimonials">Testimonials</HashLink>
<HashLink to="#contributors">Contributors</HashLink>
Expand Down
2 changes: 1 addition & 1 deletion apps/host/src/pages/leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Navbar from '@/components/common/navbar/navbar';
function LeaderboardPage() {
return (
<>
<Navbar title="Frontend Mini Challenges" subheading="Leaderboard" />
<Navbar subheading="Leaderboard" />
<Leaderboard />
</>
);
Expand Down

0 comments on commit 5289cdc

Please sign in to comment.