diff --git a/webmaker/src/components/Footer.jsx b/webmaker/src/components/Footer.jsx index bf513ef..01b7ed2 100644 --- a/webmaker/src/components/Footer.jsx +++ b/webmaker/src/components/Footer.jsx @@ -197,7 +197,7 @@ export default class Footer extends Component { +
+

Support the Developer

+

+ Hi,{' '} + + Kushagra + {' '} + here! Web Maker is a free and open-source project. To keep myself + motivated for working on such open-source and free{' '} + + side projects + , I am accepting donations. Your pledge, no matter how small, + will act as an appreciation towards my work and keep me going + forward making Web Maker more awesome🔥. So please consider + donating. 🙏🏼 (could be as small as $1/month). +

+ +
+ + Become a patron image +

+ Make a monthly pledge on Patreon +

+
+
+ + + Or, make a one time donation + +
+ + ); + } +} diff --git a/webmaker/src/components/app.jsx b/webmaker/src/components/app.jsx index 05c2d51..29a1680 100644 --- a/webmaker/src/components/app.jsx +++ b/webmaker/src/components/app.jsx @@ -22,6 +22,7 @@ import firebase from 'firebase/app'; import 'firebase/auth'; import Profile from './Profile'; import { auth } from '../auth'; +import SupportDeveloperModal from './SupportDeveloperModal'; if (module.hot) { require('preact/debug'); @@ -46,6 +47,7 @@ export default class App extends Component { isNotificationsModalOpen: false, isLoginModalOpen: false, isProfileModalOpen: false, + isSupportDeveloperModalOpen: false, prefs: {}, currentItem: { title: '', @@ -117,7 +119,6 @@ export default class App extends Component { this.updateProfileUi(); }); } - componentWillMount() { var lastCode; window.onunload = () => { @@ -744,7 +745,7 @@ export default class App extends Component { detachedPreviewBtnHandler() { trackEvent('ui', 'detachPreviewBtnClick'); - this.contentWrap.detachPreview() + this.contentWrap.detachPreview(); } render() { @@ -784,6 +785,11 @@ export default class App extends Component { notificationsBtnClickHandler={() => this.setState({ isNotificationsModalOpen: true }) } + supportDeveloperBtnClickHandler={() => + this.setState({ + isSupportDeveloperModalOpen: true + }) + } detachedPreviewBtnHandler={this.detachedPreviewBtnHandler.bind( this )} @@ -867,6 +873,12 @@ export default class App extends Component { show={this.state.isHelpModalOpen} closeHandler={() => this.setState({ isHelpModalOpen: false })} /> + + this.setState({ isSupportDeveloperModalOpen: false }) + } + />