diff --git a/frontend/components/Layout/Layout.js b/frontend/components/Layout/Layout.js index 891f2cb74..ef05bcd49 100644 --- a/frontend/components/Layout/Layout.js +++ b/frontend/components/Layout/Layout.js @@ -36,13 +36,13 @@ class Layout extends React.Component { @keydown(['/', 't']) search() { - if (!this.props.user) return; + // if (!this.props.user) return; _.defer(() => browserHistory.push('/search')); } @keydown(['d']) dashboard() { - if (!this.props.user) return; + // if (!this.props.user) return; _.defer(() => browserHistory.push('/')); } diff --git a/frontend/scenes/DocumentEdit/DocumentEdit.js b/frontend/scenes/DocumentEdit/DocumentEdit.js index c191ebfc6..2aef063c6 100644 --- a/frontend/scenes/DocumentEdit/DocumentEdit.js +++ b/frontend/scenes/DocumentEdit/DocumentEdit.js @@ -79,18 +79,17 @@ class DocumentEdit extends Component { if (key) { // Cmd + Enter - if(key.key === 'Enter' && (key.metaKey || key.ctrl.Key)) { + if (key.key === 'Enter' && (key.metaKey || key.ctrl.Key)) { this.onSave(); } // Cmd + Esc - if(key.key === 'Escape' && (key.metaKey || key.ctrl.Key)) { + if (key.key === 'Escape' && (key.metaKey || key.ctrl.Key)) { this.onCancel(); } // Cmd + m - console.log(key) - if(key.key === 'P' && key.shiftKey && (key.metaKey || key.ctrl.Key)) { + if (key.key === 'P' && key.shiftKey && (key.metaKey || key.ctrl.Key)) { this.store.togglePreview(); } } diff --git a/frontend/styles/fonts.css b/frontend/styles/fonts.css index cb4186354..427c3a539 100644 --- a/frontend/styles/fonts.css +++ b/frontend/styles/fonts.css @@ -12,6 +12,20 @@ font-style: normal; } +@font-face { + font-family: 'Atlas Grotesk'; + src: url('../fonts/atlas/AtlasGrotesk-Light-Web.woff') format('woff'); + font-weight: lighter; + font-style: normal; +} + +@font-face { + font-family: 'Atlas Grotesk'; + src: url('../fonts/atlas/AtlasGrotesk-LightItalic-Web.woff') format('woff'); + font-weight: lighter; + font-style: italic; +} + @font-face { font-family: 'Atlas Grotesk'; src: url('../fonts/atlas/AtlasGrotesk-RegularItalic-Web.woff') format('woff');