File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import { useTranslation } from 'react-i18next' ;
3
+ import SquareLogoIcon from '../../../images/p5js-square-logo.svg' ;
4
+
5
+ export default function FundraiserModal ( ) {
6
+ const { t } = useTranslation ( ) ;
7
+
8
+ return (
9
+ < div className = "fundraiser" >
10
+ < p className = "fundraiser__description" > { t ( 'Fundraiser.Description' ) } </ p >
11
+ < SquareLogoIcon
12
+ className = "about__logo"
13
+ role = "img"
14
+ aria-label = { t ( 'Common.p5logoARIA' ) }
15
+ focusable = "false"
16
+ />
17
+ < p className = "fundraiser__description" > { t ( 'Fundraiser.CallToAction' ) } </ p >
18
+ </ div >
19
+ ) ;
20
+ }
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { useLocation, useParams } from 'react-router-dom';
5
5
import Overlay from '../../App/components/Overlay' ;
6
6
import {
7
7
closeKeyboardShortcutModal ,
8
+ closeFundraiserModal ,
8
9
closePreferences ,
9
10
closeShareModal ,
10
11
hideErrorModal
@@ -14,6 +15,7 @@ import AddToCollectionList from './AddToCollectionList';
14
15
import ErrorModal from './ErrorModal' ;
15
16
import Feedback from './Feedback' ;
16
17
import KeyboardShortcutModal from './KeyboardShortcutModal' ;
18
+ import FundraiserModal from './FundraiserModal' ;
17
19
import NewFileModal from './NewFileModal' ;
18
20
import NewFolderModal from './NewFolderModal' ;
19
21
import Preferences from './Preferences' ;
@@ -33,6 +35,7 @@ export default function IDEOverlays() {
33
35
uploadFileModalVisible,
34
36
preferencesIsVisible,
35
37
keyboardShortcutVisible,
38
+ fundraiserContentVisible,
36
39
shareModalVisible,
37
40
shareModalProjectId,
38
41
shareModalProjectName,
@@ -106,6 +109,15 @@ export default function IDEOverlays() {
106
109
< KeyboardShortcutModal />
107
110
</ Overlay >
108
111
) }
112
+ { fundraiserContentVisible && (
113
+ < Overlay
114
+ title = { t ( 'Fundraiser.Title' ) }
115
+ ariaLabel = { t ( 'Fundraiser.Title' ) }
116
+ closeOverlay = { ( ) => dispatch ( closeFundraiserModal ( ) ) }
117
+ >
118
+ < FundraiserModal />
119
+ </ Overlay >
120
+ ) }
109
121
{ errorType && (
110
122
< Overlay
111
123
title = { t ( 'Common.Error' ) }
You can’t perform that action at this time.
0 commit comments