-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redesign #28
base: master
Are you sure you want to change the base?
Redesign #28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GREAT stuff, but some changes should be made before committing this to master. Other then the comments inline, please do the following:
- Integrate SCSS with WebPack, Gulp is not needed.
- We should include a global ESLint file for better styling (I can do this if you don't have time/want to)
- Any required images should be done at the top of each component and should reference the property name
- Change App.js to be called something like Root.js
- Change Website.js to be called App.js
ActiveBlock.js
- Do not need to hold state for multiple properties if not needed
- Bring out all helper methods to another file, that file is pretty massive and could be helpful
- General note about indentation, this should be fixed with proper ESLint file
- For the pop up section, we should include a Modal component and create sub components to include in that parent modal component
Landing.js
- ADD CREDIT FOR YOUR WORK SOMEWHERE!
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<title>FocusBlock</title> | ||
<title>FocusBlock — Don't Get Stuck!</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change to change this to something along the lines of Focus Better, Focus Smarter, etc
}); | ||
} | ||
|
||
timerTick = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many of these properties are are already set in state. We should keep that instead of creating more properties that do the same thing.
let timerIsActive;
let timerStatus;
let isAltLogoColor;
let isRedOutline;
} | ||
|
||
// This function is not used in this version | ||
restartTimer = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets remove this :)
errorMessage={this.state.helpEmailErrorMessage} /> | ||
<div className="app-form__actions"> | ||
<button className="btn btn--primary" onClick={this.saveEditEmail}>Save</button> | ||
<button className="btn btn--secondary" onClick={this.dontSaveEditEmail}>Don't save</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to "Cancel" instead of "Don't Save"
|
||
helpEmailChangeHandler = (event) => { | ||
let helpEmailValue = event.target.value; | ||
let validContact = helpEmailValue.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets add this regex as a property, maybe even a global one. This seems to be used in multiple spots.
Hiya @apust :) Any updates on this? |
No description provided.