diff --git a/landing/Picture.react.js b/landing/Picture.react.js new file mode 100644 index 000000000..de14c2e24 --- /dev/null +++ b/landing/Picture.react.js @@ -0,0 +1,21 @@ +// @flow + +import * as React from 'react'; + +type PictureProps = { + +url: string, + +alt: string, +}; + +function Picture(props: PictureProps): React.Node { + const { url, alt } = props; + return ( + + + + {alt} + + ); +} + +export default Picture; diff --git a/landing/app-landing.react.js b/landing/app-landing.react.js index e1471a5ae..6c915d3ca 100644 --- a/landing/app-landing.react.js +++ b/landing/app-landing.react.js @@ -1,86 +1,83 @@ // @flow import * as React from 'react'; import { assetMetaData } from './asset-meta-data'; import CyclingHeader from './cycling-header.react'; import InfoCard from './info-card.react'; import css from './landing.css'; +import Picture from './Picture.react'; import StarBackground from './star-background.react'; import usePreloadAssets from './use-pre-load-assets.react'; function AppLanding(): React.Node { usePreloadAssets(assetMetaData); const [ hero, federated, customizable, encrypted, sovereign, openSource, lessNoisy, ] = assetMetaData; return ( <>
- - - - {hero.alt} - +

(think "Web3 Discord")

); } export default AppLanding;