diff --git a/browser/main/modals/PreferencesModal/Crowdfunding.js b/browser/main/modals/PreferencesModal/Crowdfunding.js new file mode 100644 index 00000000..034d00a9 --- /dev/null +++ b/browser/main/modals/PreferencesModal/Crowdfunding.js @@ -0,0 +1,54 @@ +import React from 'react' +import CSSModules from 'browser/lib/CSSModules' +import styles from './Crowdfunding.styl' +import ConfigManager from 'browser/main/lib/ConfigManager' +import store from 'browser/main/store' + +const electron = require('electron') +const { shell, remote } = electron + +class Crowdfunding extends React.Component { + constructor (props) { + super(props) + + this.state = { + config: this.props.config + } + } + + handleLinkClick (e) { + shell.openExternal(e.currentTarget.href) + e.preventDefault() + } + + render () { + return ( +
+
Crowdfunding
+

Dear all,

+
+

Thanks for your using!

+

Boostnote is used in about 200 countries and regions, it is a awesome developer community.

+
+

To continue supporting this growth, and to satisfy community expectations,

+

we would like to invest more time in this project.

+
+

If you like this project and see its potential, you can help!

+
+

Thanks,

+

Boostnote maintainers.

+
+ +
+ ) + } +} + +Crowdfunding.propTypes = { +} + +export default CSSModules(Crowdfunding, styles) \ No newline at end of file diff --git a/browser/main/modals/PreferencesModal/Crowdfunding.styl b/browser/main/modals/PreferencesModal/Crowdfunding.styl new file mode 100644 index 00000000..527837a3 --- /dev/null +++ b/browser/main/modals/PreferencesModal/Crowdfunding.styl @@ -0,0 +1,30 @@ +@import('./Tab') + +.root + padding 15px + white-space pre + line-height 1.4 + color alpha($ui-text-color, 90%) + width 100% + font-size 14px +p + font-size 16px + +.cf-link + width 250px + height 35px + border-radius 2px + border none + background-color alpha(#1EC38B, 90%) + &:hover + background-color #1EC38B + transition 0.2s + a + text-decoration none + color white + font-weight 600 + font-size 16px + +body[data-theme="dark"] + p + color $ui-dark-text-color \ No newline at end of file diff --git a/browser/main/modals/PreferencesModal/HotkeyTab.js b/browser/main/modals/PreferencesModal/HotkeyTab.js index f75e41b8..edbd06a5 100644 --- a/browser/main/modals/PreferencesModal/HotkeyTab.js +++ b/browser/main/modals/PreferencesModal/HotkeyTab.js @@ -94,7 +94,7 @@ class HotkeyTab extends React.Component {
-
Toggle Finder(popup)
+
Toggle Finder (Quick search)
this.handleHotkeyChange(e)} diff --git a/browser/main/modals/PreferencesModal/InfoTab.js b/browser/main/modals/PreferencesModal/InfoTab.js index 5ac4245f..1007807a 100644 --- a/browser/main/modals/PreferencesModal/InfoTab.js +++ b/browser/main/modals/PreferencesModal/InfoTab.js @@ -76,7 +76,7 @@ class InfoTab extends React.Component {
  • this.handleLinkClick(e)} - >Donate via Bountysource : Thank you for your support 🎉 + >Crowdfunding : Thank you for your support 🎉
  • ) + case 'CROWDFUNDING': + return ( + + ) case 'STORAGES': default: return ( @@ -94,7 +102,8 @@ class Preferences extends React.Component { {target: 'STORAGES', label: 'Storages'}, {target: 'HOTKEY', label: 'Hotkey'}, {target: 'UI', label: 'UI'}, - {target: 'INFO', label: 'Info'} + {target: 'INFO', label: 'Info'}, + {target: 'CROWDFUNDING', label: 'Crowdfunding'} ] let navButtons = tabs.map((tab) => {