-
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
Feature/captioning calculator #1
base: main
Are you sure you want to change the base?
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.
@ghughes13 - Nice job. Just some follow questions and one minor nit pick on validation.
value={formState.averageProgramsPerMonth} | ||
handleInputChange={handleInputChange} | ||
image="number.png" | ||
min="0" |
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.
Nice call on adding validation to these form inputs. Would probably put 1 here as if you have no programs a month the calculator isn't going to spit out a very useful answer :)
name="name" | ||
id="name" | ||
value={formState.name} | ||
handleInputChange={handleInputChange} |
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 you explain why your handling each individual input change? What are the pros / cons? What would be another approach?
} | ||
}; | ||
|
||
const calcCaptionMinutes = () => { |
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 you explain the pros / cons of doing the validation client side like this?
@@ -0,0 +1,90 @@ | |||
body { |
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.
Looks like your using a tailwind and some general styles? Can you explain why?
@@ -1,5 +1,16 @@ | |||
const baseConfig = |
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.
cool seeing it deployed. Thanks!
Feature: CC-XXXX
Notes: Adds functioning caption calculator for clients to get a rough idea of how many captioning minutes they'd need.
**First time using tailwind and remix so please be forgiving with any dumb mistakes I've made related to that. Deployed to Netlify if you'd like to see a live demo. There's still a lot of refactoring/polish I'd do if this was going to production, but it's at a prototype quality level. Happy to hop on a call and go over anything in more detail if you'd like.
Demo: https://feature-captioning-calculator--startling-shortbread-4eadcc.netlify.app/
Desktop Image:

Mobile Image:
