Skip to content
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

Septa Fare Calculator #194

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Septa Fare Calculator #194

wants to merge 7 commits into from

Conversation

karisP
Copy link

@karisP karisP commented May 9, 2023

Description

A React/Typescript widget which accesses Septa Rails data from the fares.json provided and applies the data in a user-friendly form which calculates the ticket(s) price.

Notes

Please read my comments provided in the code. I have left notes on how I would complete the functionality with more time. If you open the console, you will see the data accessed by the api call and the form data once all the fields have been filled. I focused on keeping the styles very basic due to time constraints. In a situation with even more time, I might consider a refactor with each form field being a component that takes props for question, input type, and data. I hope you enjoy reading my code, and I look forward to your feedback!

Libraries

react-hook-form

Screenshots

Screenshot 2023-05-09 at 2 40 41 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant