Skip to content

Commit

Permalink
Add notification bell and minor styling
Browse files Browse the repository at this point in the history
  • Loading branch information
The-DevBlog committed Nov 13, 2023
1 parent 5985022 commit b8192e9
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 12 deletions.
8 changes: 6 additions & 2 deletions devblog/devblog/ClientApp/src/components/Nav.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useState } from "react";
import { Link, useLocation } from "react-router-dom";
import SignOut from "../pages/SignOut";
import { MdMenu } from "react-icons/md";
import { MdMenu, MdNotifications } from "react-icons/md";
import { IsLoggedIn } from "../components/AuthenticationService";
import { GetIsAdmin } from "./AuthenticationService";
import "./styles/Nav.css";
Expand Down Expand Up @@ -48,8 +48,12 @@ const Nav = () => {
</div>
</Link>


<div className="notifications">
<MdNotifications />
</div>
<div className="nav-drop-down">
<MdMenu className="nav-icon" onClick={updateMenu} size={69} />
<MdMenu className="nav-icon" onClick={updateMenu} />

<div className="nav-links" style={{ display: display }}>
<Link to="/" className={isActive("/")}>Home</Link>
Expand Down
25 changes: 20 additions & 5 deletions devblog/devblog/ClientApp/src/components/styles/Nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}

.logo {
font-size: 40px;
font-size: 38px;
padding: 5px;
}

Expand All @@ -32,9 +32,12 @@
opacity: 1.0;
}

.nav-links,
.nav-icon {
display: none;
.notifications {
font-size: 35px;
margin-top: 23px;
margin-left: auto;
margin-right: 130px;
z-index: 21;
}

.nav-drop-down {
Expand Down Expand Up @@ -63,9 +66,11 @@
}

.nav-icon {
font-size: 69px;
cursor: pointer;
display: flex;
margin-left: auto;
margin-top: 7px;
}

.nav-links {
Expand All @@ -90,6 +95,16 @@

@media(max-width: 450px) {
.logo {
font-size: 30px;
font-size: 25px;
}

.nav-icon {
font-size: 50px;
}

.notifications {
font-size: 25px;
margin-right: 85px;
margin-top: 19px;
}
}
2 changes: 1 addition & 1 deletion devblog/devblog/ClientApp/src/pages/styles/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
display: flex;
flex-direction: column;
justify-content: center;
margin: 150px 20px 0px 20px;
margin: 92px 20px 0px 20px;
}

.update-video>button {
Expand Down
6 changes: 3 additions & 3 deletions devblog/devblog/ClientApp/src/pages/styles/Posts.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
display: flex;
flex-direction: column;
justify-content: center;
margin: 100px 20px 0px 20px;
margin: 90px 20px 10px 20px;
}

.pager:first-child {
display: flex;
margin-bottom: 20px;
margin-bottom: 10px;
}

.pager:last-child {
display: flex;
margin-bottom: 100px;
margin-bottom: 50px;
}

.pager span {
Expand Down
1 change: 0 additions & 1 deletion devblog/devblog/Controllers/VotesController.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using devblog.Interfaces;
using devblog.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

Expand Down

0 comments on commit b8192e9

Please sign in to comment.