-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Resources page to link users to open-sauced feedback/discussions (
#100)
- Loading branch information
Showing
4 changed files
with
123 additions
and
45 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import { FaChevronLeft } from "react-icons/fa"; | ||
import OpenSaucedLogo from "../assets/opensauced-logo.svg"; | ||
import { EXTERNAL_RESOURCES } from "../constants"; | ||
import { | ||
HiOutlineBookOpen, | ||
HiOutlineChatBubbleLeftRight, | ||
} from "react-icons/hi2"; | ||
import { goBack } from "react-chrome-extension-router"; | ||
import { VscIssues } from "react-icons/vsc"; | ||
|
||
const Help = () => ( | ||
<div className="p-4 bg-slate-800"> | ||
<div className="grid grid-cols-1 divide-y divide-white/40 divider-y-center-2 min-w-[320px] text-white"> | ||
<header className="flex justify-between"> | ||
<div className="flex items-center gap-2"> | ||
<button | ||
className="rounded-full p-2 bg-slate-700 hover:bg-slate-700/50" | ||
onClick={() => { | ||
goBack(); | ||
}} | ||
> | ||
<FaChevronLeft className="text-osOrange text-white" /> | ||
</button> | ||
|
||
<img | ||
alt="OpenSauced logo" | ||
className="w-[100%]" | ||
src={OpenSaucedLogo} | ||
/> | ||
</div> | ||
</header> | ||
|
||
<main className="main-content text-white"> | ||
<h3 className="text font-medium text-base leading-10">Help:</h3> | ||
|
||
<div className="tools flex flex-col gap-2"> | ||
{EXTERNAL_RESOURCES.map((externalLink) => ( | ||
<a | ||
key={externalLink.key} | ||
className="flex items-center bg-slate-700 hover:bg-slate-700/70 text-white hover:text-orange no-underline gap-2 p-1.5 px-3 w-full rounded-sm font-medium text-sm" | ||
href={externalLink.link} | ||
rel="noreferrer" | ||
target="_blank" | ||
> | ||
{externalLink.key === "Docs" && <HiOutlineBookOpen />} | ||
|
||
{externalLink.key === "Issues" && <VscIssues />} | ||
|
||
{externalLink.key === "Discussions" && ( | ||
<HiOutlineChatBubbleLeftRight /> | ||
)} | ||
|
||
{externalLink.key} | ||
</a> | ||
))} | ||
</div> | ||
</main> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default Help; |
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