diff --git a/src/App.css b/src/App.css index 3104bea..1ac7646 100644 --- a/src/App.css +++ b/src/App.css @@ -60,13 +60,32 @@ color: #adadad; letter-spacing: 1px; } +.mobile-toggle { + display: none; +} +.desktop-toggle { + margin-left: 10px; +} @media (max-width: 768px) { + .mobile-toggle { + display: inline-flex; + } + .desktop-toggle { + display: none; + } .todo-list { padding: 15px; padding-top: 10px; width: auto; } + .todo-list h2 { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 15px; + max-width: 95%; + } .todo-list-title { /* Disable Auto Zoom in Input “Text” tag - Safari on iPhone */ font-size: 16px; @@ -76,6 +95,7 @@ .todo-create-wrapper { flex-direction: column; align-items: flex-start; + margin-bottom: 15px; } .todo-create-input { appearance: none; diff --git a/src/App.js b/src/App.js index 26b67da..d0fd76b 100644 --- a/src/App.js +++ b/src/App.js @@ -2,6 +2,7 @@ import React, { Component } from 'react' import ContentEditable from './components/ContentEditable' import AppHeader from './components/AppHeader' import SettingsMenu from './components/SettingsMenu' +import SettingsIcon from './components/SettingsIcon' import api from './utils/api' import sortByDate from './utils/sortByDate' import './App.css' @@ -230,7 +231,10 @@ export default class App extends Component {
-

Create todo

+

+ Create todo + +

Create todo - - - - - +
diff --git a/src/components/SettingsIcon/SettingIcon.css b/src/components/SettingsIcon/SettingIcon.css new file mode 100644 index 0000000..f0a3103 --- /dev/null +++ b/src/components/SettingsIcon/SettingIcon.css @@ -0,0 +1,11 @@ +.setting-toggle-wrapper { + display: flex; + align-items: center; + justify-content: center; +} +.settings-toggle { + fill: #b7b9bd; + width: 35px; + height: 35px; + cursor: pointer; +} diff --git a/src/components/SettingsIcon/index.js b/src/components/SettingsIcon/index.js new file mode 100644 index 0000000..79f99ac --- /dev/null +++ b/src/components/SettingsIcon/index.js @@ -0,0 +1,15 @@ +import React from 'react' +import styles from './SettingIcon.css' // eslint-disable-line + +const SettingIcon = (props) => { + const className = props.className || '' + return ( + + + + + + ) +} + +export default SettingIcon