Skip to content

Commit b2cc1af

Browse files
authored
Merge pull request #270 from Code-4-Community/258-dev---frontend-cleanup
Frontend cleanup
2 parents 78dea39 + b80ff4d commit b2cc1af

15 files changed

Lines changed: 25 additions & 167 deletions

File tree

frontend/src/Login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState } from "react";
22
import { useAuthContext } from "./context/auth/authContext";
33
import { observer } from "mobx-react-lite";
4-
import logo from "./images/bcan_logo.svg";
4+
import logo from "./images/logo.svg";
55
import { useNavigate } from "react-router-dom";
66
import "./external/bcanSatchel/mutators";
77

frontend/src/Register.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState } from "react";
22
import { observer } from "mobx-react-lite";
33
import { useNavigate } from "react-router-dom";
4-
import logo from "./images/bcan_logo.svg";
4+
import logo from "./images/logo.svg";
55
import { useAuthContext } from "./context/auth/authContext";
66
import "./styles/index.css";
77

frontend/src/RegisterLanding.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Link } from "react-router-dom";
2-
import logo from "./images/bcan_logo.svg";
2+
import logo from "./images/logo.svg";
33
import { ButtonColorOption } from "./custom/RingButton";
44
import { useAuthContext } from "./context/auth/authContext";
55

frontend/src/main-page/header/Bell.tsx

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -45,34 +45,22 @@ const BellButton: React.FC<BellButtonProps> = observer(({ setOpenModal, openModa
4545
return (
4646
<div className="bell-container">
4747
<div
48-
className="bell-wrapper"
49-
style={{ position: "relative", display: "inline-block" }}
48+
className="bell-wrapper inline-block relative p-2 hover:bg-light-orange rounded-md"
5049
>
5150
<button
52-
className={`bell-button ${openModal === "bell" ? "hovered" : ""}`}
51+
className={`bell-button ${openModal === "bell" ? "hovered" : ""} bg-none border-none relative`}
5352
onClick={handleClick}
54-
style={{ background: "none", position: "relative" }}
5553
>
5654
<FontAwesomeIcon
57-
icon={faBell}
58-
style={{ color: "black"}}
55+
icon={faBell} className="text-black"
5956
/>
60-
</button>
61-
62-
{notifications.length > 0 && (
63-
<span
64-
style={{
65-
position: "absolute",
66-
top: "0px",
67-
right: "0px",
68-
width: "10px",
69-
height: "10px",
70-
backgroundColor: "red",
71-
borderRadius: "50%",
72-
border: "2px solid white",
73-
}}
57+
{notifications.length > 0 && (
58+
<span className="absolute top-0 -right-[0.10rem] w-3 h-3 rounded-full bg-red border-2 border-white"
7459
/>
7560
)}
61+
</button>
62+
63+
7664
</div>
7765

7866
{(openModal === "bell" ? (

frontend/src/main-page/header/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Link } from "react-router-dom";
22
import "./styles/Header.css";
3-
import logo from "../../images/bcan_logo.svg";
3+
import logo from "../../images/logo.svg";
44
import {
55
Status,
66
stringToStatus,

frontend/src/main-page/header/UserButton.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { faUser } from "@fortawesome/free-solid-svg-icons";
22
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
33
import AccountInfo from "./AccountInfo";
4-
5-
import "./styles/UserButton.css";
64
import { useAuthContext } from "../../context/auth/authContext";
75

86
interface UserButtonProps {
@@ -20,15 +18,13 @@ const UserButton: React.FC<UserButtonProps> = ({ setOpenModal, openModal }) => {
2018
return (
2119
<div className="user-container">
2220
<div
23-
className="user-wrapper"
24-
style={{ position: "relative", display: "inline-block" }}
21+
className="user-wrapper relative inline-block p-2 hover:bg-light-orange rounded-md"
2522
>
2623
<button
27-
className={`user-button ${openModal === "user" ? "hovered" : ""}`}
24+
className={`user-button ${openModal === "user" ? "hovered" : ""} bg-none border-none relative`}
2825
onClick={toggleAccountInfo}
29-
style={{ background: "none", position: "relative" }}
3026
>
31-
<FontAwesomeIcon icon={faUser} style={{ color: "black" }} />
27+
<FontAwesomeIcon className="text-black" icon={faUser} />
3228
</button>
3329

3430
{openModal === "user" && (

frontend/src/main-page/header/styles/Bell.css

Lines changed: 0 additions & 99 deletions
This file was deleted.

frontend/src/main-page/header/styles/UserButton.css

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)