Commit c052cd18 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Robert Knight

Add JSTOR icon and style `ContentPartnerBanner`

parent 75694446
import { Icon, LabeledButton, Link } from '@hypothesis/frontend-shared';
/** /**
* @typedef {import('../../types/annotator').ContentPartner} ContentPartner * @typedef {import('../../types/annotator').ContentPartner} ContentPartner
*/ */
...@@ -11,9 +13,24 @@ ...@@ -11,9 +13,24 @@
*/ */
export default function ContentPartnerBanner({ provider, onClose }) { export default function ContentPartnerBanner({ provider, onClose }) {
return ( return (
<div className="bg-white p-2"> <div className="flex items-center border-b gap-x-4 px-2 py-1 bg-white text-annotator-lg">
{provider === 'jstor' && 'Content provided by JSTOR'} {provider === 'jstor' && (
<button onClick={onClose}>Close</button> <>
<Link href="https://jstor.org">
<Icon
classes="w-[97px] h-[25px]"
name="jstor"
title="Document hosted by JSTOR"
/>
</Link>
<div className="grow">
Document hosted by <b>JSTOR</b>
</div>
</>
)}
<div className="text-annotator-base">
<LabeledButton onClick={onClose}>Close</LabeledButton>
</div>
</div> </div>
); );
} }
...@@ -14,10 +14,11 @@ import { ...@@ -14,10 +14,11 @@ import {
// Different variant than shared icon // Different variant than shared icon
import annotateIcon from '../images/icons/annotate.svg'; import annotateIcon from '../images/icons/annotate.svg';
// Not in shared icon set // Not in shared icon set
import jstor from '../images/icons/jstor.svg';
import pointerIcon from '../images/icons/pointer.svg'; import pointerIcon from '../images/icons/pointer.svg';
/** /**
* Set of icons used by the annotator part of the application via the `SvgIcon` * Set of icons used by the annotator part of the application via the `Icon`
* component. * component.
*/ */
export const annotatorIcons = { export const annotatorIcons = {
...@@ -28,6 +29,7 @@ export const annotatorIcons = { ...@@ -28,6 +29,7 @@ export const annotatorIcons = {
'caret-right': caretRight, 'caret-right': caretRight,
hide, hide,
highlight, highlight,
jstor,
note, note,
pointer: pointerIcon, pointer: pointerIcon,
show, show,
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment