Skip to content

Commit

Permalink
feat: add sponsorship (#413)
Browse files Browse the repository at this point in the history
* feat: set correct inverted state

* feat: add sponsors block to about
  • Loading branch information
x1unix authored Sep 15, 2024
1 parent cd059da commit fa8ad1d
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/src/components/modals/AboutModal/AboutModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { Link } from '@fluentui/react/lib/Link'
import { ChangeLog } from './ChangeLog'
import { getContentStyles, getIconButtonStyles } from '~/styles/modal'
import environment from '~/environment'
import { SponsorsBlock } from './SponsorsBlock'

const TITLE_ID = 'AboutTitle'

Expand Down Expand Up @@ -92,10 +93,13 @@ export const AboutModal: React.FC<AboutModalProps> = (props: AboutModalProps) =>
</div>
<div className={modalStyles.footer}>
<div>
{/* eslint-disable-next-line react/no-unescaped-entities */}
<h3>What's New</h3>
<h3>What&apos;s New</h3>
<ChangeLog />
</div>
<div>
<h3>Sponsors</h3>
<SponsorsBlock isDark={theme.isInverted} />
</div>
<Stack
horizontal
wrap
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react'
import { mergeStyles } from '@fluentui/react'
import gnolandLight from './img/gnoland-light.svg'
import gnolandDark from './img/gnoland-dark.svg'

interface Props {
isDark?: boolean
}

const imgStyles = mergeStyles({
maxWidth: '100%',
maxHeight: '32px',
})

export const SponsorsBlock: React.FC<Props> = ({ isDark }) => (
<div>
<a href="https://gno.land/?from=goplay-tools" target="_blank" rel="noreferrer">
<img className={imgStyles} src={isDark ? gnolandDark : gnolandLight} alt="gno.land" />
</a>
</div>
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './SponsorsBlock'
1 change: 1 addition & 0 deletions web/src/services/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const LightTheme: IPartialTheme = {
}

export const DarkTheme: IPartialTheme = {
isInverted: true,
palette: {
neutralLighterAlt: '#282828',
neutralLighter: '#313131',
Expand Down

0 comments on commit fa8ad1d

Please sign in to comment.