forked from wishonia/wishonia
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove RightToTrialActPage and implement domain-specific navigation
Deleted the RightToTrialActPage component and replaced static navigation links with dynamic domain-specific ones. Added configurations for dfda and wishonia domains, allowing tailored navigation setups for each, and updated related components to utilize the new navigation structure. Took 24 minutes
- Loading branch information
Showing
12 changed files
with
232 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,40 @@ | ||
'use client' | ||
"use client" | ||
|
||
export default function DFDAFooter() { | ||
import Link from "next/link" | ||
import { NavItem } from "@/types" | ||
|
||
interface DFDAFooterProps { | ||
navItems?: NavItem[] | ||
} | ||
|
||
export default function DFDAFooter({ navItems = [] }: DFDAFooterProps) { | ||
return ( | ||
<footer className="mt-12 rounded-xl border-4 border-black bg-white p-4 text-center font-bold shadow-[8px_8px_0px_0px_rgba(0,0,0,1)]"> | ||
<p>© 2023 dFDA - Empowering patients, revolutionizing healthcare 🚀</p> | ||
<div className="mb-4"> | ||
<ul className="flex flex-wrap justify-center gap-4"> | ||
{navItems.map((item, index) => ( | ||
<li key={index}> | ||
{item.external ? ( | ||
<a | ||
href={item.href} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="hover:underline" | ||
> | ||
{item.title} | ||
</a> | ||
) : ( | ||
<Link href={item.href} className="hover:underline"> | ||
{item.title} | ||
</Link> | ||
)} | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
<p> | ||
© 2023 dFDA - Empowering patients, revolutionizing healthcare 🚀 | ||
</p> | ||
</footer> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.