From f612bf72c88c7155b6ea31a4891b12c3ada67d2d Mon Sep 17 00:00:00 2001 From: Amelia Date: Tue, 25 Apr 2017 16:21:05 -0700 Subject: [PATCH] Make the getting started ui more intuitive (#1309) --- .../components/features/getting_started/index.jsx | 9 +++++++-- .../features/ui/components/column_subheading.jsx | 15 +++++++++++++++ app/assets/stylesheets/components.scss | 6 ++++++ 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 app/assets/javascripts/components/features/ui/components/column_subheading.jsx diff --git a/app/assets/javascripts/components/features/getting_started/index.jsx b/app/assets/javascripts/components/features/getting_started/index.jsx index f9561b937a..bd4920c94f 100644 --- a/app/assets/javascripts/components/features/getting_started/index.jsx +++ b/app/assets/javascripts/components/features/getting_started/index.jsx @@ -1,5 +1,6 @@ import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; +import ColumnSubheading from '../ui/components/column_subheading'; import { Link } from 'react-router'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; @@ -9,6 +10,8 @@ import ImmutablePropTypes from 'react-immutable-proptypes'; const messages = defineMessages({ heading: { id: 'getting_started.heading', defaultMessage: 'Getting started' }, public_timeline: { id: 'navigation_bar.public_timeline', defaultMessage: 'Federated timeline' }, + navigation_subheading: { id: 'column_subheading.navigation', defaultMessage: 'Navigation'}, + settings_subheading: { id: 'column_subheading.settings', defaultMessage: 'Settings'}, community_timeline: { id: 'navigation_bar.community_timeline', defaultMessage: 'Local timeline' }, preferences: { id: 'navigation_bar.preferences', defaultMessage: 'Preferences' }, follow_requests: { id: 'navigation_bar.follow_requests', defaultMessage: 'Follow requests' }, @@ -33,14 +36,16 @@ const GettingStarted = ({ intl, me }) => { return (
+ - {followRequests} - + + +
diff --git a/app/assets/javascripts/components/features/ui/components/column_subheading.jsx b/app/assets/javascripts/components/features/ui/components/column_subheading.jsx new file mode 100644 index 0000000000..061c8be6c1 --- /dev/null +++ b/app/assets/javascripts/components/features/ui/components/column_subheading.jsx @@ -0,0 +1,15 @@ +import PropTypes from 'prop-types'; + +const ColumnSubheading = ({ text }) => { + return ( +
+ {text} +
+ ); + }; + +ColumnSubheading.propTypes = { + text: PropTypes.string.isRequired, +}; + +export default ColumnSubheading; diff --git a/app/assets/stylesheets/components.scss b/app/assets/stylesheets/components.scss index ac754b7735..d4d942f15a 100644 --- a/app/assets/stylesheets/components.scss +++ b/app/assets/stylesheets/components.scss @@ -1536,6 +1536,12 @@ a.status__content__spoiler-link { margin-right: 5px; } +.column-subheading { + background: lighten($color1, 20%); + padding: 8px 20px; + font-size: 16px; +} + .autosuggest-textarea, .spoiler-input { position: relative;