-
{
aboutUrls.keySeq().sort().filter((aboutSourceUrl) => isNavigatableAboutPage(aboutSourceUrl)).map((aboutSourceUrl) =>
@@ -38,7 +49,7 @@ class AboutAbout extends ImmutableComponent {
const styles = StyleSheet.create({
list: {
- marginLeft: `calc(${globalStyles.spacing.aboutPageSectionPadding} * 2)`
+ marginLeft: globalStyles.spacing.aboutPageSectionPadding
}
})
diff --git a/js/about/bookmarks.js b/js/about/bookmarks.js
index 45dfd35317c..0cf2869cc75 100644
--- a/js/about/bookmarks.js
+++ b/js/about/bookmarks.js
@@ -19,6 +19,8 @@ const iconSize = require('../../app/common/lib/faviconUtil').iconSize
const ipc = window.chrome.ipcRenderer
+const {AboutPageSectionTitle} = require('../../app/renderer/components/common/sectionTitle')
+
// Stylesheets
require('../../less/about/bookmarks.less')
require('../../node_modules/font-awesome/css/font-awesome.css')
@@ -448,7 +450,7 @@ class AboutBookmarks extends React.Component {
render () {
return
- typography +
- textboxes +
- dropdowns +
- buttons +
- commonForm +
- sectionTitle +
-
{
Object.keys(this.props.names).map((name) =>
@@ -519,7 +519,7 @@ class ShieldsTab extends ImmutableComponent {
}
render () {
return
-
+
- - - - - +
- +
Plain textbox
+
+ const { '{Textbox}' } = require('../../app/renderer/components/textbox'){'\n'}
+ <Textbox />
+
+ Textbox for use in forms
+
+ const { '{FormTextbox}' } = require('../../app/renderer/components/textbox'){'\n'}
+ <FormTextbox />
+
+ Texbox used mostly in Preferences; has a fixed width
+
+ const { '{SettingTextbox}' } = require('../../app/renderer/components/textbox'){'\n'}
+ <SettingTextbox />
+
+ Textbox used on wallet recovery screen in Brave Payments
+
+ const { '{RecoveryKeyTextbox}' } = require('../../app/renderer/components/textbox'){'\n'}
+ <RecoveryKeyTextbox />
+
+ Plain textarea
+ +
+ const { '{TextArea}' } = require('../../app/renderer/components/textbox'){'\n'}
+ <TextArea />
+
+ Default textarea; font size is specified
+
+ const { '{DefaultTextArea}' } = require('../../app/renderer/components/textbox'){'\n'}
+ <DefaultTextArea />
+
+ -
Plain textbox
-Plain dropdown
+
+ const { '{Dropdown}' } = require('../../app/renderer/components/dropdown'){'\n'}
+ <Dropdown>{'\n'}
+ <option>Select Box</option>{'\n'}
+ <option>Second Choice</option>{'\n'}
+ <option>Third Choice</option>{'\n'}
+ </Dropdown>
+
+ Dropdown for use in forms
+
+ const { '{FormDropdown}' } = require('../../app/renderer/components/dropdown'){'\n'}
+ <FormDropdown>{'\n'}
+ <option>Select Box</option>{'\n'}
+ <option>Second Choice</option>{'\n'}
+ <option>Third Choice</option>{'\n'}
+ </FormDropdown>
+
+ Dropdown used mostly in Preferences; has a fixed width
+
+ const { '{SettingDropdown}' } = require('../../app/renderer/components/dropdown'){'\n'}
+ <SettingDropdown>{'\n'}
+ <option>Select Box</option>{'\n'}
+ <option>Second Choice</option>{'\n'}
+ <option>Third Choice</option>{'\n'}
+ </SettingDropdown>
+
+ + + + +
+ +
CommonForm
+ +
+ const {{'\n'}
+ CommonForm,{'\n'}
+ CommonFormTitle,{'\n'}
+ CommonFormSection,{'\n'}
+ CommonFormDropdown,{'\n'}
+ CommonFormClickable,{'\n'}
+ CommonFormSubSection,{'\n'}
+ CommonFormButtonWrapper,{'\n'}
+ CommonFormBottomWrapper{'\n'}
+ } = require('../../app/renderer/components/commonForm'){'\n'}
+ {'\n'}
+ <CommonForm>{'\n'}
+ <CommonFormTitle>CommonFormTitle</CommonFormTitle>{'\n'}
+ <CommonFormSection>{'\n'}
+ CommonFormSection - Lorem ipsum dolor sit amet, consectetur adipisicing elit,{'\n'}
+ sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{'\n'}
+ </CommonFormSection>{'\n'}
+ <CommonFormSection>{'\n'}
+ <CommonFormDropdown>{'\n'}
+ <option value='CommonFormDropdown'>CommonFormDropdown</option>{'\n'}
+ </CommonFormDropdown>{'\n'}
+ </CommonFormSection>{'\n'}
+ <CommonFormSection>{'\n'}
+ <CommonFormSubSection>CommonFormSubSection</CommonFormSubSection>{'\n'}
+ <CommonFormSubSection>{'\n'}
+ <CommonFormDropdown>{'\n'}
+ <option value='CommonFormDropdown'>CommonFormDropdown</option>{'\n'}
+ </CommonFormDropdown>{'\n'}
+ </CommonFormSubSection>{'\n'}
+ </CommonFormSection>{'\n'}
+ <CommonFormSection>{'\n'}
+ CommonFormSection - Lorem ipsum dolor sit amet, consectetur adipisicing elit,{'\n'}
+ sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{'\n'}
+ </CommonFormSection>{'\n'}
+ <CommonFormButtonWrapper>{'\n'}
+ <button data-l10n-id='Cancel' className='browserButton whiteButton' />{'\n'}
+ <button data-l10n-id='Done' className='browserButton primaryButton' />{'\n'}
+ </CommonFormButtonWrapper>{'\n'}
+ <CommonFormBottomWrapper>{'\n'}
+ <CommonFormClickable>CommonFormClickable</CommonFormClickable>{'\n'}
+ </CommonFormBottomWrapper>{'\n'}
+ </CommonForm>{'\n'}
+
+ Title
+
+ const {{'\n'}
+ CommonForm,{'\n'}
+ CommonFormTitle{'\n'}
+ } = require('../../app/renderer/components/commonForm'){'\n'}
+ {'\n'}
+ <CommonForm>{'\n'}
+ <CommonFormTitle>CommonFormTitle</CommonFormTitle>{'\n'}
+ </CommonForm>{'\n'}
+
+ Section
+
+ const {{'\n'}
+ CommonForm,{'\n'}
+ CommonFormSection{'\n'}
+ } = require('../../app/renderer/components/commonForm'){'\n'}
+ {'\n'}
+ <CommonForm>{'\n'}
+ <CommonFormSection>{'\n'}
+ CommonFormSection - Lorem ipsum dolor sit amet, consectetur adipisicing elit,{'\n'}
+ sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{'\n'}
+ </CommonFormSection>{'\n'}
+ </CommonForm>{'\n'}
+
+ Dropdown
+
+ const {{'\n'}
+ CommonForm,{'\n'}
+ CommonFormSection,{'\n'}
+ CommonFormDropdown{'\n'}
+ } = require('../../app/renderer/components/commonForm'){'\n'}
+ {'\n'}
+ <CommonForm>{'\n'}
+ <CommonFormSection>{'\n'}
+ <CommonFormDropdown>{'\n'}
+ <option value='CommonFormDropdown'>CommonFormDropdown</option>{'\n'}
+ </CommonFormDropdown>{'\n'}
+ </CommonFormSection>{'\n'}
+ </CommonForm>{'\n'}
+
+ Sub sections with a dropdown
+
+ const {{'\n'}
+ CommonForm,{'\n'}
+ CommonFormSection,{'\n'}
+ CommonFormSubSection,{'\n'}
+ CommonFormDropdown{'\n'}
+ } = require('../../app/renderer/components/commonForm'){'\n'}
+ {'\n'}
+ <CommonForm>{'\n'}
+ <CommonFormSection>{'\n'}
+ <CommonFormSubSection>CommonFormSubSection</CommonFormSubSection>{'\n'}
+ <CommonFormSubSection>{'\n'}
+ <CommonFormDropdown>{'\n'}
+ <option value='CommonFormDropdown'>CommonFormDropdown</option>{'\n'}
+ </CommonFormDropdown>{'\n'}
+ </CommonFormSubSection>{'\n'}
+ </CommonFormSection>{'\n'}
+ </CommonForm>{'\n'}
+
+ Button wrapper
+
+ const {{'\n'}
+ CommonForm,{'\n'}
+ CommonFormButtonWrapper{'\n'}
+ } = require('../../app/renderer/components/commonForm'){'\n'}
+ {'\n'}
+ <CommonForm>{'\n'}
+ <CommonFormButtonWrapper>{'\n'}
+ <button data-l10n-id='Cancel' className='browserButton whiteButton' />{'\n'}
+ <button data-l10n-id='Done' className='browserButton primaryButton' />{'\n'}
+ </CommonFormButtonWrapper>{'\n'}
+ </CommonForm>{'\n'}
+
+ Bottom wrapper with a clickable element
+
+ const {{'\n'}
+ CommonForm,{'\n'}
+ CommonFormBottomWrapper,{'\n'}
+ CommonFormClickable{'\n'}
+ } = require('../../app/renderer/components/commonForm'){'\n'}
+ {'\n'}
+ <CommonForm>{'\n'}
+ <CommonFormBottomWrapper>{'\n'}
+ <CommonFormClickable>CommonFormClickable</CommonFormClickable>{'\n'}
+ </CommonFormBottomWrapper>{'\n'}
+ </CommonForm>{'\n'}
+
+ - - -
- <button data-l10n-id='done' className='browserButton'{'\n'}
- onClick={'{this.onRemoveBookmark}'} />
-
-
-
-
- <button data-l10n-id='cancel' className='browserButton whiteButton'{'\n'}
- onClick={'{this.onRemoveBookmark}'} />
-
-
-
-
- <button data-l10n-id='done' className='browserButton whiteButton inlineButton'{'\n'}
- onClick={'{this.onRemoveBookmark}'} />
-
-
-
-
- <button data-l10n-id='cancel' className='browserButton whiteButton wideButton'{'\n'}
- onClick={'{this.onRemoveBookmark}'} />
-
-
-
-
- <button data-l10n-id='done' className='browserButton whiteButton smallButton'{'\n'}
- onClick={'{this.onRemoveBookmark}'} />
-
-
-
-
- <button data-l10n-id='cancel' className='browserButton primaryButton'{'\n'}
- onClick={'{this.onRemoveBookmark}'} />
-
-
-
-
- <button data-l10n-id='done' className='browserButton actionButton'{'\n'}
- onClick={'{this.onRemoveBookmark}'} />
-
-
-
-
- <button data-l10n-id='cancel' className='browserButton subtleButton'{'\n'}
- onClick={'{this.onRemoveBookmark}'} />
-
-
-
-
- <button data-l10n-id='cancel' className='browserButton primaryButton'{'\n'}
- onClick={'{this.onRemoveBookmark}'} />{'\n'}
- <button data-l10n-id='cancel' className='browserButton whiteButton'{'\n'}
- onClick={'{this.onRemoveBookmark}'} />{'\n'}
- <button data-l10n-id='cancel' className='browserButton whiteButton wideButton'{'\n'}
- onClick={'{this.onRemoveBookmark}'} />{'\n'}
- <button data-l10n-id='cancel' className='browserButton primaryButton'{'\n'}
- onClick={'{this.onRemoveBookmark}'} />{'\n'}
-
+ Section title
+ +Default section title
+ +
+ const {DefaultSectionTitle} = require('../../app/renderer/components/common/sectionTitle'){'\n'}
+ {'\n'}
+ <DefaultSectionTitle>General Settings on about:preferences</DefaultSectionTitle>{'\n'}
+
+ About page section title
+ +
+ const {{'\n'}
+ SectionTitleWrapper,{'\n'}
+ AboutPageSectionTitle{'\n'}
+ } = require('../../app/renderer/components/common/sectionTitle'){'\n'}
+ {'\n'}
+ <SectionTitleWrapper>{'\n'}
+ <AboutPageSectionTitle>Brave Sync</AboutPageSectionTitle>{'\n'}
+ </SectionTitleWrapper>
+
+ About page section title + beta label
+ +
+ const {{'\n'}
+ SectionTitleLabelWrapper,{'\n'}
+ AboutPageSectionTitle,{'\n'}
+ SectionLabelTitle{'\n'}
+ } = require('../../app/renderer/components/common/sectionTitle'){'\n'}
+ {'\n'}
+ <SectionTitleLabelWrapper>{'\n'}
+ <AboutPageSectionTitle>Brave Payments</AboutPageSectionTitle>{'\n'}
+ <SectionLabelTitle>beta</SectionLabelTitle>{'\n'}
+ </SectionTitleLabelWrapper>
+
+ About page section title + sub title
+ +
+ const {{'\n'}
+ SectionTitleWrapper,{'\n'}
+ AboutPageSectionTitle,{'\n'}
+ AboutPageSectionSubTitle{'\n'}
+ } = require('../../app/renderer/components/common/sectionTitle'){'\n'}
+ {'\n'}
+ <SectionTitleWrapper>{'\n'}
+ <AboutPageSectionTitle>About Brave</AboutPageSectionTitle>{'\n'}
+ </SectionTitleWrapper>{'\n'}
+ {'\n'}
+ <AboutPageSectionSubTitle>Today</AboutPageSectionSubTitle>{'\n'}
+
+