diff --git a/client/less/main.less b/client/less/main.less index 923ee117c1..2020c32417 100644 --- a/client/less/main.less +++ b/client/less/main.less @@ -686,6 +686,26 @@ code { z-index: 20000 !important; } +.email-settings { + @media (max-width: 768px) { + text-align: center; + } +} + +.toggle-btn-group { + float: right; + .btn[disabled] { + opacity: 1; + } + @media (max-width: 768px) { + float: none; + .btn-toggle { + margin-top: 10px; + margin-bottom: 20px; + } + } +} + //uncomment this to see the dimensions of all elements outlined in red //* { diff --git a/common/app/app.less b/common/app/app.less index 5a90c57e1f..e49c32c903 100644 --- a/common/app/app.less +++ b/common/app/app.less @@ -8,7 +8,6 @@ // they are painted using css so the // nav is on top again .grid(@direction: column-reverse); - width: 100vw; } .@{ns}-content { diff --git a/common/app/routes/settings/Email-Setting.jsx b/common/app/routes/settings/Email-Setting.jsx index e83a847103..0016f01945 100644 --- a/common/app/routes/settings/Email-Setting.jsx +++ b/common/app/routes/settings/Email-Setting.jsx @@ -1,6 +1,12 @@ import React, { PropTypes } from 'react'; import { Link } from 'react-router'; -import { Button, Row, Col } from 'react-bootstrap'; +import { + ToggleButtonGroup, + ToggleButton, + Button, + Row, + Col +} from 'react-bootstrap'; import FA from 'react-fontawesome'; import classnames from 'classnames'; @@ -57,7 +63,7 @@ export default function EmailSettings({ ); } return ( -
+

{ email } @@ -67,81 +73,153 @@ export default function EmailSettings({ - +

Send me announcement emails
(we'll send you these every Thursday)

- - + + On + + + Off + +
- +

Send me notification emails
(these will pertain to your account)

- - + + On + + + Off + +
- +

Send me Quincy's weekly email
(with new articles every Tuesday)

- - + + On + + + Off + +
diff --git a/common/app/routes/settings/Settings.jsx b/common/app/routes/settings/Settings.jsx index 38f9d5036a..da3dc8e0a5 100644 --- a/common/app/routes/settings/Settings.jsx +++ b/common/app/routes/settings/Settings.jsx @@ -138,173 +138,175 @@ export class Settings extends React.Component { } return ( - - - + + + + +

Settings for your Account

+

Actions

+ + + + + + + + + + +
+

Account Settings

+ + + + + +
+

Privacy Settings

+ + - - Show me my public profile - - - - - -

Settings for your Account

-

Actions

- - - - - - - - - - -
-

Account Settings

- - - - - -
-

Privacy Settings

- - - - - -
-

Job Search Settings

- - - - - -
-

Email Settings

- - - - - -
-

Display challenges in:

- - - - - -
-

Danger Zone

- - - - - - + + + + +
); }