-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathSponsorsBlock.tsx
41 lines (36 loc) · 1.13 KB
/
SponsorsBlock.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React from 'react'
import { mergeStyleSets, type IStackProps, Stack } from '@fluentui/react'
import gnolandLight from './img/gnoland-light.svg?url'
import gnolandDark from './img/gnoland-dark.svg?url'
const gnolandUrl =
'https://gno.land/?utm_source=sponsor&utm_medium=goplay&utm_campaign=DevAcquisition+&utm_content=Devtool'
interface Props {
isDark?: boolean
}
const styles = mergeStyleSets({
image: {
width: '192px',
maxHeight: '32px',
},
text: {
fontSize: '0.75rem',
},
})
const tokens: IStackProps['tokens'] = {
childrenGap: '1rem',
}
export const SponsorsBlock: React.FC<Props> = ({ isDark }) => (
<Stack horizontal tokens={tokens} verticalAlign="center">
<Stack.Item className={styles.image}>
<a href={gnolandUrl} target="_blank" rel="noreferrer">
<img src={isDark ? gnolandDark : gnolandLight} alt="gno.land" />
</a>
</Stack.Item>
<Stack.Item className={styles.text}>
<a href={gnolandUrl} target="_blank" rel="noreferrer">
gno.land
</a>
, an open-source smart contract platform powered by Gno, a deterministic variant of Go.
</Stack.Item>
</Stack>
)