Skip to content

Commit a858eb3

Browse files
authored
Merge pull request #351 from StubberG3/balancer/339/donate-nav
feat: #339 - Add donate link to top nav, sidenav, and footer; restruc…
2 parents e915a4e + 21f0d90 commit a858eb3

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

frontend/src/components/Footer/Footer.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ function Footer() {
2828

2929
return (
3030
// <div className="xl:px-50 mx-auto hidden h-20 items-center justify-between border-t border-gray-300 bg-white px-4 sm:px-6 md:px-8 lg:flex lg:px-8 2xl:px-56">
31-
<div className=" mt-20 flex w-full border-t border-gray-300 ">
31+
<div className="mt-20 flex w-full border-t border-gray-300 ">
3232
{/* <div className="footer-content footer-content mr-5 mt-5 rounded-md border-l border-r border-t border-gray-300 "> */}{" "}
3333
{/* Added mt-5 and mr-5 */}
3434
<footer className=" font_body mt-10 w-full ">
35-
<div className="m-auto grid max-w-[900px] grid-cols-2 flex-wrap items-center justify-between gap-5 px-5 py-3 md:grid-cols-5 md:py-12">
35+
<div className="m-auto grid max-w-[900px] sm:justify-center md:grid-cols-6 md:py-12 lg:grid-cols-6 flex-wrap items-center md:justify-between gap-4 px-5 py-3">
3636
<Link
3737
to="/"
3838
className=" flex justify-center text-black hover:border-blue-600 hover:text-blue-600 hover:no-underline"
@@ -61,6 +61,12 @@ function Footer() {
6161
>
6262
Leave feedback
6363
</Link>
64+
<a href="https://www.flipcause.com/secure/cause_pdetails/MjMyMTIw"
65+
target="_blank"
66+
className="flex justify-center text-black hover:border-blue-600 hover:text-blue-600 hover:no-underline"
67+
>
68+
Donate
69+
</a>
6470
<Link
6571
to="/help"
6672
className="flex justify-center text-black hover:border-blue-600 hover:text-blue-600 hover:no-underline"

frontend/src/components/Header/Header.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ const Header: React.FC<LoginFormProps> = ({
154154
>
155155
Leave Feedback
156156
</Link>
157+
<a href="https://www.flipcause.com/secure/cause_pdetails/MjMyMTIw"
158+
target="_blank"
159+
className="text-black hover:border-blue-600 hover:text-blue-600 hover:no-underline"
160+
>
161+
Donate
162+
</a>
157163
{isSuperuser && (
158164
<div
159165
onMouseEnter={handleMouseEnter}
@@ -164,8 +170,8 @@ const Header: React.FC<LoginFormProps> = ({
164170
<span
165171
className={` text-black ${
166172
showFeaturesMenu
167-
? "mx-4 cursor-pointer border-b-2 border-blue-600 hover:border-b-2 hover:border-blue-600 hover:text-blue-600 hover:no-underline"
168-
: "mx-4 cursor-pointer hover:border-b-2 hover:border-blue-600 hover:text-black hover:no-underline"
173+
? "cursor-pointer border-b-2 border-blue-600 hover:border-b-2 hover:border-blue-600 hover:text-blue-600 hover:no-underline"
174+
: "cursor-pointer hover:border-b-2 hover:border-blue-600 hover:text-black hover:no-underline"
169175
}`}
170176
>
171177
Admin Portal

frontend/src/components/Header/MdNavBar.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ const MdNavBar = (props: LoginFormProps) => {
128128
Leave Feedback
129129
</Link>
130130
</li>
131+
<li className="border-b border-gray-300 p-4">
132+
<a href="https://www.flipcause.com/secure/cause_pdetails/MjMyMTIw"
133+
target="_blank"
134+
className="text-black hover:border-blue-600 hover:text-blue-600 hover:no-underline"
135+
>
136+
Donate
137+
</a>
138+
</li>
131139
{isAuthenticated &&
132140
<li className="border-b border-gray-300 p-4">
133141
<a

0 commit comments

Comments
 (0)