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

Update Navbar.js Fixed font size bug in mobile navbar #58

Merged
merged 1 commit into from
Oct 1, 2021
Merged
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
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