-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Tooltips to the logos in the 'Our Allies' section of the About page
- Loading branch information
1 parent
fbf46b8
commit 330e7ad
Showing
5 changed files
with
43 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { FC } from 'react'; | ||
|
||
import Image from 'next/image'; | ||
|
||
import Tooltip from 'components/tooltip'; | ||
|
||
import { OurAlliesLogoType } from './'; | ||
|
||
export const OurAlliesLogo: FC<OurAlliesLogoType> = ({ logo }) => { | ||
return ( | ||
<span> | ||
<Tooltip | ||
arrow | ||
arrowClassName="bg-black" | ||
content={ | ||
<div className="max-w-xs p-2 font-sans text-sm font-normal text-white bg-black rounded-sm"> | ||
{logo.alt} | ||
</div> | ||
} | ||
> | ||
<span className="flex py-1 sm:py-0"> | ||
<Image src={logo.src} width={logo.width} height={logo.height} alt={logo.alt} /> | ||
</span> | ||
</Tooltip> | ||
</span> | ||
); | ||
}; | ||
|
||
export default OurAlliesLogo; |
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,2 @@ | ||
export type { OurAlliesLogoType } from './types'; | ||
export { default } from './component'; |
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,8 @@ | ||
export type OurAlliesLogoType = { | ||
logo: { | ||
src: string; | ||
width: number; | ||
height: number; | ||
alt: string; | ||
}; | ||
}; |
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