diff --git a/webmaker/src/FiraCode.ttf b/webmaker/src/FiraCode.ttf new file mode 100644 index 0000000..575c21b Binary files /dev/null and b/webmaker/src/FiraCode.ttf differ diff --git a/webmaker/src/FixedSys.ttf b/webmaker/src/FixedSys.ttf new file mode 100644 index 0000000..2e8723b Binary files /dev/null and b/webmaker/src/FixedSys.ttf differ diff --git a/webmaker/src/Inconsolata.ttf b/webmaker/src/Inconsolata.ttf new file mode 100755 index 0000000..bbc9647 Binary files /dev/null and b/webmaker/src/Inconsolata.ttf differ diff --git a/webmaker/src/Monoid.ttf b/webmaker/src/Monoid.ttf new file mode 100644 index 0000000..a09e9fa Binary files /dev/null and b/webmaker/src/Monoid.ttf differ diff --git a/webmaker/src/components/MainHeader.jsx b/webmaker/src/components/MainHeader.jsx index d586791..fc2cd0d 100644 --- a/webmaker/src/components/MainHeader.jsx +++ b/webmaker/src/components/MainHeader.jsx @@ -1,4 +1,6 @@ import { h, Component } from 'preact'; +const DEFAULT_PROFILE_IMG = + "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='#ccc' d='M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z' /%3E%3C/svg%3E"; export default class Header extends Component { render() { diff --git a/webmaker/src/components/Modal.jsx b/webmaker/src/components/Modal.jsx index d3919cf..35f8817 100644 --- a/webmaker/src/components/Modal.jsx +++ b/webmaker/src/components/Modal.jsx @@ -21,6 +21,10 @@ export default class Modal extends Component { document.body.classList[this.props.show ? 'add' : 'remove']( 'overlay-visible' ); + + if (this.props.show) { + this.overlayEl.querySelector('.js-modal__close-btn').focus(); + } } render() { if (!this.props.show) return null; diff --git a/webmaker/src/components/Profile.jsx b/webmaker/src/components/Profile.jsx index 5b7777d..e164c33 100644 --- a/webmaker/src/components/Profile.jsx +++ b/webmaker/src/components/Profile.jsx @@ -1,5 +1,8 @@ import { h, Component } from 'preact'; +const DEFAULT_PROFILE_IMG = + "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='#ccc' d='M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z' /%3E%3C/svg%3E"; + export default class Profile extends Component { render() { return ( diff --git a/webmaker/src/components/Settings.jsx b/webmaker/src/components/Settings.jsx index 5a9eeab..1638816 100644 --- a/webmaker/src/components/Settings.jsx +++ b/webmaker/src/components/Settings.jsx @@ -159,14 +159,16 @@ export default class Settings extends Component { - + {this.props.prefs.editorFont === 'other' && ( + + )}