Skip to content

Commit

Permalink
fix: fixed functioning of contact us button in footer (#1140)
Browse files Browse the repository at this point in the history
* fix: fixed functioning of contact us button in footer

* fix: applied font-families and colors in modal

* fix: fallback fonts

* fix: fallback fonts

* fix: fallback fonts

---------

Co-authored-by: Tamal Das <tamalcodes@gmail.com>
  • Loading branch information
MahendraDani and tamalCodes committed Oct 26, 2023
1 parent ea5c120 commit d4a9644
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/assets/data/ApiEndpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const API = import.meta.env.VITE_MILANAPI;
const userEndpoints = {
bySlug: (slug) => `${API}/user?slug=${slug}`,
update: `${API}/user/update`,
report: `${API}/user/userreport`,
report: `${API}/user/report`,
};

const clubEndpoints = {
Expand Down
8 changes: 5 additions & 3 deletions src/components/Footer/Footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,20 @@
}

.reportModalHeader > h1 {
font-family: Montserrat, sans-serif;
color: #4e4e4e;
font-family: "Inter",sans-serif;
color: #28183b;
font-size: 1.5rem;
font-weight: 600;
}

.reportModal > h2 {
color: #4e4e4e;
font-family: "Poppins"sans-serif;
color: #28183b;
font-size: 0.9rem;
}

#reportForm {
font-family: "Poppins"sans-serif;
padding: 0;
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ const Footer = () => {
aria-label="Follow me on Twitter"
target="_blank"
>
<FaSquareXTwitter className="twitter-icon"/>
<FaSquareXTwitter className="twitter-icon" />
</a>
</div>
<div className="github social-btn">
Expand All @@ -322,7 +322,7 @@ const Footer = () => {
aria-label="Follow me on Github"
target="_blank"
>
<FaGithub className="github-icon"/>
<FaGithub className="github-icon" />
</a>
</div>
</div>
Expand Down
8 changes: 3 additions & 5 deletions src/components/Modal/Modal.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import React from "react";
import { createPortal } from "react-dom";
import style from "./Modal.module.css";

const Modal = ({ children, onClose, className = "" }) => {
return createPortal(
const Modal = ({ children, onClose, className }) => {
return (
<div className={style.overlay}>
<div className={`${style.modal} ${className}`}>
<button
Expand All @@ -14,8 +13,7 @@ const Modal = ({ children, onClose, className = "" }) => {
></button>
{children}
</div>
</div>,
document.getElementById("modal"),
</div>
);
};

Expand Down

0 comments on commit d4a9644

Please sign in to comment.