File tree Expand file tree Collapse file tree 6 files changed +31
-2
lines changed
components/modals/AboutModal Expand file tree Collapse file tree 6 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { Link } from '@fluentui/react/lib/Link'
1616import { ChangeLog } from './ChangeLog'
1717import { getContentStyles , getIconButtonStyles } from '~/styles/modal'
1818import environment from '~/environment'
19+ import { SponsorsBlock } from './SponsorsBlock'
1920
2021const TITLE_ID = 'AboutTitle'
2122
@@ -92,10 +93,13 @@ export const AboutModal: React.FC<AboutModalProps> = (props: AboutModalProps) =>
9293 </ div >
9394 < div className = { modalStyles . footer } >
9495 < div >
95- { /* eslint-disable-next-line react/no-unescaped-entities */ }
96- < h3 > What's New</ h3 >
96+ < h3 > What's New</ h3 >
9797 < ChangeLog />
9898 </ div >
99+ < div >
100+ < h3 > Sponsors</ h3 >
101+ < SponsorsBlock isDark = { theme . isInverted } />
102+ </ div >
99103 < Stack
100104 horizontal
101105 wrap
Original file line number Diff line number Diff line change 1+ import React from 'react'
2+ import { mergeStyles } from '@fluentui/react'
3+ import gnolandLight from './img/gnoland-light.svg'
4+ import gnolandDark from './img/gnoland-dark.svg'
5+
6+ interface Props {
7+ isDark ?: boolean
8+ }
9+
10+ const imgStyles = mergeStyles ( {
11+ maxWidth : '100%' ,
12+ maxHeight : '32px' ,
13+ } )
14+
15+ export const SponsorsBlock : React . FC < Props > = ( { isDark } ) => (
16+ < div >
17+ < a href = "https://gno.land/?from=goplay-tools" target = "_blank" rel = "noreferrer" >
18+ < img className = { imgStyles } src = { isDark ? gnolandDark : gnolandLight } alt = "gno.land" />
19+ </ a >
20+ </ div >
21+ )
Original file line number Diff line number Diff line change 1+ export * from './SponsorsBlock'
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export const LightTheme: IPartialTheme = {
55}
66
77export const DarkTheme : IPartialTheme = {
8+ isInverted : true ,
89 palette : {
910 neutralLighterAlt : '#282828' ,
1011 neutralLighter : '#313131' ,
You can’t perform that action at this time.
0 commit comments