Skip to content

Commit

Permalink
Merge pull request #58 from Janiru/patch-5
Browse files Browse the repository at this point in the history
Update Navbar.js Fixed font size bug in mobile navbar
  • Loading branch information
chamiduu authored Oct 1, 2021
2 parents 84ab69c + 8bc8f45 commit a20b510
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions src/Components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import MenuIcon from "@material-ui/icons/Menu";
import { NavLink } from "react-router-dom";
import React, { useState, useEffect } from "react";
import logoGIF from "../Img/BITS-logo-w.gif";
import Countdown from 'react-countdown';
import Countdown from "react-countdown";

const useStyles = makeStyles(() => ({
header: {
Expand Down Expand Up @@ -41,7 +41,7 @@ const useStyles = makeStyles(() => ({
mobileMenuButton: {
fontFamily: "Titillium Web, sans-serif",
fontWeight: 700,
size: "18px",
size: "26px",
marginLeft: "38px",
textDecoration: "none",
color: "#fff",
Expand Down Expand Up @@ -190,28 +190,32 @@ export default function Nav() {
flexDirection: "column",
justifyContent: "space-between",
height: "200px",
marginBottom: "95px",
}}
>

<NavLink
className={mobileMenuButton}
to="/"
exact
activeStyle={{
fontWeight: "bold",
color: "#3ed1b8",
fontSize: "25px",
}}
style={{ fontSize: "21px", marginBottom: "15px" }}
>
Home
</NavLink>

<NavLink
className={mobileMenuButton}
to="/tasks"
activeStyle={{
fontWeight: "bold",
color: "#3ed1b8",
fontSize: "25px",
}}
style={{ fontSize: "21px", marginBottom: "15px" }}
>
Tasks
</NavLink>
Expand All @@ -221,7 +225,9 @@ export default function Nav() {
activeStyle={{
fontWeight: "bold",
color: "#3ed1b8",
fontSize: "25px",
}}
style={{ fontSize: "21px", marginBottom: "15px" }}
>
Online Tests
</NavLink>
Expand All @@ -231,7 +237,9 @@ export default function Nav() {
activeStyle={{
fontWeight: "bold",
color: "#3ed1b8",
fontSize: "25px",
}}
style={{ fontSize: "21px", marginBottom: "15px" }}
>
LeaderBoard
</NavLink>
Expand All @@ -242,6 +250,7 @@ export default function Nav() {
fontWeight: "bold",
color: "#3ed1b8",
}}
style={{ fontSize: "24px" }}
>
Contact
</NavLink>
Expand All @@ -250,7 +259,9 @@ export default function Nav() {
};

const femmecubatorLogo = (
<NavLink to="/"><img src={logoGIF} alt="logo" style={{ height: "100px" }}></img></NavLink>
<NavLink to="/">
<img src={logoGIF} alt="logo" style={{ height: "100px" }}></img>
</NavLink>
);

const getMenuButtons = () => {
Expand Down

0 comments on commit a20b510

Please sign in to comment.